Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 50be3cc

Browse filesBrowse files
Add debug prints in test_import.
1 parent e7c94d2 commit 50be3cc
Copy full SHA for 50be3cc

1 file changed

+7Lines changed: 7 additions & 0 deletions

File tree

Expand file treeCollapse file tree
Open diff view settings
Filter options
Expand file treeCollapse file tree
Open diff view settings
Collapse file

‎Lib/test/test_import/__init__.py‎

Copy file name to clipboardExpand all lines: Lib/test/test_import/__init__.py
+7Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1254,6 +1254,13 @@ class Spec2:
12541254

12551255
def test_filter_syntax_warnings_by_module(self):
12561256
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+
print(filename)
12571264
module_re = r'test\.test_warnings\.data\.syntax_warnings\z'
12581265
unload('test.test_warnings.data.syntax_warnings')
12591266
with (os_helper.temp_dir() as tmpdir,

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.