Skip to content

Commit 178cae2

Browse files
committed
TST: restore test of invalid caching string
Restore test of not-valid string specifycing caching to `get_data` and `get_fdata`.
1 parent b5343c1 commit 178cae2

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

nibabel/tests/test_image_api.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -286,6 +286,9 @@ def validate_data_interface(self, imaker, params):
286286
# cache state.
287287
img.uncache()
288288
assert_true(img.in_memory)
289+
# Values to get_data caching parameter must be 'fill' or
290+
# 'unchanged'
291+
assert_raises(ValueError, img.get_data, caching='something')
289292
# Data shape is same as image shape
290293
assert_equal(img.shape, method().shape)
291294
# Values to get_data caching parameter must be 'fill' or

0 commit comments

Comments
 (0)