Salome HOME
bos #29864 Irrelevant assert in test.
authorOvidiu Mircescu <ovidiu.mircescu@edf.fr>
Mon, 24 Oct 2022 13:07:01 +0000 (15:07 +0200)
committerOvidiu Mircescu <ovidiu.mircescu@edf.fr>
Mon, 24 Oct 2022 13:07:01 +0000 (15:07 +0200)
src/yacsloader_swig/Test/StdAloneYacsLoaderTest1.py
src/yacsloader_swig/Test/async_plugin.py

index db55c67d1e689661e67d22453ee84033186bff5b..4d61aa06089a583f807cbaf08203dc24062133c4 100644 (file)
@@ -292,6 +292,7 @@ print("PyScript0",entier)
 
     sortie_script="""import numpy as np
 assert(isinstance(resultats,np.ndarray))
+assert(resultats==np.array(range(1),dtype=np.int32))
 """
 
     nbWorkers=1
index 15216379361706ad3bea034506b9c57a1ec23482..6af9d67d2198870f42b9a9c82ff8716221a2f9af 100644 (file)
@@ -61,5 +61,5 @@ class myalgosync(SALOMERuntime.OptimizerAlgSync):
     import numpy as np
     resu = np.array(range(1),dtype=np.int32)
     ob=pickle.dumps(resu,protocol=0)
-    assert(bytes([0]) in ob) # test is here presence of 0 in the pickelization
+    #assert(bytes([0]) in ob) # test is here presence of 0 in the pickelization
     return ob