Skip to content
Myr

fix 26

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

authored by Kenneth Reitz · committed by Kenneth Reitz · parent c4eb930 · Browse files · 1 file+4 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+4 added−2 removed

  • other:+4 added−2 removed

1 file+4 added−2 removed

modified:test_requests.py+4 added-2 removed
703 unmodified lines
704 self.assertEqual(list(r.iter_content()), [])705 assert isinstance(r.error, requests.exceptions.ConnectionError)706707 # When not in safe mode, should raise Timeout exception708 with self.assertRaises(requests.exceptions.Timeout):709 r = requests.get(httpbin('stream', '1000'), timeout=0.0001)708 self.assertRaises(709 requests.exceptions.Timeout,710 requests.get,711 httpbin('stream', '1000'), timeout=0.0001)712713 # In safe mode, should return a blank response714 r = requests.get(httpbin('stream', '1000'), timeout=0.0001,715 config=dict(safe_mode=True))
6 unmodified lines