]> granicus.if.org Git - python/commitdiff
bpo-32126: Skip asyncio test when sem_open() is not functional (GH-4559)
authorxdegaye <xdegaye@gmail.com>
Sun, 26 Nov 2017 09:31:44 +0000 (10:31 +0100)
committerGitHub <noreply@github.com>
Sun, 26 Nov 2017 09:31:44 +0000 (10:31 +0100)
Lib/test/test_asyncio/test_events.py
Misc/NEWS.d/next/Tests/2017-11-24-18-15-12.bpo-32126.PLmNLn.rst [new file with mode: 0644]

index a1079128d0d7261c3b648d0cbe8d6267c15b43a2..a6e4ecf7958df739532987bf6987b3ee39c48fe0 100644 (file)
@@ -2155,6 +2155,10 @@ else:
             super().tearDown()
 
         def test_get_event_loop_new_process(self):
+            # Issue bpo-32126: The multiprocessing module used by
+            # ProcessPoolExecutor is not functional when the
+            # multiprocessing.synchronize module cannot be imported.
+            support.import_module('multiprocessing.synchronize')
             async def main():
                 pool = concurrent.futures.ProcessPoolExecutor()
                 result = await self.loop.run_in_executor(
diff --git a/Misc/NEWS.d/next/Tests/2017-11-24-18-15-12.bpo-32126.PLmNLn.rst b/Misc/NEWS.d/next/Tests/2017-11-24-18-15-12.bpo-32126.PLmNLn.rst
new file mode 100644 (file)
index 0000000..b5ba9d5
--- /dev/null
@@ -0,0 +1,2 @@
+Skip test_get_event_loop_new_process in test.test_asyncio.test_events when
+sem_open() is not functional.