We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 99f1168 commit 0567ac3Copy full SHA for 0567ac3
nibabel/tests/test_funcs.py
@@ -102,7 +102,7 @@ def test_concat():
102
all_imgs = concat_images([img0, img1],
103
**concat_imgs_kwargs)
104
except ValueError as ve:
105
- assert_true(expect_error, ve.message)
+ assert_true(expect_error, str(ve))
106
else:
107
assert_false(expect_error, "Expected a concatenation error, but got none.")
108
assert_array_equal(all_imgs.get_data(), all_data)
@@ -115,7 +115,7 @@ def test_concat():
115
try:
116
all_imgs = concat_images([img0, img1], **concat_imgs_kwargs)
117
118
119
120
121
0 commit comments