Skip to content
Merged
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: 3 additions & 1 deletion tests/test_run_wine_tests.py
Original file line number Diff line number Diff line change
Expand Up @@ -525,7 +525,9 @@ def test_child_sees_eof_even_when_the_runner_has_input(self):

def test_relative_root_launches_the_artifact_from_its_working_directory(self):
(self.artifact / "check_cwd.py").write_text(
"from pathlib import Path\nassert Path.cwd() == Path(__file__).resolve().parent\n",
# resolve() on both sides: on Windows tempfile hands out the 8.3 name (RUNNER~1) and the module's
# path resolves to the long one, so the two spellings differ while naming one folder.
"from pathlib import Path\nassert Path.cwd().resolve() == Path(__file__).resolve().parent\n",
encoding="utf-8", newline="\n")
entry = ctest_entry("ok", self.command("check_cwd.py"))
with contextlib.chdir(self.root):
Expand Down
Loading