diff options
author | Georg Brandl <georg@python.org> | 2014-10-08 09:21:15 +0200 |
---|---|---|
committer | Georg Brandl <georg@python.org> | 2014-10-08 09:21:15 +0200 |
commit | 444fb6fd9b3492040a36fcca672fee8175f8d603 (patch) | |
tree | 2bd411ca78decf276b95dc6b1788e594b2e35287 /tests/string_asserts.py | |
parent | 491fec23ef01687906f5d71ee718522cd2917926 (diff) | |
parent | c1bfe4eed3805d3556bffa3c6b9cc2d3f6976205 (diff) | |
download | pygments-444fb6fd9b3492040a36fcca672fee8175f8d603.tar.gz |
Merged in leodemoura/pygments-main (pull request #399)
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)) |