diff options
author | Serhiy Storchaka <storchaka@gmail.com> | 2015-10-10 17:11:13 (GMT) |
---|---|---|
committer | Serhiy Storchaka <storchaka@gmail.com> | 2015-10-10 17:11:13 (GMT) |
commit | ca4265de8d19a319d5259bba5c259464e17c98c3 (patch) | |
tree | 23bbfcb42b04d7e1d32687bb68097f8c38fc2cb3 | |
parent | f98a24eeccc4a7982ddd3ea608638a0d1c91cc20 (diff) | |
parent | 456a27013e20ab8d49163da01633f7b80905c0e0 (diff) | |
download | cpython-ca4265de8d19a319d5259bba5c259464e17c98c3.zip cpython-ca4265de8d19a319d5259bba5c259464e17c98c3.tar.gz cpython-ca4265de8d19a319d5259bba5c259464e17c98c3.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 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)) |