diff options
author | Georg Brandl <georg@python.org> | 2014-10-07 17:42:01 +0200 |
---|---|---|
committer | Georg Brandl <georg@python.org> | 2014-10-07 17:42:01 +0200 |
commit | 52abd65f03505ef10fbe4e517f615b2805baddf2 (patch) | |
tree | 485bb5b545848fce40f6ad65682af6166c924805 /tests/string_asserts.py | |
parent | 06af846e38aa39e526454c215d80fe0edef50e9d (diff) | |
download | pygments-52abd65f03505ef10fbe4e517f615b2805baddf2.tar.gz |
Closes #1041: Fix test suite to pass under Python 2.6.
Diffstat (limited to 'tests/string_asserts.py')
-rw-r--r-- | tests/string_asserts.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/string_asserts.py b/tests/string_asserts.py index 025a5281..3aa50420 100644 --- a/tests/string_asserts.py +++ b/tests/string_asserts.py @@ -11,12 +11,12 @@ class StringTests(object): def assertStartsWith(self, haystack, needle, msg=None): if msg is None: - msg = "'{}' does not start with '{}'".format(haystack, needle) + msg = "'{0}' does not start with '{1}'".format(haystack, needle) if not haystack.startswith(needle): raise(AssertionError(msg)) def assertEndsWith(self, haystack, needle, msg=None): if msg is None: - msg = "'{}' does not end with '{}'".format(haystack, needle) + msg = "'{0}' does not end with '{1}'".format(haystack, needle) if not haystack.endswith(needle): raise(AssertionError(msg)) |