Skip to content

Commit 9ce17e4

Browse files
Address other comments.
1 parent bc60e60 commit 9ce17e4

File tree

2 files changed

+9
-3
lines changed

2 files changed

+9
-3
lines changed

Lib/test/test_cmd_line_script.py

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -812,9 +812,16 @@ def test_script_as_dev_fd(self):
812812

813813
def test_filter_syntax_warnings_by_module(self):
814814
filename = support.findfile('test_import/data/syntax_warnings.py')
815-
rc, out, err = assert_python_ok('-Werror', '-Walways:::test.test_import.data.syntax_warnings', filename)
815+
rc, out, err = assert_python_ok(
816+
'-Werror',
817+
'-Walways:::test.test_import.data.syntax_warnings',
818+
filename)
816819
self.assertEqual(err.count(b': SyntaxWarning: '), 6)
817-
rc, out, err = assert_python_ok('-Werror', '-Walways:::syntax_warnings', filename)
820+
821+
rc, out, err = assert_python_ok(
822+
'-Werror',
823+
'-Walways:::syntax_warnings',
824+
filename)
818825
self.assertEqual(err.count(b': SyntaxWarning: '), 6)
819826

820827

Misc/NEWS.d/next/Library/2025-10-16-17-17-20.gh-issue-135801.faH3fa.rst

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,4 +4,3 @@ warnings filter not only against the filename with ``.py`` stripped, but
44
also against module names constructed starting from different parent
55
directories of the filename (with ``/__init__.py``, ``.py`` and, on Windows,
66
``.pyw`` stripped).
7-
``/__init__.py``.

0 commit comments

Comments
 (0)