Skip to content

Commit 4a53405

Browse files
tests/: update expectations for latest mupdf master.
1 parent 08d7cd5 commit 4a53405

File tree

4 files changed

+28
-6
lines changed

4 files changed

+28
-6
lines changed

tests/resources/test_2608_expected

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,14 @@
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 recon-
5+
struction (Parsons & Hinton 2014) confirms this result. A search for
6+
variable emission on timescales ranging from milliseconds to sev-
7+
eral minutes with tools provided in (Brun et al. 2020) does not reveal
8+
any variability above 2.2 𝜎. For the total data set of 1.8 h, 95% confi-
9+
dence level (C. L.) upper limits on the photon flux are derived using
710
the method described by Rolke et al. (2005). The energy threshold
8-
of the data is highly dependent on the zenith angle of the observations. For these observations, the zenith angles range from 15 to 25
11+
of the data is highly dependent on the zenith angle of the observa-
12+
tions. For these observations, the zenith angles range from 15 to 25
913
deg, which leads to an energy threshold for the stacked data set of
1014
𝐸th = 120 GeV. The upper limit on the Very High Energy (VHE)
Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
No significant gamma-ray excess above the expected background
2+
is detected from the direction of FRB 20171019A, with 52 gamma
3+
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
7+
the method described by Rolke et al. (2005). The energy threshold
8+
of the data is highly dependent on the zenith angle of the observations. For these observations, the zenith angles range from 15 to 25
9+
deg, which leads to an energy threshold for the stacked data set of
10+
𝐸th = 120 GeV. The upper limit on the Very High Energy (VHE)

tests/test_font.py

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,12 @@ def test_2608():
6868
with open(os.path.abspath(f'{__file__}/../../tests/test_2608_out'), 'wb') as f:
6969
f.write(text.encode('utf8'))
7070
path_expected = os.path.normpath(f'{__file__}/../../tests/resources/test_2608_expected')
71-
with open(path_expected, 'rb') as f:
71+
path_expected_1_26 = os.path.normpath(f'{__file__}/../../tests/resources/test_2608_expected_1.26')
72+
if pymupdf.mupdf_version_tuple >= (1, 27):
73+
path_expected2 = path_expected
74+
else:
75+
path_expected2 = path_expected_1_26
76+
with open(path_expected2, 'rb') as f:
7277
expected = f.read().decode('utf8')
7378
# Github windows x32 seems to insert \r characters; maybe something to
7479
# do with the Python installation's line endings settings.

tests/test_textextract.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -887,7 +887,10 @@ def test_4503():
887887
strikeout = span_0['char_flags'] & pymupdf.mupdf.FZ_STEXT_STRIKEOUT
888888
print(f'{strikeout=}')
889889

890-
if pymupdf.mupdf_version_tuple >= (1, 26, 2):
890+
if pymupdf.mupdf_version_tuple >= (1, 27):
891+
assert strikeout, f'Expected bit 0 (FZ_STEXT_STRIKEOUT) to be set in {span_0["char_flags"]=:#x}.'
892+
assert text_0 == 'the right to request the state to review and, if appropriate,'
893+
elif pymupdf.mupdf_version_tuple >= (1, 26, 2):
891894
# 2025-06-09: This is still incorrect - the span should include the
892895
# following text 'and, if appropriate,'. It looks like following spans
893896
# are:

0 commit comments

Comments
 (0)