From a4ed6ed9f3779b6eda41bb65f5c09004a2b937ef Mon Sep 17 00:00:00 2001 From: Victor Stinner Date: Wed, 30 Oct 2019 16:00:44 +0100 Subject: bpo-38614: Increase asyncio test_communicate() timeout (GH-16995) Fix test_communicate() of test_asyncio.test_subprocess: use support.LONG_TIMEOUT (5 minutes), instead of 1 minute. --- Lib/test/test_asyncio/test_subprocess.py | 2 +- Misc/NEWS.d/next/Tests/2019-10-30-15-12-32.bpo-38614.M6UnLB.rst | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) create mode 100644 Misc/NEWS.d/next/Tests/2019-10-30-15-12-32.bpo-38614.M6UnLB.rst diff --git a/Lib/test/test_asyncio/test_subprocess.py b/Lib/test/test_asyncio/test_subprocess.py index fe8cfa6..17552d0 100644 --- a/Lib/test/test_asyncio/test_subprocess.py +++ b/Lib/test/test_asyncio/test_subprocess.py @@ -143,7 +143,7 @@ class SubprocessMixin: return proc.returncode, stdout task = run(b'some data') - task = asyncio.wait_for(task, 60.0) + task = asyncio.wait_for(task, support.LONG_TIMEOUT) exitcode, stdout = self.loop.run_until_complete(task) self.assertEqual(exitcode, 0) self.assertEqual(stdout, b'some data') diff --git a/Misc/NEWS.d/next/Tests/2019-10-30-15-12-32.bpo-38614.M6UnLB.rst b/Misc/NEWS.d/next/Tests/2019-10-30-15-12-32.bpo-38614.M6UnLB.rst new file mode 100644 index 0000000..89f6847 --- /dev/null +++ b/Misc/NEWS.d/next/Tests/2019-10-30-15-12-32.bpo-38614.M6UnLB.rst @@ -0,0 +1,2 @@ +Fix test_communicate() of test_asyncio.test_subprocess: use +``support.LONG_TIMEOUT`` (5 minutes), instead of just 1 minute. -- cgit v0.12