Skip to content
Myr

Merge remote-tracking branch 'kevinburke/domain-failure-connection-error' into bug/2192

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

authored by Ian Cordasco · committed by Ian Cordasco · parents da12223, 2c76122 · 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
284 unmodified lines
285 s.auth = auth286 r = s.get(url)287 assert r.status_code == 200288289 def test_connection_error(self):290 """Connecting to an unknown domain should raise a ConnectionError"""291 with pytest.raises(ConnectionError):292 requests.get("http://fooobarbangbazbing.httpbin.org")293294 def test_basicauth_with_netrc(self):295 auth = ('user', 'pass')296 wrong_auth = ('wronguser', 'wrongpass')297 url = httpbin('basic-auth', 'user', 'pass')
1189 unmodified lines