Skip to content
Myr

Replace setattr

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

authored by Roman Levin · committed by Roman Levin · parent 9eab9f7 · Browse files · 1 file+1 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+1 added−1 removed

  • other:+1 added−1 removed

1 file+1 added−1 removed

modified:test_requests.py+1 added-1 removed
726 unmodified lines
727 class RawMock(object):728 def stream(self, chunk_size, decode_content=None):729 raise socket.error()730731 setattr(r, 'raw', RawMock())731 r.raw = RawMock()732 with pytest.raises(ConnectionError):733 list(r.iter_content())734735 def test_response_decode_unicode(self):
702 unmodified lines