Skip to content

Commit 9ccf1c3

Browse files
tests/: test_2608(): expect different output with mupdf master.
1 parent f236055 commit 9ccf1c3

File tree

2 files changed

+7
-4
lines changed

2 files changed

+7
-4
lines changed

tests/resources/test_2608_expected

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
No significant gamma-ray excess above the expected background
22
is detected from the direction of FRB 20171019A, with 52 gamma
33
candidate events from the source region and 524 background event.
4-
A second analysis using an independent event calibration and reconstruction (Parsons & Hinton 2014) confirms this result. A search for
5-
variable emission on timescales ranging from milliseconds to several minutes with tools provided in (Brun et al. 2020) does not reveal
6-
any variability above 2.2 𝜎. For the total data set of 1.8 h, 95% confidence level (C. L.) upper limits on the photon flux are derived using
4+
A second analysis using an independent event calibration and reconstruction (Parsons & Hinton 2014) confirms this result.A search for
5+
variable emission on timescales ranging from milliseconds to several minutes with tools provided in (Brun et al.2020) does not reveal
6+
any variability above 2.2 𝜎.For the total data set of 1.8 h,95% confidence level (C.L.) upper limits on the photon flux are derived using
77
the method described by Rolke et al. (2005). The energy threshold
88
of the data is highly dependent on the zenith angle of the observations. For these observations, the zenith angles range from 15 to 25
99
deg, which leads to an energy threshold for the stacked data set of

tests/test_font.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,10 @@ def test_2608():
5656
text = blocks[10][4]
5757
with open(os.path.abspath(f'{__file__}/../../tests/test_2608_out'), 'wb') as f:
5858
f.write(text.encode('utf8'))
59-
with open(os.path.abspath(f'{__file__}/../../tests/resources/test_2608_expected'), 'rb') as f:
59+
path_expected = 'tests/resources/test_2608_expected'
60+
if pymupdf.mupdf_version_tuple < (1, 25):
61+
path_expected += '-1.24.x'
62+
with open(os.path.abspath(f'{__file__}/../../{path_expected}'), 'rb') as f:
6063
expected = f.read().decode('utf8')
6164
# Github windows x32 seems to insert \r characters; maybe something to
6265
# do with the Python installation's line endings settings.

0 commit comments

Comments
 (0)