summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBrett Cannon <brett@python.org>2013-11-22 19:47:09 (GMT)
committerBrett Cannon <brett@python.org>2013-11-22 19:47:09 (GMT)
commit873d1226b7cd42c663a4e09fa43a561de2e9f463 (patch)
tree8a8a69f8343bb7ab46473828caa4853235d09005
parente0c3bd78c5934ccdaf78b810be0ea6557f44db83 (diff)
downloadcpython-873d1226b7cd42c663a4e09fa43a561de2e9f463.zip
cpython-873d1226b7cd42c663a4e09fa43a561de2e9f463.tar.gz
cpython-873d1226b7cd42c663a4e09fa43a561de2e9f463.tar.bz2
Make test_importlib output easier to trace back to the failing test
class.
-rw-r--r--Lib/test/test_importlib/util.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/Lib/test/test_importlib/util.py b/Lib/test/test_importlib/util.py
index cb08ce6..80d43b5 100644
--- a/Lib/test/test_importlib/util.py
+++ b/Lib/test/test_importlib/util.py
@@ -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)