Skip to content
Myr

Merge pull request #862 from bikerm16/master

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

Minor test fixes

authored by Kenneth Reitz · committed by Kenneth Reitz · parents 58681ec, b733708 · Browse files · 2 files+4 added−2 removed
This commit

State

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

Diff stats

2 files+4 added−2 removed

  • other:+4 added−2 removed

2 files+4 added−2 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
modified:flask/testsuite/helpers.py+1 added-1 removed
267 unmodified lines
268 def test_send_file_object(self):269 app = flask.Flask(__name__)270 with catch_warnings() as captured:271 with app.test_request_context():272 f = open(os.path.join(app.root_path, 'static/index.html'))272 f = open(os.path.join(app.root_path, 'static/index.html'), mode='rb')273 rv = flask.send_file(f)274 rv.direct_passthrough = False275 with app.open_resource('static/index.html') as f:276 self.assert_equal(rv.data, f.read())
382 unmodified lines