Skip to content

Commit 4390139

Browse files
committed
just don't clean up after ourselves in the test
1 parent 875948a commit 4390139

File tree

1 file changed

+0
-16
lines changed

1 file changed

+0
-16
lines changed

mx.graalpython/mx_graalpython.py

Lines changed: 0 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -434,9 +434,6 @@ def run_shared_lib_test(args=None):
434434
return status;
435435
}
436436
437-
poly_delete_reference(isolate_thread, engine_builder);
438-
poly_delete_reference(isolate_thread, builder);
439-
440437
return poly_ok;
441438
}
442439
@@ -446,21 +443,11 @@ def run_shared_lib_test(args=None):
446443
return status;
447444
}
448445
449-
status = poly_delete_reference(isolate_thread, context);
450-
if (status != poly_ok) {
451-
return status;
452-
}
453-
454446
status = poly_engine_close(isolate_thread, engine, true);
455447
if (status != poly_ok) {
456448
return status;
457449
}
458450
459-
status = poly_delete_reference(isolate_thread, engine);
460-
if (status != poly_ok) {
461-
return status;
462-
}
463-
464451
if (poly_detach_thread(isolate_thread)) {
465452
return poly_ok;
466453
}
@@ -483,10 +470,7 @@ def run_shared_lib_test(args=None):
483470
int32_t result_value;
484471
poly_value_as_int32(isolate_thread, value, &result_value);
485472
486-
assert_ok("primitive free failed", poly_delete_reference(isolate_thread, primitive_object) == poly_ok);
487-
assert_ok("value free failed", poly_delete_reference(isolate_thread, value) == poly_ok);
488473
assert_ok("value computation was incorrect", result_value == 42 * 42);
489-
assert_ok("func free failed", poly_delete_reference(isolate_thread, func) == poly_ok);
490474
assert_ok("Context tear down failed.", tear_down_context() == poly_ok);
491475
return 0;
492476
}

0 commit comments

Comments
 (0)