Salome HOME
Add test for .mesh file format
[tools/medcoupling.git] / src / MEDCoupling_Swig / MEDCouplingNumPyTest.py
index d784c03c84c636cbc7c3320d7c3f19ea36949be3..8f500a2e7d0aeb21e8945e36b1a24d21b1a8c2d8 100644 (file)
@@ -1,5 +1,5 @@
 #  -*- coding: iso-8859-1 -*-
-# Copyright (C) 2007-2023  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
@@ -823,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")