Skip to content

Commit

Permalink
fix: Windows-safe test
Browse files Browse the repository at this point in the history
  • Loading branch information
effigies committed Dec 9, 2024
1 parent 6022d97 commit 8bc80b6
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion tests/test_zipmodule.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
import os
import sys
import zipfile
from pathlib import Path
Expand Down Expand Up @@ -27,7 +28,7 @@ def test_zipimport(tmp_path: Path) -> None:
# Test
import mypkg # type: ignore[import-not-found]

assert mypkg.__file__.endswith('mymodule.zip/mypkg/__init__.py')
assert mypkg.__file__.endswith(os.path.join('mymodule.zip', 'mypkg', '__init__.py'))

loader = mypkg.data.load_resource

Expand Down

0 comments on commit 8bc80b6

Please sign in to comment.