Skip to content
Myr

Fix test with StringIO.

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

authored by schlamar · committed by schlamar · parent 59f916c · Browse files · 1 file+5 added−0 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−0 removed

  • other:+5 added−0 removed

1 file+5 added−0 removed

modified:test_requests.py+5 added
378 unmodified lines
379380 def test_response_is_iterable(self):381 r = requests.Response()382 io = StringIO.StringIO('abc')383 read_ = io.read384385 def read_mock(amt, decode_content=None):386 return read_(amt)387 setattr(io, 'read', read_mock)388 r.raw = io389 self.assertTrue(next(iter(r)))390 io.close()391
31 unmodified lines