Skip to content

Commit 05f92d2

Browse files
committed
gh-141276: Update zipimport warning expectations
1 parent 0d5505d commit 05f92d2

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

Lib/test/test_cmd_line_script.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -827,7 +827,7 @@ def test_zipfile_run_filter_syntax_warnings_by_module(self):
827827
'-Werror:::test_pkg.__main__',
828828
os.path.join(zip_name, 'test_pkg')
829829
)
830-
self.assertEqual(err.count(b': SyntaxWarning: '), 12)
830+
self.assertEqual(err.count(b': SyntaxWarning: '), 6)
831831

832832

833833
def tearDownModule():

Lib/test/test_zipimport_support.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -253,7 +253,7 @@ def test_import_filter_syntax_warnings_by_module(self):
253253
warnings.filterwarnings('error', module='test_mod')
254254
import test_pkg.test_mod
255255
self.assertEqual(sorted(wm.lineno for wm in wlog),
256-
sorted([4, 7, 10, 13, 14, 21]*2))
256+
[4, 7, 10, 13, 14, 21])
257257
filename = test_pkg.test_mod.__file__
258258
for wm in wlog:
259259
self.assertEqual(wm.filename, filename)

0 commit comments

Comments
 (0)