Salome HOME
bos #29864 Better fix. V9_10_0b1
authorOvidiu Mircescu <ovidiu.mircescu@edf.fr>
Mon, 24 Oct 2022 14:40:53 +0000 (16:40 +0200)
committerOvidiu Mircescu <ovidiu.mircescu@edf.fr>
Mon, 24 Oct 2022 14:40:53 +0000 (16:40 +0200)
With no pickle protocol there are better chances to have zeros in the pickled
string.
Nevertheless, test should not fail if there is no zero.

src/yacsloader_swig/Test/async_plugin.py

index 6af9d67d2198870f42b9a9c82ff8716221a2f9af..90c9e50a879d295bf7f1bb0e4e8e3a23c9acbf24 100644 (file)
@@ -60,6 +60,6 @@ class myalgosync(SALOMERuntime.OptimizerAlgSync):
     import pickle
     import numpy as np
     resu = np.array(range(1),dtype=np.int32)
-    ob=pickle.dumps(resu,protocol=0)
+    ob=pickle.dumps(resu)
     #assert(bytes([0]) in ob) # test is here presence of 0 in the pickelization
     return ob