Skip to content
Myr

Fixed PyStringIO in tests for 2.x

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 8cb79fd · Browse files · 1 file+5 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

1 file+5 added−2 removed

  • other:+5 added−2 removed

1 file+5 added−2 removed

modified:flask/testsuite/helpers.py+5 added-2 removed
263 unmodified lines
264 rv.close()265 # etags266 self.assert_equal(len(captured), 1)267 with catch_warnings() as captured:268 class PyStringIO(StringIO):269 pass268 class PyStringIO(object):269 def __init__(self, *args, **kwargs):270 self._io = StringIO(*args, **kwargs)271 def __getattr__(self, name):272 return getattr(self._io, name)273 f = PyStringIO('Test')274 f.name = 'test.txt'275 rv = flask.send_file(f)276 rv.direct_passthrough = False
342 unmodified lines