From 7347d07624664bb3fd525c2fe68d4aa86cab32fe Mon Sep 17 00:00:00 2001 From: Hugo Date: Sat, 19 Oct 2019 19:25:34 +0300 Subject: Upgrade Python syntax with pyupgrade --py3-plus --- tests/test_tablib.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'tests') diff --git a/tests/test_tablib.py b/tests/test_tablib.py index 77f2ef6..4318d7d 100755 --- a/tests/test_tablib.py +++ b/tests/test_tablib.py @@ -1012,7 +1012,7 @@ class DBFTests(BaseTestCase): for reg_char, data_char in zip(_dbf, data.dbf): so_far += chr(data_char) if reg_char != data_char and index not in [1, 2, 3]: - raise AssertionError('Failing at char %s: %s vs %s %s' % ( + raise AssertionError('Failing at char {}: {} vs {} {}'.format( index, reg_char, data_char, so_far)) index += 1 @@ -1055,7 +1055,7 @@ class DBFTests(BaseTestCase): # found_so_far += chr(data_char) if reg_char != data_char and index not in [1, 2, 3]: raise AssertionError( - 'Failing at char %s: %s vs %s (found %s)' % ( + 'Failing at char {}: {} vs {} (found {})'.format( index, reg_char, data_char, found_so_far)) index += 1 -- cgit v1.2.1