Adjusted a testcase for Python 3
This commit is contained in:
parent
f1918093ac
commit
e07dcb5562
1 changed files with 3 additions and 0 deletions
|
|
@ -121,7 +121,10 @@ class ExtImportHookTestCase(FlaskTestCase):
|
|||
self.assert_true(tb.tb_frame.f_globals is globals())
|
||||
|
||||
# reraise() adds a second frame so we need to skip that one too.
|
||||
# On PY3 we even have another one :(
|
||||
next = tb.tb_next.tb_next
|
||||
if not PY2:
|
||||
next = next.tb_next
|
||||
self.assert_in('flask_broken/__init__.py', next.tb_frame.f_code.co_filename)
|
||||
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue