Skip to content

Commit cb0ac6a

Browse files
committed
TST: Add explanatory comment.
1 parent 2d29dba commit cb0ac6a

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

nibabel/tests/test_spatialimages.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -315,12 +315,11 @@ def test_get_data(self):
315315
# Can't slice into the image object:
316316
with assert_raises(TypeError) as exception_manager:
317317
img[0, 0, 0]
318-
318+
# Make sure the right message gets raised:
319319
assert_equal(str(exception_manager.exception),
320320
("Cannot slice image objects; consider slicing image "
321321
"array data with `img.dataobj[slice]` or "
322322
"`img.get_data()[slice]`"))
323-
324323
assert_true(in_data is img.dataobj)
325324
out_data = img.get_data()
326325
assert_true(in_data is out_data)

0 commit comments

Comments
 (0)