Skip to content

Commit 018816a

Browse files
tests/: move install of mypy to tests/conftest.py.
Simplifies disabling of use of `pip install`, e.g. with system builds.
1 parent c297b59 commit 018816a

2 files changed

Lines changed: 1 addition & 3 deletions

File tree

tests/conftest.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ def install_required_packages():
1919
# We can't run child processes, so rely on required test packages
2020
# already being installed, e.g. in our wheel's <requires_dist>.
2121
return
22-
packages = 'pytest fontTools pymupdf-fonts flake8 pylint codespell'
22+
packages = 'pytest fontTools pymupdf-fonts flake8 pylint codespell mypy'
2323
if platform.system() == 'Windows' and int.bit_length(sys.maxsize+1) == 32:
2424
# No pillow wheel available, and doesn't build easily.
2525
pass

tests/test_typing.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,8 +20,6 @@ def test_py_typed():
2020
return
2121

2222
print(f'test_py_typed(): {pymupdf.__path__=}')
23-
run('pip uninstall -y mypy')
24-
run('pip install mypy')
2523
root = os.path.abspath(f'{__file__}/../..')
2624

2725
# Run mypy on this .py file; it will fail at `import pymypdf` if the

0 commit comments

Comments
 (0)