comparison tests/test_import.py @ 1:1d09e1dec1d9 upstream

ADD: PyMuPDF v1.26.4: the original sdist. It does not yet contain MuPDF. This normally will be downloaded when building PyMuPDF.
author Franz Glasner <fzglas.hg@dom66.de>
date Mon, 15 Sep 2025 11:37:51 +0200
parents
children a6bc019ac0b2
comparison
equal deleted inserted replaced
-1:000000000000 1:1d09e1dec1d9
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)