Browse Source

Fix test_no_error_swallowing

Path in assertion is now cross-platform.
pull/862/head
Michael Bikovitsky 11 years ago
parent
commit
cff35237ef
  1. 4
      flask/testsuite/ext.py

4
flask/testsuite/ext.py

@ -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…
Cancel
Save