Skip to content
Myr

Fix test_no_error_swallowing

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Path in assertion is now cross-platform.

authored by Michael Bikovitsky · committed by Michael Bikovitsky · parent ff59db1 · Browse files · 1 file+3 added−1 removed
This commit

State

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Diff stats

1 file+3 added−1 removed

  • other:+3 added−1 removed

1 file+3 added−1 removed

modified:flask/testsuite/ext.py+3 added-1 removed
123 unmodified lines
124 # On PY3 we even have another one :(125 next = tb.tb_next.tb_next126 if not PY2:127 next = next.tb_next128 129 import os.path128 self.assert_in('flask_broken/__init__.py', next.tb_frame.f_code.co_filename)130 self.assert_in(os.path.join('flask_broken', '__init__.py'), next.tb_frame.f_code.co_filename)131132133def suite():134 suite = unittest.TestSuite()
2 unmodified lines