Fix '{0}' format for py26

This commit is contained in:
Bruno Oliveira 2017-02-02 18:01:44 -02:00
parent 43662ce789
commit abbff681ba
1 changed files with 1 additions and 1 deletions

View File

@ -129,7 +129,7 @@ class TestRaises:
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)