Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions examples/07_ndjson.mojo
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@ def main() raises:
print()

# Cleanup
import os
os.remove("example_data.ndjson")
import std.os
std.os.remove("example_data.ndjson")

print("Done!")
2 changes: 1 addition & 1 deletion tests/test_e2e.mojo
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ from json import loads, dumps, Value

def _is_gpu_mode() -> Bool:
var val = getenv("MOJSON_TEST_GPU")
return len(val) > 0 and val != "0" and val != "false"
return val.byte_length() > 0 and val != "0" and val != "false"


def _test_loads(json: String) raises -> Value:
Expand Down
Loading