Skip to content

Commit 872e668

Browse files
committed
Test runner should ignore unsupported SIGINT
1 parent 80ffa67 commit 872e668

File tree

1 file changed

+2
-2
lines changed
  • graalpython/com.oracle.graal.python.test/src

1 file changed

+2
-2
lines changed

graalpython/com.oracle.graal.python.test/src/runner.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -508,11 +508,11 @@ def write_tags(test_file: 'TestFile', tags: typing.Iterable['Tag']):
508508

509509
def interrupt_process(process: subprocess.Popen):
510510
if hasattr(signal, 'SIGINT'):
511-
process.send_signal(signal.SIGINT)
512511
try:
512+
process.send_signal(signal.SIGINT)
513513
process.wait(3)
514514
return
515-
except subprocess.TimeoutExpired:
515+
except (OSError, subprocess.TimeoutExpired):
516516
pass
517517
process.terminate()
518518
try:

0 commit comments

Comments
 (0)