Salome HOME
Add test for .mesh file format
[tools/medcoupling.git] / src / MEDCoupling_Swig / MEDCouplingNumPyTest.py
index 2ab3d2e5ac80c23cc2034c300f2b611d15d5bd96..8f500a2e7d0aeb21e8945e36b1a24d21b1a8c2d8 100644 (file)
@@ -1,5 +1,5 @@
 #  -*- coding: iso-8859-1 -*-
-# Copyright (C) 2007-2021  CEA/DEN, EDF R&D
+# Copyright (C) 2007-2024  CEA, EDF
 #
 # This library is free software; you can redistribute it and/or
 # modify it under the terms of the GNU Lesser General Public
 
 
 import sys
-if sys.platform == "win32":
-    from MEDCouplingCompat import *
-else:
-    from medcoupling import *
+from medcoupling import *
 
 if MEDCouplingHasNumPyBindings():
     from numpy import *
@@ -826,6 +823,7 @@ class MEDCouplingNumPyTest(unittest.TestCase):
         a=zeros(20,dtype=float32)
         b = a[::-1]
         self.assertRaises(InterpKernelException,DataArrayFloat.New,b) # b is not contiguous in memory
+        DataArrayFloat.New( ravel(b) )
         pass
     
     @unittest.skipUnless(MEDCouplingHasNumPyBindings(),"requires numpy")