File tree Expand file tree Collapse file tree 2 files changed +5
-7
lines changed Expand file tree Collapse file tree 2 files changed +5
-7
lines changed Original file line number Diff line number Diff line change @@ -289,12 +289,12 @@ def test_cifti2_voxelindicesijk():
289
289
290
290
#test for vi[:, 0] and other slices
291
291
with pytest .raises (NotImplementedError ):
292
- vi [( slice ( None ) , 0 ) ]
292
+ vi [: , 0 ]
293
293
with pytest .raises (NotImplementedError ):
294
- vi [( slice ( None ) , 0 ) ] = 0
294
+ vi [: , 0 ] = 0
295
295
with pytest .raises (NotImplementedError ):
296
296
# Don't know how to use remove with slice
297
- vi . __delitem__ (( slice ( None ) , 0 ))
297
+ del vi [: , 0 ]
298
298
with pytest .raises (ValueError ):
299
299
vi [(0 , 0 , 0 )]
300
300
Original file line number Diff line number Diff line change @@ -436,10 +436,8 @@ def test_pixdim_log_checks(self):
436
436
assert fhdr ['pixdim' ][1 ]== 2
437
437
assert message == self ._pixdim_message + '; setting to abs of pixdim values'
438
438
439
-
440
- with pytest .raises (raiser [0 ]):
441
- raiser [1 ](* raiser [2 :])
442
-
439
+ pytest .raises (* raiser )
440
+
443
441
hdr = HC ()
444
442
hdr ['pixdim' ][1 :4 ] = 0 # No error or warning
445
443
fhdr , message , raiser = self .log_chk (hdr , 0 )
You can’t perform that action at this time.
0 commit comments