New submission from Berker Peksag: ====================================================================== ERROR: test.test_importlib.test_locks (unittest.loader.ModuleImportFailure) ---------------------------------------------------------------------- Traceback (most recent call last): File "/home/berker/projects/cpython-default/Lib/unittest/case.py", line 58, in testPartExecutor yield File "/home/berker/projects/cpython-default/Lib/unittest/case.py", line 577, in run testMethod() File "/home/berker/projects/cpython-default/Lib/unittest/loader.py", line 32, in testFailure raise exception ImportError: Failed to import test module: test.test_importlib.test_locks Traceback (most recent call last): File "/home/berker/projects/cpython-default/Lib/unittest/loader.py", line 312, in _find_tests module = self._get_module_from_name(name) File "/home/berker/projects/cpython-default/Lib/unittest/loader.py", line 290, in _get_module_from_name __import__(name) File "/home/berker/projects/cpython-default/Lib/test/test_importlib/test_locks.py", line 123, in <module> DeadlockError=DEADLOCK_ERRORS) File "/home/berker/projects/cpython-default/Lib/test/test_importlib/util.py", line 82, in test_both return split_frozen(test_class, base, **kwargs) File "/home/berker/projects/cpython-default/Lib/test/test_importlib/util.py", line 76, in split_frozen frozen = specialize_class(cls, 'Frozen', base, **kwargs) File "/home/berker/projects/cpython-default/Lib/test/test_importlib/util.py", line 70, in specialize_class value = values[kind] KeyError: 'Frozen'
I've used the same logic as ModuleLockAsRLockTests to silence the test failure. Patch attached. ---------- components: Tests files: test_locks.diff keywords: patch messages: 220534 nosy: berker.peksag, brett.cannon, eric.snow priority: normal severity: normal stage: patch review status: open title: test_importlib.test_locks fails --without-threads type: behavior versions: Python 3.4, Python 3.5 Added file: http://bugs.python.org/file35625/test_locks.diff _______________________________________ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/issue21755> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com