From abbff681babdfc788871b77cc7126bf0a63e9f6b Mon Sep 17 00:00:00 2001 From: Bruno Oliveira Date: Thu, 2 Feb 2017 18:01:44 -0200 Subject: [PATCH] Fix '{0}' format for py26 --- testing/python/raises.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/testing/python/raises.py b/testing/python/raises.py index 58d6db244..8170ec793 100644 --- a/testing/python/raises.py +++ b/testing/python/raises.py @@ -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)