comparison tests/test_import.py @ 3:2c135c81b16c

MERGE: upstream PyMuPDF 1.26.4 with MuPDF 1.26.7
author Franz Glasner <fzglas.hg@dom66.de>
date Mon, 15 Sep 2025 11:44:09 +0200
parents 1d09e1dec1d9
children a6bc019ac0b2
comparison
equal deleted inserted replaced
0:6015a75abc2d 3:2c135c81b16c
1 import os
2 import subprocess
3 import sys
4 import textwrap
5
6
7 def test_import():
8 root = os.path.abspath(f'{__file__}/../../')
9 p = f'{root}/tests/resources_test_import.py'
10 with open(p, 'w') as f:
11 f.write(textwrap.dedent(
12 '''
13 from pymupdf.utils import *
14 from pymupdf.table import *
15 from pymupdf import *
16 '''
17 ))
18 subprocess.run(f'{sys.executable} {p}', shell=1, check=1)