Skip to content

Commit abbff68

Browse files
committed
Fix '{0}' format for py26
1 parent 43662ce commit abbff68

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

testing/python/raises.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -129,7 +129,7 @@ def test_raises_match(self):
129129
int('asdf')
130130

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

0 commit comments

Comments
 (0)