[Python-checkins] GH-98219: reduce sleep time in `asyncio` subprocess test (GH-99464)

miss-islington webhook-mailer at python.org
Tue Nov 15 10:52:46 EST 2022


https://github.com/python/cpython/commit/e1e8a15abfa54b0801b4c5978d2b531494260a96
commit: e1e8a15abfa54b0801b4c5978d2b531494260a96
branch: 3.11
author: Miss Islington (bot) <31488909+miss-islington at users.noreply.github.com>
committer: miss-islington <31488909+miss-islington at users.noreply.github.com>
date: 2022-11-15T07:52:38-08:00
summary:

GH-98219: reduce sleep time in `asyncio` subprocess test (GH-99464)

(cherry picked from commit 619cadcda6a8ba4a038c1807b6566a90e25db934)

Co-authored-by: Kumar Aditya <59607654+kumaraditya303 at users.noreply.github.com>

files:
M Lib/test/test_asyncio/test_subprocess.py

diff --git a/Lib/test/test_asyncio/test_subprocess.py b/Lib/test/test_asyncio/test_subprocess.py
index 4c0140d80ba7..f71ad72f999e 100644
--- a/Lib/test/test_asyncio/test_subprocess.py
+++ b/Lib/test/test_asyncio/test_subprocess.py
@@ -185,7 +185,7 @@ def test_kill(self):
 
     def test_kill_issue43884(self):
         if sys.platform == 'win32':
-            blocking_shell_command = f'{sys.executable} -c "import time; time.sleep(100000000)"'
+            blocking_shell_command = f'{sys.executable} -c "import time; time.sleep(2)"'
         else:
             blocking_shell_command = 'sleep 1; sleep 1'
         creationflags = 0



More information about the Python-checkins mailing list