Skip to content

Commit

Permalink
touching up windows test
Browse files Browse the repository at this point in the history
  • Loading branch information
tclose committed Nov 15, 2023
1 parent 4517288 commit 69e0e26
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions fileformats/core/tests/test_test_extras.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,9 @@ def test_sample():
def test_mock():
mock = Foo.mock()
if platform.system() == "Windows":
expected_root = Path(Path().cwd().drive)
expected = Path(f"{Path().cwd().drive}\\mock\\foo.foo")
else:
expected_root = Path("/")
assert mock.fspath == expected_root / "mock" / "foo.foo"
expected = Path("/mock/foo.foo")
assert mock.fspath == expected
assert not mock.fspath.exists()
assert isinstance(mock, MockMixin)

0 comments on commit 69e0e26

Please sign in to comment.