diff options
author | Serhiy Storchaka <storchaka@gmail.com> | 2015-10-10 17:10:07 (GMT) |
---|---|---|
committer | Serhiy Storchaka <storchaka@gmail.com> | 2015-10-10 17:10:07 (GMT) |
commit | 7b2cfc44655d58a6b9db99cda35220c08beb6498 (patch) | |
tree | 2cf470fb91750e6d975adbfcb35907a348e84095 | |
parent | 7c6420a552eb540e03f0d6c75f5a0557803c3850 (diff) | |
download | cpython-7b2cfc44655d58a6b9db99cda35220c08beb6498.zip cpython-7b2cfc44655d58a6b9db99cda35220c08beb6498.tar.gz cpython-7b2cfc44655d58a6b9db99cda35220c08beb6498.tar.bz2 |
Issue #25365: test_pickle now works in threads disabled builds.
-rw-r--r-- | Lib/test/test_pickle.py | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/Lib/test/test_pickle.py b/Lib/test/test_pickle.py index 3d75d65..8dc93d2 100644 --- a/Lib/test/test_pickle.py +++ b/Lib/test/test_pickle.py @@ -377,8 +377,9 @@ class CompatPickleTests(unittest.TestCase): self.assertEqual(mapping('exceptions', name), ('builtins', name)) - import multiprocessing.context - for name, exc in get_exceptions(multiprocessing.context): + def test_multiprocessing_exceptions(self): + module = support.import_module('multiprocessing.context') + for name, exc in get_exceptions(module): with self.subTest(name): self.assertEqual(reverse_mapping('multiprocessing.context', name), ('multiprocessing', name)) |