X Tutup
Skip to content

Commit 873d122

Browse files
committed
Make test_importlib output easier to trace back to the failing test
class.
1 parent e0c3bd7 commit 873d122

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

Lib/test/test_importlib/util.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@ def test_both(test_class, **kwargs):
2020
(test_class, unittest.TestCase))
2121
source_tests = types.new_class('Source_'+test_class.__name__,
2222
(test_class, unittest.TestCase))
23+
frozen_tests.__module__ = source_tests.__module__ = test_class.__module__
2324
for attr, (frozen_value, source_value) in kwargs.items():
2425
setattr(frozen_tests, attr, frozen_value)
2526
setattr(source_tests, attr, source_value)

0 commit comments

Comments
 (0)
X Tutup