summaryrefslogtreecommitdiff
path: root/testing/code/test_excinfo.py
diff options
context:
space:
mode:
authorRonny Pfannschmidt <opensource@ronnypfannschmidt.de>2018-05-17 23:31:16 +0200
committerRonny Pfannschmidt <opensource@ronnypfannschmidt.de>2018-05-23 16:45:09 +0200
commit9aacb4635e81edd6ecf281d4f6c0cfc8e94ab301 (patch)
tree195e1646c52970c23a8c1e0d3460841646a32e69 /testing/code/test_excinfo.py
parentd41119ed04b4b48e0d5db74d7a4ee29192d9e6b1 (diff)
downloadpytest-9aacb4635e81edd6ecf281d4f6c0cfc8e94ab301.tar.gz
run pyupgrade
Diffstat (limited to 'testing/code/test_excinfo.py')
-rw-r--r--testing/code/test_excinfo.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/testing/code/test_excinfo.py b/testing/code/test_excinfo.py
index 8fd59423f..0f044c9f5 100644
--- a/testing/code/test_excinfo.py
+++ b/testing/code/test_excinfo.py
@@ -203,8 +203,8 @@ class TestTraceback_f_g_h(object):
excinfo = pytest.raises(ValueError, h)
traceback = excinfo.traceback
ntraceback = traceback.filter()
- print('old: {0!r}'.format(traceback))
- print('new: {0!r}'.format(ntraceback))
+ print('old: {!r}'.format(traceback))
+ print('new: {!r}'.format(ntraceback))
if matching:
assert len(ntraceback) == len(traceback) - 2