Skip to content


Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

BF - make returned class test more specific, fix wrong prediction of …

…return class
  • Loading branch information...
commit ddf0789cd37e0483e1ffa49e21cc0b937a26e4e8 1 parent e71ad18
@matthew-brett matthew-brett authored
Showing with 2 additions and 2 deletions.
  1. +2 −2 nibabel/tests/
4 nibabel/tests/
@@ -235,7 +235,7 @@ def test_filename_save():
(Spm2AnalyzeImage, '.nii', Nifti1Image),
(Spm2AnalyzeImage, '.img', Spm2AnalyzeImage),
(Spm99AnalyzeImage, '.nii', Nifti1Image),
- (Spm99AnalyzeImage, '.img', Spm99AnalyzeImage),
+ (Spm99AnalyzeImage, '.img', Spm2AnalyzeImage),
(AnalyzeImage, '.nii', Nifti1Image),
(AnalyzeImage, '.img', Spm2AnalyzeImage),
@@ -255,7 +255,7 @@ def test_filename_save():, fname)
rt_img = nib.load(fname)
assert_array_almost_equal(rt_img.get_data(), data)
- assert_true(isinstance(rt_img, loadklass))
+ assert_true(type(rt_img) is loadklass)
# delete image to allow file close. Otherwise windows
# raises an error when trying to delete the directory
del rt_img
Please sign in to comment.
Something went wrong with that request. Please try again.