]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
bpo-38614: Increase asyncio test_communicate() timeout (GH-16995)
authorVictor Stinner <vstinner@python.org>
Wed, 30 Oct 2019 15:00:44 +0000 (16:00 +0100)
committerGitHub <noreply@github.com>
Wed, 30 Oct 2019 15:00:44 +0000 (16:00 +0100)
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
Misc/NEWS.d/next/Tests/2019-10-30-15-12-32.bpo-38614.M6UnLB.rst [new file with mode: 0644]

index fe8cfa61b1b2d58328b762259ef30775e6783488..17552d03f5f04ba7d89971e75933bd9f9e29a9c2 100644 (file)
@@ -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 (file)
index 0000000..89f6847
--- /dev/null
@@ -0,0 +1,2 @@
+Fix test_communicate() of test_asyncio.test_subprocess: use
+``support.LONG_TIMEOUT`` (5 minutes), instead of just 1 minute.