Fix tests for python 2.6
This commit is contained in:
parent
b607f6728f
commit
4c552d4ef7
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue