From 56a9991101a41abb7d3db95072aa4881680875b6 Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Sat, 6 Jun 2026 17:56:34 +0000 Subject: [PATCH 1/3] Add OS matrix (macOS, Windows) to test workflow --- .github/workflows/test.yml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 50c29da..e7069ba 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -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 From f8de96c0aba43b19823b06775a6869b4221f5c08 Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Sat, 6 Jun 2026 18:03:05 +0000 Subject: [PATCH 2/3] Make replay readonly-directory test newline-stable on Windows --- tests/test_replay_session.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/test_replay_session.py b/tests/test_replay_session.py index 380bc88..226fb02 100644 --- a/tests/test_replay_session.py +++ b/tests/test_replay_session.py @@ -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( From 8d99386de3e652faecbbcf0beb6e4839cc3b94b5 Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Sat, 6 Jun 2026 18:33:25 +0000 Subject: [PATCH 3/3] Stabilize readonly-directory tests across Windows newlines --- tests/test_runtime_semantics.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/test_runtime_semantics.py b/tests/test_runtime_semantics.py index 06f1cc4..2ee9441 100644 --- a/tests/test_runtime_semantics.py +++ b/tests/test_runtime_semantics.py @@ -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( @@ -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(