Fix test_no_error_swallowing
Path in assertion is now cross-platform.
This commit is contained in:
parent
ff59db16bc
commit
cff35237ef
1 changed files with 3 additions and 1 deletions
|
|
@ -125,7 +125,9 @@ class ExtImportHookTestCase(FlaskTestCase):
|
|||
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)
|
||||
|
||||
import os.path
|
||||
self.assert_in(os.path.join('flask_broken', '__init__.py'), next.tb_frame.f_code.co_filename)
|
||||
|
||||
|
||||
def suite():
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue