Skip to content

Commit e07dcb5

Browse files
committed
Adjusted a testcase for Python 3
1 parent f191809 commit e07dcb5

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

flask/testsuite/ext.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -121,7 +121,10 @@ def test_no_error_swallowing(self):
121121
self.assert_true(tb.tb_frame.f_globals is globals())
122122

123123
# reraise() adds a second frame so we need to skip that one too.
124+
# On PY3 we even have another one :(
124125
next = tb.tb_next.tb_next
126+
if not PY2:
127+
next = next.tb_next
125128
self.assert_in('flask_broken/__init__.py', next.tb_frame.f_code.co_filename)
126129

127130

0 commit comments

Comments
 (0)