@@ -349,7 +349,7 @@ def test_freesurfer_ico7_hack(self):
349349nii2 = load ('test.nii' )
350350assert_equal (nii .shape ,nii2 .shape )
351351assert_array_equal (nii .get_data (),nii2 .get_data ())
352- assert_array_equal (nii .get_affine () ,nii2 .get_affine () )
352+ assert_array_equal (nii .affine ,nii2 .affine )
353353
354354def test_qform_sform (self ):
355355HC = self .header_class
@@ -1036,6 +1036,8 @@ def test_norm_zooms_edge_cases(self):
10361036aff = np .eye (4 )
10371037img = img_klass (arr ,aff )
10381038
1039+ warnings .simplefilter ('always' )
1040+
10391041# Unknown units = 2 warnings
10401042with warnings .catch_warnings (record = True )as warns :
10411043assert_array_almost_equal (img .header .get_norm_zooms (),
@@ -1079,6 +1081,8 @@ def test_norm_zooms_edge_cases(self):
10791081assert_array_almost_equal (img .header .get_zooms (), (2 ,2 ,2 ,2.5 ))
10801082assert_equal (img .header .get_xyzt_units (), ('mm' ,'sec' ))
10811083
1084+ warnings .simplefilter ('default' )
1085+
10821086
10831087class TestNifti1Image (TestNifti1Pair ):
10841088# Run analyze-flavor spatialimage tests