Skip to content

Commit d91f5db

Browse files
tests/conftest.py: Don't attempt to install packages on pyodide - not supported.
1 parent 1b0bf8f commit d91f5db

1 file changed

Lines changed: 5 additions & 0 deletions

File tree

tests/conftest.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,11 @@
1414
# before tests start to run.
1515
#
1616
def install_required_packages():
17+
PYODIDE_ROOT = os.environ.get('PYODIDE_ROOT')
18+
if PYODIDE_ROOT:
19+
# We can't run child processes, so rely on required test packages
20+
# already being installed, e.g. in our wheel's <requires_dist>.
21+
return
1722
packages = 'pytest fontTools pymupdf-fonts flake8 pylint codespell'
1823
if platform.system() == 'Windows' and int.bit_length(sys.maxsize+1) == 32:
1924
# No pillow wheel available, and doesn't build easily.

0 commit comments

Comments
 (0)