[Python-checkins] cpython (merge 3.4 -> 3.5): Issue #25365: test_pickle now works in threads disabled builds.

serhiy.storchaka python-checkins at python.org
Sat Oct 10 13:12:40 EDT 2015


https://hg.python.org/cpython/rev/48cb00431ce6
changeset:   98652:48cb00431ce6
branch:      3.5
parent:      98649:15740b3ad148
parent:      98651:1cb9ce2d83d8
user:        Serhiy Storchaka <storchaka at gmail.com>
date:        Sat Oct 10 20:10:54 2015 +0300
summary:
  Issue #25365: test_pickle now works in threads disabled builds.

files:
  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
--- a/Lib/test/test_pickle.py
+++ b/Lib/test/test_pickle.py
@@ -380,8 +380,9 @@
                     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))

-- 
Repository URL: https://hg.python.org/cpython


More information about the Python-checkins mailing list