Commit 8823d4ca authored by Serhiy Storchaka's avatar Serhiy Storchaka

Issue #25365: test_pickle now works in threads disabled builds.

parent b6b1135c
......@@ -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))
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment