Skip to content

Commit 63963cf

Browse files
tests/test_general.py: test_gitinfo(): fix for mupdf without git information.
1 parent 5d79779 commit 63963cf

1 file changed

Lines changed: 4 additions & 2 deletions

File tree

tests/test_general.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1989,7 +1989,9 @@ def test_gitinfo():
19891989
print(f'{pymupdf.pymupdf_git_branch=}')
19901990
print(f'{pymupdf.pymupdf_git_sha=}')
19911991
print(f'{pymupdf.pymupdf_version=}')
1992-
print(f'pymupdf.pymupdf_git_diff:\n{textwrap.indent(pymupdf.pymupdf_git_diff, " ")}')
1992+
print(f'{pymupdf.pymupdf_git_diff=}')
1993+
if pymupdf.pymupdf_git_diff:
1994+
print(f'pymupdf.pymupdf_git_diff:\n{textwrap.indent(pymupdf.pymupdf_git_diff, " ")}')
19931995

19941996

19951997
def test_4392():
@@ -2086,7 +2088,7 @@ def test_4590():
20862088

20872089
def test_4702():
20882090
if os.environ.get('PYODIDE_ROOT'):
2089-
# util.download() uses subrocess.
2091+
# util.download() uses subprocess.
20902092
print('test_4702(): not running on Pyodide - cannot run child processes.')
20912093
return
20922094

0 commit comments

Comments
 (0)