Skip to content

Commit c7a2d77

Browse files
author
Guidotti Roberto
committed
TEST: style fixed
1 parent 103db6b commit c7a2d77

File tree

2 files changed

+5
-7
lines changed

2 files changed

+5
-7
lines changed

nibabel/cifti2/tests/test_cifti2.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -289,12 +289,12 @@ def test_cifti2_voxelindicesijk():
289289

290290
#test for vi[:, 0] and other slices
291291
with pytest.raises(NotImplementedError):
292-
vi[(slice(None), 0)]
292+
vi[:, 0]
293293
with pytest.raises(NotImplementedError):
294-
vi[(slice(None), 0)] = 0
294+
vi[:, 0] = 0
295295
with pytest.raises(NotImplementedError):
296296
# Don't know how to use remove with slice
297-
vi.__delitem__((slice(None), 0))
297+
del vi[:, 0]
298298
with pytest.raises(ValueError):
299299
vi[(0, 0, 0)]
300300

nibabel/cifti2/tests/test_cifti2io_header.py

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -436,10 +436,8 @@ def test_pixdim_log_checks(self):
436436
assert fhdr['pixdim'][1]== 2
437437
assert message == self._pixdim_message + '; setting to abs of pixdim values'
438438

439-
440-
with pytest.raises(raiser[0]):
441-
raiser[1](*raiser[2:])
442-
439+
pytest.raises(*raiser)
440+
443441
hdr = HC()
444442
hdr['pixdim'][1:4] = 0 # No error or warning
445443
fhdr, message, raiser = self.log_chk(hdr, 0)

0 commit comments

Comments
 (0)