Fix tests for python 2.6

This commit is contained in:
Florian Bruhin 2016-04-20 10:36:13 +02:00
parent b607f6728f
commit 4c552d4ef7
1 changed files with 2 additions and 2 deletions

View File

@ -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