diff options
author | Serhiy Storchaka <storchaka@gmail.com> | 2015-10-10 17:10:54 (GMT) |
---|---|---|
committer | Serhiy Storchaka <storchaka@gmail.com> | 2015-10-10 17:10:54 (GMT) |
commit | 456a27013e20ab8d49163da01633f7b80905c0e0 (patch) | |
tree | d3bb7a48c0bb1439287b86d88227f27c85692e5e /Lib/test/test_pickle.py | |
parent | 9e777730eb399ada4c2f6271883e73455eacd5c8 (diff) | |
parent | 7b2cfc44655d58a6b9db99cda35220c08beb6498 (diff) | |
download | cpython-456a27013e20ab8d49163da01633f7b80905c0e0.zip cpython-456a27013e20ab8d49163da01633f7b80905c0e0.tar.gz cpython-456a27013e20ab8d49163da01633f7b80905c0e0.tar.bz2 |
Issue #25365: test_pickle now works in threads disabled builds.
Diffstat (limited to 'Lib/test/test_pickle.py')
-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 ab6d92b..0429941 100644 --- a/Lib/test/test_pickle.py +++ b/Lib/test/test_pickle.py @@ -380,8 +380,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)) |