@@ -21,7 +21,9 @@ def test_ffd_iges_pipe_mod_through_files(self):
2121 cre = created .readlines ()[5 :]
2222 self .assertEqual (len (ref ),len (cre ))
2323 for i in range (len (cre )):
24- self .assertMultiLineEqual (ref [i ], cre [i ])
24+ ref_ = np .asarray (ref [i ].split (',' )[:- 1 ], dtype = float )
25+ cre_ = np .asarray (cre [i ].split (',' )[:- 1 ], dtype = float )
26+ np .testing .assert_array_almost_equal (cre_ , ref_ , decimal = 6 )
2527 self .addCleanup (os .remove , 'test_pipe_result.iges' )
2628
2729 def test_ffd_iges_pipe_mod_through_topods_shape (self ):
@@ -38,5 +40,7 @@ def test_ffd_iges_pipe_mod_through_topods_shape(self):
3840 cre = created .readlines ()[5 :]
3941 self .assertEqual (len (ref ),len (cre ))
4042 for i in range (len (cre )):
41- self .assertMultiLineEqual (ref [i ], cre [i ])
43+ ref_ = np .asarray (ref [i ].split (',' )[:- 1 ], dtype = float )
44+ cre_ = np .asarray (cre [i ].split (',' )[:- 1 ], dtype = float )
45+ np .testing .assert_array_almost_equal (cre_ , ref_ , decimal = 6 )
4246 self .addCleanup (os .remove , 'test_pipe_hollow_result.iges' )
0 commit comments