Mercurial > hgrepos > Python2 > PyMuPDF
comparison tests/test_import.py @ 41:71bcc18e306f
MERGE: New upstream PyMuPDF v1.26.5 including MuPDF v1.26.10
BUGS: Needs some additional changes yet.
Not yet tested.
| author | Franz Glasner <fzglas.hg@dom66.de> |
|---|---|
| date | Sat, 11 Oct 2025 15:24:40 +0200 |
| parents | a6bc019ac0b2 |
| children |
comparison
equal
deleted
inserted
replaced
| 38:8934ac156ef5 | 41:71bcc18e306f |
|---|---|
| 3 import sys | 3 import sys |
| 4 import textwrap | 4 import textwrap |
| 5 | 5 |
| 6 | 6 |
| 7 def test_import(): | 7 def test_import(): |
| 8 if os.environ.get('PYODIDE_ROOT'): | |
| 9 print('test_import(): not running on Pyodide - cannot run child processes.') | |
| 10 return | |
| 11 | |
| 8 root = os.path.abspath(f'{__file__}/../../') | 12 root = os.path.abspath(f'{__file__}/../../') |
| 9 p = f'{root}/tests/resources_test_import.py' | 13 p = f'{root}/tests/resources_test_import.py' |
| 10 with open(p, 'w') as f: | 14 with open(p, 'w') as f: |
| 11 f.write(textwrap.dedent( | 15 f.write(textwrap.dedent( |
| 12 ''' | 16 ''' |
