Skip to content

Commit 5bb4d4c

Browse files
committed
TEST: Switch to single quotes for expected magic errors
1 parent cd2ba2f commit 5bb4d4c

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

nibabel/tests/test_nifti1.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -251,7 +251,7 @@ def test_magic_offset_checks(self):
251251
fhdr, message, raiser = self.log_chk(hdr, 45)
252252
assert fhdr['magic'] == b'ooh'
253253
assert (
254-
message == 'magic string "ooh" is not valid; '
254+
message == "magic string 'ooh' is not valid; "
255255
'leaving as is, but future errors are likely'
256256
)
257257
# For pairs, any offset is OK, but should be divisible by 16

nibabel/tests/test_scripts.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -228,7 +228,7 @@ def test_nib_nifti_dx():
228228
expected = f"""Picky header check output for "{dirty_hdr}"
229229
230230
pixdim[0] (qfac) should be 1 (default) or -1
231-
magic string "" is not valid
231+
magic string '' is not valid
232232
sform_code 11776 not valid"""
233233
# Split strings to remove line endings
234234
assert stdout == expected

0 commit comments

Comments
 (0)