Skip to content

Commit

Permalink
tests/: updated test_2608() to work with latest MuPDF.
Browse files Browse the repository at this point in the history
This reverses recent change.
  • Loading branch information
julian-smith-artifex-com committed Sep 22, 2024
1 parent 1f23eb4 commit 22382f4
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 17 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
10 changes: 0 additions & 10 deletions tests/resources/test_2608_expected-1.24.x

This file was deleted.

6 changes: 2 additions & 4 deletions tests/test_font.py
Original file line number Diff line number Diff line change
Expand Up @@ -56,10 +56,8 @@ 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'))
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:
path_expected = os.path.normpath(f'{__file__}/../../tests/resources/test_2608_expected')
with open(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 22382f4

Please sign in to comment.