Skip to content

Commit 63e72e2

Browse files
committed
TEST: Check invalid caching argument for get_fdata
1 parent 1a28a51 commit 63e72e2

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

nibabel/tests/test_image_api.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -339,9 +339,10 @@ def validate_data_interface(self, imaker, params):
339339
# cache state.
340340
img.uncache()
341341
assert_true(img.in_memory)
342-
# Values to get_data caching parameter must be 'fill' or
342+
# Values to get_(f)data caching parameter must be 'fill' or
343343
# 'unchanged'
344344
assert_raises(ValueError, img.get_data, caching='something')
345+
assert_raises(ValueError, img.get_fdata, caching='something')
345346
# Data shape is same as image shape
346347
assert_equal(img.shape, method().shape)
347348
# Values to get_data caching parameter must be 'fill' or

0 commit comments

Comments
 (0)