Commit 58059197 authored by Benjamin Peterson's avatar Benjamin Peterson

merge heads

parents 5afa03a7 8391cf4e
...@@ -598,16 +598,20 @@ class FutureTests(unittest.TestCase): ...@@ -598,16 +598,20 @@ class FutureTests(unittest.TestCase):
self.assertTrue(isinstance(f1.exception(timeout=5), IOError)) self.assertTrue(isinstance(f1.exception(timeout=5), IOError))
@test.support.reap_threads
def test_main(): def test_main():
test.support.run_unittest(ProcessPoolExecutorTest, try:
ThreadPoolExecutorTest, test.support.run_unittest(ProcessPoolExecutorTest,
ProcessPoolWaitTests, ThreadPoolExecutorTest,
ThreadPoolWaitTests, ProcessPoolWaitTests,
ProcessPoolAsCompletedTests, ThreadPoolWaitTests,
ThreadPoolAsCompletedTests, ProcessPoolAsCompletedTests,
FutureTests, ThreadPoolAsCompletedTests,
ProcessPoolShutdownTest, FutureTests,
ThreadPoolShutdownTest) ProcessPoolShutdownTest,
ThreadPoolShutdownTest)
finally:
test.support.reap_children()
if __name__ == "__main__": if __name__ == "__main__":
test_main() test_main()
...@@ -30,6 +30,9 @@ Core and Builtins ...@@ -30,6 +30,9 @@ Core and Builtins
Library Library
------- -------
- Issue #11321: Fix a crash with multiple imports of the _pickle module when
embedding Python. Patch by Andreas Stührk.
- Issue #12502: asyncore: fix polling loop with AF_UNIX sockets. - Issue #12502: asyncore: fix polling loop with AF_UNIX sockets.
- Issue #4376: ctypes now supports nested structures in a endian different than - Issue #4376: ctypes now supports nested structures in a endian different than
......
...@@ -6321,8 +6321,10 @@ PyInit__pickle(void) ...@@ -6321,8 +6321,10 @@ PyInit__pickle(void)
if (m == NULL) if (m == NULL)
return NULL; return NULL;
Py_INCREF(&Pickler_Type);
if (PyModule_AddObject(m, "Pickler", (PyObject *)&Pickler_Type) < 0) if (PyModule_AddObject(m, "Pickler", (PyObject *)&Pickler_Type) < 0)
return NULL; return NULL;
Py_INCREF(&Unpickler_Type);
if (PyModule_AddObject(m, "Unpickler", (PyObject *)&Unpickler_Type) < 0) if (PyModule_AddObject(m, "Unpickler", (PyObject *)&Unpickler_Type) < 0)
return NULL; return NULL;
......
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