[Python-checkins] cpython: Make test_importlib output easier to trace back to the failing test
brett.cannon
python-checkins at python.org
Fri Nov 22 20:47:10 CET 2013
http://hg.python.org/cpython/rev/3736d01e1f53
changeset: 87358:3736d01e1f53
user: Brett Cannon <brett at python.org>
date: Fri Nov 22 14:47:09 2013 -0500
summary:
Make test_importlib output easier to trace back to the failing test
class.
files:
Lib/test/test_importlib/util.py | 1 +
1 files changed, 1 insertions(+), 0 deletions(-)
diff --git a/Lib/test/test_importlib/util.py b/Lib/test/test_importlib/util.py
--- a/Lib/test/test_importlib/util.py
+++ b/Lib/test/test_importlib/util.py
@@ -20,6 +20,7 @@
(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)
--
Repository URL: http://hg.python.org/cpython
More information about the Python-checkins
mailing list