Skip to content

Commit

Permalink
Solved segfault from python.
Browse files Browse the repository at this point in the history
  • Loading branch information
viferga committed Apr 18, 2023
1 parent 740022c commit 73b546f
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 1 deletion.
1 change: 1 addition & 0 deletions source/loaders/py_loader/source/py_loader_impl.c
Original file line number Diff line number Diff line change
Expand Up @@ -1538,6 +1538,7 @@ PyObject *py_loader_impl_value_to_capi(loader_impl impl, type_id id, value v)
{
/* TODO */
log_write("metacall", LOG_LEVEL_ERROR, "TODO: Python future not implemented yet for arguments");
Py_RETURN_NONE;
}
else if (id == TYPE_FUNCTION)
{
Expand Down
1 change: 1 addition & 0 deletions source/ports/rs_port/tests/loaders_test.rs
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@ fn load_from_memory_test() {
call_greet("load_from_memory", 1);
}

// TODO: Why not putting this into a script inside scripts folder?
fn load_from_file_test() {
// Finding a temporary address to store the temporary js file
let temp_js_pathbuf =
Expand Down
2 changes: 1 addition & 1 deletion source/ports/rs_port/tests/metacall_test.rs
Original file line number Diff line number Diff line change
Expand Up @@ -413,6 +413,6 @@ fn metacall() {
test_null();
test_string();
test_throwable();
// test_future();
test_future();
}
}

0 comments on commit 73b546f

Please sign in to comment.