Skip to content

Commit c39bdb5

Browse files
committed
Process unexpected tests
1 parent cdbc445 commit c39bdb5

File tree

1 file changed

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

1 file changed

+5
-1
lines changed

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

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -575,7 +575,11 @@ def process_event(self, event):
575575
test_id = event['test']
576576
match event['event']:
577577
case 'testStarted':
578-
self.remaining_test_ids.remove(test_id)
578+
try:
579+
self.remaining_test_ids.remove(test_id)
580+
except ValueError:
581+
# It executed something we didn't ask for. Not sure why this happens
582+
log(f'WARNING: unexpected test started {test_id}')
579583
self.runner.report_start(test_id)
580584
with self.lock:
581585
self.last_started_test_id = test_id

0 commit comments

Comments
 (0)