Skip to content

Commit 9355da7

Browse files
committed
Use SHORT_TIMEOUT
1 parent d158dbf commit 9355da7

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Lib/test/test_repl.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -296,7 +296,7 @@ def test_pythonstartup_success(self):
296296
self.subTest(repl_name),
297297
pythonstartup_env(script="print('from pythonstartup')", histfile=histfile) as env
298298
):
299-
p = repl_factory(env=env, isolated=False)
299+
p = repl_factory(env=env, isolated=False, timeout=SHORT_TIMEOUT)
300300
p.stdin.write("1/0")
301301
output = kill_python(p)
302302

@@ -319,7 +319,7 @@ def test_pythonstartup_failure(self):
319319
self.subTest(repl_name),
320320
pythonstartup_env(script="def foo():\n 1/0\n", histfile=histfile) as env
321321
):
322-
p = repl_factory(env=env, isolated=False)
322+
p = repl_factory(env=env, isolated=False, timeout=SHORT_TIMEOUT)
323323
p.stdin.write('foo()')
324324
output = kill_python(p)
325325

0 commit comments

Comments
 (0)