Skip to content

Commit 4e655e2

Browse files
committed
debug
1 parent 07bb548 commit 4e655e2

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

tests/integration/test_pymas.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -194,8 +194,10 @@ def test_from_pickle(train_data, pickle_file):
194194
# Drop leading \n caused by multiline comment formatting
195195
result = p.score_code()
196196

197-
assert re.sub('bytes = b"[\w\d/\+]+"', 'bytes = b"X"', result) == \
198-
target.lstrip('\n')
197+
# Ignore byte string during comparison. Pickle seems to change with
198+
# time / Python versions
199+
result = re.sub('bytes = b"[\w\d/\+]+"', 'bytes = b"X"', result)
200+
assert result == target.lstrip('\n')
199201

200202

201203
def test_from_pickle_stream(train_data, pickle_stream):

0 commit comments

Comments
 (0)