Skip to content

Commit

Permalink
Fix : Fixed error message in 'test_read_bad_versions'.
Browse files Browse the repository at this point in the history
  • Loading branch information
jbschiratti committed May 12, 2017
1 parent 9c9d38f commit 352220b
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions pandas/tests/io/test_pickle.py
Expand Up @@ -519,8 +519,9 @@ def test_read_bad_versions(self, protocol, get_random_path):
else:
expect_hp = 3
with tm.assert_raises_regex(ValueError,
"pickle protocol must be <= %d" %
expect_hp):
"pickle protocol %d asked for; the highest"
" available protocol is %d" % (protocol,
expect_hp)):
with tm.ensure_clean(get_random_path) as path:
df = tm.makeDataFrame()
df.to_pickle(path, protocol=protocol)

0 comments on commit 352220b

Please sign in to comment.