We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e7c94d2 commit 50be3ccCopy full SHA for 50be3cc
Lib/test/test_import/__init__.py
@@ -1254,6 +1254,13 @@ class Spec2:
1254
1255
def test_filter_syntax_warnings_by_module(self):
1256
filename = findfile('test_warnings/data/syntax_warnings.py')
1257
+ print()
1258
+ print(filename)
1259
+ with warnings.catch_warnings():
1260
+ warnings.simplefilter('ignore')
1261
+ import test.test_warnings.data.syntax_warnings
1262
+ filename = test.test_warnings.data.syntax_warnings.__file__
1263
1264
module_re = r'test\.test_warnings\.data\.syntax_warnings\z'
1265
unload('test.test_warnings.data.syntax_warnings')
1266
with (os_helper.temp_dir() as tmpdir,
0 commit comments