From 4af918d202747afbc7cb4caf44bc05302ea72960 Mon Sep 17 00:00:00 2001 From: Ovidiu Mircescu Date: Mon, 24 Oct 2022 16:40:53 +0200 Subject: [PATCH] bos #29864 Better fix. 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 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/yacsloader_swig/Test/async_plugin.py b/src/yacsloader_swig/Test/async_plugin.py index 6af9d67d2..90c9e50a8 100644 --- a/src/yacsloader_swig/Test/async_plugin.py +++ b/src/yacsloader_swig/Test/async_plugin.py @@ -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 -- 2.39.2