From: Serhiy Storchaka Date: Sat, 10 Oct 2015 17:10:07 +0000 (+0300) Subject: Issue #25365: test_pickle now works in threads disabled builds. X-Git-Tag: v3.5.1rc1~183^2 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=7b2cfc44655d58a6b9db99cda35220c08beb6498;p=python Issue #25365: test_pickle now works in threads disabled builds. --- diff --git a/Lib/test/test_pickle.py b/Lib/test/test_pickle.py index 3d75d65d19..8dc93d2a5b 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))