Commit 873d1226 authored by Brett Cannon's avatar Brett Cannon

Make test_importlib output easier to trace back to the failing test

class.
parent e0c3bd78
......@@ -20,6 +20,7 @@ def test_both(test_class, **kwargs):
(test_class, unittest.TestCase))
source_tests = types.new_class('Source_'+test_class.__name__,
(test_class, unittest.TestCase))
frozen_tests.__module__ = source_tests.__module__ = test_class.__module__
for attr, (frozen_value, source_value) in kwargs.items():
setattr(frozen_tests, attr, frozen_value)
setattr(source_tests, attr, source_value)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment