mirror of
https://github.com/python/cpython.git
synced 2025-08-04 08:59:19 +00:00
Remove tabs.
This commit is contained in:
parent
ca0d2cb66e
commit
0a1af4aeb0
2 changed files with 6 additions and 6 deletions
|
@ -121,14 +121,14 @@ def _test():
|
|||
for hp,h,p in (("[fe80::207:e9ff:fe9b]:8000", "fe80::207:e9ff:fe9b", 8000),
|
||||
("www.python.org:80", "www.python.org", 80),
|
||||
("www.python.org", "www.python.org", 80),
|
||||
("[fe80::207:e9ff:fe9b]", "fe80::207:e9ff:fe9b", 80)):
|
||||
("[fe80::207:e9ff:fe9b]", "fe80::207:e9ff:fe9b", 80)):
|
||||
try:
|
||||
http = httplib.HTTP(hp)
|
||||
except httplib.InvalidURL:
|
||||
print "InvalidURL raised erroneously"
|
||||
c = http._conn
|
||||
if h != c.host: raise AssertionError, ("Host incorrectly parsed", h, c.host)
|
||||
if p != c.port: raise AssertionError, ("Port incorrectly parsed", p, c.host)
|
||||
c = http._conn
|
||||
if h != c.host: raise AssertionError, ("Host incorrectly parsed", h, c.host)
|
||||
if p != c.port: raise AssertionError, ("Port incorrectly parsed", p, c.host)
|
||||
|
||||
# test response with multiple message headers with the same field name.
|
||||
text = ('HTTP/1.1 200 OK\r\n'
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue