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
3 changes: 2 additions & 1 deletion .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,11 +7,12 @@ permissions:

jobs:
test:
runs-on: ubuntu-latest
runs-on: ${{ matrix.os }}
env:
RUST_BACKTRACE: full
strategy:
matrix:
os: [ubuntu-latest, macos-latest, windows-latest]
python-version: ["3.10", "3.11", "3.12", "3.13", "3.14"]
steps:
- uses: actions/checkout@v5
Expand Down
2 changes: 1 addition & 1 deletion tests/test_replay_session.py
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ def test_session_does_not_save_failed_snippet():


def test_session_supports_readonly_directory(tmp_path):
(tmp_path / "message.txt").write_text("hello\n")
(tmp_path / "message.txt").write_text("hello\n", newline="\n")
session = MicroPythonReplaySession(readonly_dir=tmp_path, wall_timeout_seconds=None)

result = session.run(
Expand Down
4 changes: 2 additions & 2 deletions tests/test_runtime_semantics.py
Original file line number Diff line number Diff line change
Expand Up @@ -239,7 +239,7 @@ def test_instances_are_fresh_between_runs():


def test_readonly_preopened_directory_allows_reading(tmp_path):
(tmp_path / "hello.txt").write_text("hello from wasi\n")
(tmp_path / "hello.txt").write_text("hello from wasi\n", newline="\n")

assert (
run_stdout(
Expand All @@ -255,7 +255,7 @@ def test_readonly_preopened_directory_allows_reading(tmp_path):


def test_readonly_preopened_directory_rejects_writes(tmp_path):
(tmp_path / "hello.txt").write_text("hello from wasi\n")
(tmp_path / "hello.txt").write_text("hello from wasi\n", newline="\n")

with pytest.raises(MicroPythonWasmError, match="guest exited with code 1"):
run(
Expand Down
Loading