Skip to content

Commit 7d60dcd

Browse files
tests/test_general.py: added test_4533() - Open PDF error segmentation fault
Currently disabled because segv not fixed yet.
1 parent 3013831 commit 7d60dcd

File tree

1 file changed

+15
-0
lines changed

1 file changed

+15
-0
lines changed

tests/test_general.py

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@
1919
import sys
2020
import textwrap
2121
import time
22+
import util
2223

2324
import gentle_compare
2425

@@ -1874,3 +1875,17 @@ def show(items):
18741875
{'depth': 0, 'locked': 0, 'number': 7, 'on': 1, 'text': 'layer_7', 'type': 'checkbox'},
18751876
]
18761877

1878+
1879+
def test_4533():
1880+
if 1:
1881+
print(f'test_4533(): doing nothing because known to segv.')
1882+
return
1883+
path = util.download(
1884+
'https://github.com/user-attachments/files/20497146/NineData_user_manual_V3.0.5.pdf',
1885+
'test_4533.pdf',
1886+
size=16864501,
1887+
)
1888+
print(f'Opening {path=}.', flush=1)
1889+
with pymupdf.open(path) as document:
1890+
print(f'Have opened {path=}.', flush=1)
1891+
print(f'{len(document)=}', flush=1)

0 commit comments

Comments
 (0)