adsf
This commit is contained in:
parent
85bfb30b29
commit
3edd74158b
5 changed files with 3 additions and 2 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue