Skip to content
Myr

Fixed warning and broken tests on 3.3

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

authored by Armin Ronacher · committed by Armin Ronacher · parent e67d9a0 · Browse files · 2 files+5 added−4 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+5 added−4 removed

  • other:+5 added−4 removed

2 files+5 added−4 removed

modified:flask/testsuite/helpers.py+3 added-2 removed
263 unmodified lines
264 rv.close()265 # etags266 self.assert_equal(len(captured), 1)267 with catch_warnings() as captured:268 from StringIO import StringIO as PYStringIO269 f = PYStringIO('Test')268 class PyStringIO(StringIO):269 pass270 f = PyStringIO('Test')271 f.name = 'test.txt'272 rv = flask.send_file(f)273 rv.direct_passthrough = False274 self.assert_equal(rv.data, b'Test')
331 unmodified lines
modified:flask/testsuite/testing.py+2 added-2 removed
205 unmodified lines
206207 with app.test_client() as c:208 rv = c.post('http://domain.com/action?vodka=42', data={'gin': 43})209 self.assert_equal(rv.status_code, 200)210 self.assert_('gin' in flask.request.form)211 self.assert_('vodka' in flask.request.args)210 self.assert_true('gin' in flask.request.form)211 self.assert_true('vodka' in flask.request.args)212213214class SubdomainTestCase(FlaskTestCase):215
41 unmodified lines