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
10 changes: 10 additions & 0 deletions tests/test_typing.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,16 @@ def run(command, check=1):
subprocess.run(command, shell=1, check=check)

def test_py_typed():

if os.path.basename(__file__).startswith(f'test_fitz_'):
# Don't test the `fitz` alias, because mypy complains.
print(f'test_py_typed(): Not testing with fitz alias.')
return

if os.environ.get('PYODIDE_ROOT'):
print('test_py_typed(): not running on Pyodide - cannot run child processes.')
return

print(f'test_py_typed(): {pymupdf.__path__=}')
run('pip uninstall -y mypy')
run('pip install mypy')
Expand Down