File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -140,7 +140,7 @@ def test_from_pickle(train_data, pickle_file):
140
140
if rc then do;
141
141
rc = py.appendSrcLine('try:');
142
142
rc = py.appendSrcLine(' import pickle, base64');
143
- rc = py.appendSrcLine(' bytes = b "X"');
143
+ rc = py.appendSrcLine(' bytes = "X"');
144
144
rc = py.appendSrcLine(' obj = pickle.loads(base64.b64decode(bytes))');
145
145
rc = py.appendSrcLine(' _compile_error = None');
146
146
rc = py.appendSrcLine('except Exception as e:');
@@ -196,7 +196,7 @@ def test_from_pickle(train_data, pickle_file):
196
196
197
197
# Ignore byte string during comparison. Pickle seems to change with
198
198
# time / Python versions
199
- result = re .sub ('bytes = b"[\w\d/\+\=]+" ' , 'bytes = b "X"' , result )
199
+ result = re .sub ('bytes = .* ' , 'bytes = "X"\' ); ' , result )
200
200
assert result == target .lstrip ('\n ' )
201
201
202
202
You can’t perform that action at this time.
0 commit comments