mirror of
https://github.com/pocketpy/pocketpy
synced 2025-10-20 03:20:18 +00:00
Update test.c
This commit is contained in:
parent
cefa85afa4
commit
5e9de5c917
@ -372,7 +372,7 @@ int main(int argc, char** argv) {
|
|||||||
pkpy_clear_error(vm, NULL);
|
pkpy_clear_error(vm, NULL);
|
||||||
|
|
||||||
//this should be catchable
|
//this should be catchable
|
||||||
check(pkpy_exec(vm, "try : test_error_propagate(); except NameError : pass"));
|
check(pkpy_exec(vm, "try :\n test_error_propagate()\nexcept NameError : pass"));
|
||||||
error(pkpy_error(vm, "Exception", pkpy_string("test direct error mechanism")));
|
error(pkpy_error(vm, "Exception", pkpy_string("test direct error mechanism")));
|
||||||
|
|
||||||
//more complicated error handling
|
//more complicated error handling
|
||||||
|
Loading…
x
Reference in New Issue
Block a user