summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorxdegaye <xdegaye@gmail.com>2017-11-26 09:31:44 (GMT)
committerGitHub <noreply@github.com>2017-11-26 09:31:44 (GMT)
commita6fba9b827e395fc9583c07bc2d15cd11f684439 (patch)
tree1c07e97cc0f44ccbf4faedafe205c393df2b119a
parent4274609e1856facd80b7ee588b0791fe8963b9e0 (diff)
downloadcpython-a6fba9b827e395fc9583c07bc2d15cd11f684439.zip
cpython-a6fba9b827e395fc9583c07bc2d15cd11f684439.tar.gz
cpython-a6fba9b827e395fc9583c07bc2d15cd11f684439.tar.bz2
bpo-32126: Skip asyncio test when sem_open() is not functional (GH-4559)
-rw-r--r--Lib/test/test_asyncio/test_events.py4
-rw-r--r--Misc/NEWS.d/next/Tests/2017-11-24-18-15-12.bpo-32126.PLmNLn.rst2
2 files changed, 6 insertions, 0 deletions
diff --git a/Lib/test/test_asyncio/test_events.py b/Lib/test/test_asyncio/test_events.py
index a107912..a6e4ecf 100644
--- a/Lib/test/test_asyncio/test_events.py
+++ b/Lib/test/test_asyncio/test_events.py
@@ -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
index 0000000..b5ba9d5
--- /dev/null
+++ b/Misc/NEWS.d/next/Tests/2017-11-24-18-15-12.bpo-32126.PLmNLn.rst
@@ -0,0 +1,2 @@
+Skip test_get_event_loop_new_process in test.test_asyncio.test_events when
+sem_open() is not functional.