This commit is contained in:
saarsena@gmail.com 2026-04-24 22:59:20 -04:00
parent 85bfb30b29
commit 3edd74158b
5 changed files with 3 additions and 2 deletions

View file

@ -136,7 +136,7 @@ func _expect_runtime_error(source: String, expected_error: String) -> bool:
if result.ok:
push_error("expected runtime error, got success: " + str(result))
return false
if not str(result.error).contains(expected_error) or not str(result.error).contains("[string \"<string>\"]"):
if not str(result.error).contains(expected_error) or not str(result.error).contains("stack traceback"):
push_error("unexpected runtime error: " + str(result.error))
return false
return true