Skip to content

Commit

Permalink
Fix '{0}' format for py26
Browse files Browse the repository at this point in the history
  • Loading branch information
nicoddemus committed Feb 2, 2017
1 parent 43662ce commit abbff68
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion testing/python/raises.py
Original file line number Diff line number Diff line change
Expand Up @@ -129,7 +129,7 @@ def test_raises_match(self):
int('asdf')

msg = "with base 16"
expr = r"Pattern '{}' not found in 'invalid literal for int\(\) with base 10: 'asdf''".format(msg)
expr = r"Pattern '{0}' not found in 'invalid literal for int\(\) with base 10: 'asdf''".format(msg)
with pytest.raises(AssertionError, match=expr):
with pytest.raises(ValueError, match=msg):
int('asdf', base=10)

0 comments on commit abbff68

Please sign in to comment.