projects
/
services
/
python-requests.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
9eab9f7
)
Replace setattr
author
Roman Levin
<romanlevin@gmail.com>
Thu, 24 Jul 2014 21:30:11 +0000
(23:30 +0200)
committer
Roman Levin
<romanlevin@gmail.com>
Thu, 24 Jul 2014 21:30:11 +0000
(23:30 +0200)
test_requests.py
patch
|
blob
|
history
diff --git
a/test_requests.py
b/test_requests.py
index 004d6e8f3a8bef2769ba3e1344c15b6a3a1b1b4f..694b779c2792f5534a50ce5923ce96727c84b84c 100755
(executable)
--- a/
test_requests.py
+++ b/
test_requests.py
@@
-728,7
+728,7
@@
class RequestsTestCase(unittest.TestCase):
def stream(self, chunk_size, decode_content=None):
raise socket.error()
-
setattr(r, 'raw', RawMock()
)
+
r.raw = RawMock(
)
with pytest.raises(ConnectionError):
list(r.iter_content())