We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 07bb548 commit 4e655e2Copy full SHA for 4e655e2
tests/integration/test_pymas.py
@@ -194,8 +194,10 @@ def test_from_pickle(train_data, pickle_file):
194
# Drop leading \n caused by multiline comment formatting
195
result = p.score_code()
196
197
- assert re.sub('bytes = b"[\w\d/\+]+"', 'bytes = b"X"', result) == \
198
- target.lstrip('\n')
+ # Ignore byte string during comparison. Pickle seems to change with
+ # time / Python versions
199
+ result = re.sub('bytes = b"[\w\d/\+]+"', 'bytes = b"X"', result)
200
+ assert result == target.lstrip('\n')
201
202
203
def test_from_pickle_stream(train_data, pickle_stream):
0 commit comments