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

gvanrossum webhook-mailer at python.org
Mon Nov 14 14:53:25 EST 2022


https://github.com/python/cpython/commit/619cadcda6a8ba4a038c1807b6566a90e25db934
commit: 619cadcda6a8ba4a038c1807b6566a90e25db934
branch: main
author: Kumar Aditya <59607654+kumaraditya303 at users.noreply.github.com>
committer: gvanrossum <gvanrossum at gmail.com>
date: 2022-11-14T11:53:11-08:00
summary:

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

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 20bca3e6b727..7411f735da3b 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