From 7b2cfc44655d58a6b9db99cda35220c08beb6498 Mon Sep 17 00:00:00 2001 From: Serhiy Storchaka Date: Sat, 10 Oct 2015 20:10:07 +0300 Subject: Issue #25365: test_pickle now works in threads disabled builds. --- Lib/test/test_pickle.py | 5 +++-- 1 file 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)) -- cgit v0.12