Fix test_no_error_swallowing

Path in assertion is now cross-platform.
This commit is contained in:
Michael Bikovitsky 2013-09-07 18:21:15 +03:00
parent ff59db16bc
commit cff35237ef

View file

@ -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():