From 4c552d4ef78a5dbc27730069206816f35c34a9ac Mon Sep 17 00:00:00 2001 From: Florian Bruhin Date: Wed, 20 Apr 2016 10:36:13 +0200 Subject: [PATCH] Fix tests for python 2.6 --- testing/code/test_excinfo.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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