comparison tests/test_import.py @ 39:a6bc019ac0b2 upstream

ADD: PyMuPDF v1.26.5: the original sdist.
author Franz Glasner <fzglas.hg@dom66.de>
date Sat, 11 Oct 2025 11:19:58 +0200
parents 1d09e1dec1d9
children
comparison
equal deleted inserted replaced
2:b50eed0cc0ef 39:a6bc019ac0b2
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 '''