Skip to content

Commit

Permalink
tests/: test_2608(): expect different output with mupdf master.
Browse files Browse the repository at this point in the history
  • Loading branch information
julian-smith-artifex-com committed Sep 17, 2024
1 parent f236055 commit 9ccf1c3
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 4 deletions.
6 changes: 3 additions & 3 deletions tests/resources/test_2608_expected
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
No significant gamma-ray excess above the expected background
is detected from the direction of FRB 20171019A, with 52 gamma
candidate events from the source region and 524 background event.
A second analysis using an independent event calibration and reconstruction (Parsons & Hinton 2014) confirms this result. A search for
variable emission on timescales ranging from milliseconds to several minutes with tools provided in (Brun et al. 2020) does not reveal
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
A second analysis using an independent event calibration and reconstruction (Parsons & Hinton 2014) confirms this result.A search for
variable emission on timescales ranging from milliseconds to several minutes with tools provided in (Brun et al.2020) does not reveal
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
the method described by Rolke et al. (2005). The energy threshold
of the data is highly dependent on the zenith angle of the observations. For these observations, the zenith angles range from 15 to 25
deg, which leads to an energy threshold for the stacked data set of
Expand Down
5 changes: 4 additions & 1 deletion tests/test_font.py
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,10 @@ def test_2608():
text = blocks[10][4]
with open(os.path.abspath(f'{__file__}/../../tests/test_2608_out'), 'wb') as f:
f.write(text.encode('utf8'))
with open(os.path.abspath(f'{__file__}/../../tests/resources/test_2608_expected'), 'rb') as f:
path_expected = 'tests/resources/test_2608_expected'
if pymupdf.mupdf_version_tuple < (1, 25):
path_expected += '-1.24.x'
with open(os.path.abspath(f'{__file__}/../../{path_expected}'), 'rb') as f:
expected = f.read().decode('utf8')
# Github windows x32 seems to insert \r characters; maybe something to
# do with the Python installation's line endings settings.
Expand Down

0 comments on commit 9ccf1c3

Please sign in to comment.