gh-128231: Use runcode() return value for failing early (GH-129488)

This commit is contained in:
Bartosz Sławecki 2025-02-24 15:50:13 +01:00 committed by GitHub
parent 9f25c1f012
commit 7ed3dc6392
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
5 changed files with 40 additions and 3 deletions

View file

@ -75,7 +75,7 @@ class AsyncIOInteractiveConsole(InteractiveColoredConsole):
self.write("\nKeyboardInterrupt\n")
else:
self.showtraceback()
return self.STATEMENT_FAILED
class REPLThread(threading.Thread):