Skip to content

Commit 68eac1c

Browse files
MNT: Apply refurb suggestion
[FURB108]: Use `x in (y, z)` instead of `x == y or x == z`
1 parent 8b3d74b commit 68eac1c

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

nibabel/tests/test_volumeutils.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -947,9 +947,7 @@ def test_seek_tell():
947947
# zeros in their wake. BZ2Files can't seek when writing,
948948
# unless we enable the write0 flag to seek_tell
949949
# ZstdFiles also does not support seek forward on write
950-
if (not write0 and
951-
(in_file == 'test.bz2' or
952-
in_file == 'test.zst')): # Can't seek write in bz2, zst
950+
if (not write0 and in_file in ('test.bz2', 'test.zst')):
953951
# write the zeros by hand for the read test below
954952
fobj.write(b'\x00' * diff)
955953
else:

0 commit comments

Comments
 (0)