diff --git a/testing/code/test_excinfo.py b/testing/code/test_excinfo.py index 8cf79166b..5c47feed6 100644 --- a/testing/code/test_excinfo.py +++ b/testing/code/test_excinfo.py @@ -168,8 +168,8 @@ class TestTraceback_f_g_h: excinfo = pytest.raises(ValueError, h) traceback = excinfo.traceback ntraceback = traceback.filter() - print('old: {!r}'.format(traceback)) - print('new: {!r}'.format(ntraceback)) + print('old: {0!r}'.format(traceback)) + print('new: {0!r}'.format(ntraceback)) if matching: assert len(ntraceback) == len(traceback) - 2