diff options
| author | Hugo <hugovk@users.noreply.github.com> | 2019-10-19 19:25:34 +0300 |
|---|---|---|
| committer | Hugo <hugovk@users.noreply.github.com> | 2019-10-19 19:25:34 +0300 |
| commit | 7347d07624664bb3fd525c2fe68d4aa86cab32fe (patch) | |
| tree | 74f0f7a6e2582c8be6fc6b8bc0a34e0a965dd822 /tests/test_tablib.py | |
| parent | c9027b446caac8c790be1e1ca257654240296d21 (diff) | |
| download | tablib-7347d07624664bb3fd525c2fe68d4aa86cab32fe.tar.gz | |
Upgrade Python syntax with pyupgrade --py3-plus
Diffstat (limited to 'tests/test_tablib.py')
| -rwxr-xr-x | tests/test_tablib.py | 4 |
1 files changed, 2 insertions, 2 deletions
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 |
