summaryrefslogtreecommitdiffstats
path: root/Lib/test/test_pickle.py
diff options
context:
space:
mode:
authorSerhiy Storchaka <storchaka@gmail.com>2015-10-10 17:10:54 (GMT)
committerSerhiy Storchaka <storchaka@gmail.com>2015-10-10 17:10:54 (GMT)
commit456a27013e20ab8d49163da01633f7b80905c0e0 (patch)
treed3bb7a48c0bb1439287b86d88227f27c85692e5e /Lib/test/test_pickle.py
parent9e777730eb399ada4c2f6271883e73455eacd5c8 (diff)
parent7b2cfc44655d58a6b9db99cda35220c08beb6498 (diff)
downloadcpython-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.py5
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))