Fix exception hierarchy.
This commit is contained in:
parent
0ae37c7b79
commit
9c13224353
|
@ -35,8 +35,8 @@ OP_TLS_ROLLBACK_BUG = SSL.OP_TLS_ROLLBACK_BUG
|
||||||
|
|
||||||
|
|
||||||
class NetLibError(Exception): pass
|
class NetLibError(Exception): pass
|
||||||
class NetLibDisconnect(Exception): pass
|
class NetLibDisconnect(NetLibError): pass
|
||||||
class NetLibTimeout(Exception): pass
|
class NetLibTimeout(NetLibError): pass
|
||||||
|
|
||||||
|
|
||||||
class _FileLike:
|
class _FileLike:
|
||||||
|
|
|
@ -146,7 +146,7 @@ def test_parse_init_connect():
|
||||||
assert not http.parse_init_connect("CONNECT host.com:foo HTTP/1.0")
|
assert not http.parse_init_connect("CONNECT host.com:foo HTTP/1.0")
|
||||||
|
|
||||||
|
|
||||||
def test_prase_init_proxy():
|
def test_parse_init_proxy():
|
||||||
u = "GET http://foo.com:8888/test HTTP/1.1"
|
u = "GET http://foo.com:8888/test HTTP/1.1"
|
||||||
m, s, h, po, pa, httpversion = http.parse_init_proxy(u)
|
m, s, h, po, pa, httpversion = http.parse_init_proxy(u)
|
||||||
assert m == "GET"
|
assert m == "GET"
|
||||||
|
|
Loading…
Reference in New Issue