Skip to content

Commit ed96c10

Browse files
scripts/test.py: fix pytest test directory when using hard-coded mupdf on Windows.
We need to specify PyMuPDF's `tests/` subdirectory, otherwise pytest can recurse into downloaded mupdf and get confused.
1 parent 3dace22 commit ed96c10

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

scripts/test.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -917,7 +917,7 @@ def getmtime(path):
917917
for test_name in test_names:
918918
pytest_arg += f' {pymupdf_dir_rel}/{test_name}'
919919
else:
920-
pytest_arg += f' {pymupdf_dir_rel}'
920+
pytest_arg += f' {pymupdf_dir_rel}/tests'
921921
python = gh_release.relpath(sys.executable)
922922
log('Running tests with tests/run_compound.py and pytest.')
923923

0 commit comments

Comments
 (0)