From cff35237efea11c4bbc8c2fc75e24cbea30b26ce Mon Sep 17 00:00:00 2001 From: Michael Bikovitsky Date: Sat, 7 Sep 2013 18:21:15 +0300 Subject: [PATCH] Fix test_no_error_swallowing Path in assertion is now cross-platform. --- flask/testsuite/ext.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/flask/testsuite/ext.py b/flask/testsuite/ext.py index 5cc3df43..7bdf6886 100644 --- a/flask/testsuite/ext.py +++ b/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():