From 5e9de5c9173ffe09da96bbf26086036a5e66e7be Mon Sep 17 00:00:00 2001 From: blueloveTH Date: Fri, 10 May 2024 21:21:54 +0800 Subject: [PATCH] Update test.c --- c_bindings/test.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/c_bindings/test.c b/c_bindings/test.c index 10b1e91e..eae28722 100644 --- a/c_bindings/test.c +++ b/c_bindings/test.c @@ -372,7 +372,7 @@ int main(int argc, char** argv) { pkpy_clear_error(vm, NULL); //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"))); //more complicated error handling