Skip to content

Commit 3d15931

Browse files
committed
Simplify the test.
1 parent 61eb4db commit 3d15931

1 file changed

Lines changed: 1 addition & 3 deletions

File tree

Lib/test/test_interpreters/test_api.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2370,11 +2370,9 @@ def test_interpreter_handles_signals(self):
23702370
import signal
23712371

23722372
interp_source = """if True:
2373-
import sys
23742373
import time
23752374
2376-
sys.stdout.write('x')
2377-
sys.stdout.flush()
2375+
print('x', end='', flush=True)
23782376
time.sleep(10)
23792377
print("should never happen", flush=True)
23802378
"""

0 commit comments

Comments
 (0)