Skip to content

Commit 352220b

Browse files
committed
Fix : Fixed error message in 'test_read_bad_versions'.
1 parent 9c9d38f commit 352220b

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

pandas/tests/io/test_pickle.py

+3-2
Original file line numberDiff line numberDiff line change
@@ -519,8 +519,9 @@ def test_read_bad_versions(self, protocol, get_random_path):
519519
else:
520520
expect_hp = 3
521521
with tm.assert_raises_regex(ValueError,
522-
"pickle protocol must be <= %d" %
523-
expect_hp):
522+
"pickle protocol %d asked for; the highest"
523+
" available protocol is %d" % (protocol,
524+
expect_hp)):
524525
with tm.ensure_clean(get_random_path) as path:
525526
df = tm.makeDataFrame()
526527
df.to_pickle(path, protocol=protocol)

0 commit comments

Comments
 (0)