Mercurial > cpython-lru_cache-weakref
changeset 87358:3736d01e1f53
Make test_importlib output easier to trace back to the failing test
class.
| author | Brett Cannon <brett@python.org> |
|---|---|
| date | Fri, 22 Nov 2013 14:47:09 -0500 |
| parents | 98bab4a03120 |
| children | 47f5c86d32ea 2e4169aac667 |
| files | Lib/test/test_importlib/util.py |
| diffstat | 1 files changed, 1 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/Lib/test/test_importlib/util.py Fri Nov 22 14:38:09 2013 -0500 +++ b/Lib/test/test_importlib/util.py Fri Nov 22 14:47:09 2013 -0500 @@ -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)
