Update of /cvsroot/python/python/dist/src/Lib/test In directory usw-pr-cvs1:/tmp/cvs-serv4517/Python 2.2/Lib/test Modified Files: Tag: release22-maint test_httplib.py Log Message: Use \n as line separator in stead of \r\n, which causes problems in MacPython 2.2. Index: test_httplib.py =================================================================== RCS file: /cvsroot/python/python/dist/src/Lib/test/test_httplib.py,v retrieving revision 1.2.12.3 retrieving revision 1.2.12.4 diff -C2 -d -r1.2.12.3 -r1.2.12.4 *** test_httplib.py 7 Oct 2002 01:18:17 -0000 1.2.12.3 --- test_httplib.py 10 Oct 2002 21:13:53 -0000 1.2.12.4 *************** *** 14,18 **** # Test HTTP status lines ! body = "HTTP/1.1 200 Ok\r\n\r\nText" sock = FakeSocket(body) resp = httplib.HTTPResponse(sock, 1) --- 14,18 ---- # Test HTTP status lines ! body = "HTTP/1.1 200 Ok\n\nText" sock = FakeSocket(body) resp = httplib.HTTPResponse(sock, 1) *************** *** 21,25 **** resp.close() ! body = "HTTP/1.1 400.100 Not Ok\r\n\r\nText" sock = FakeSocket(body) resp = httplib.HTTPResponse(sock, 1) --- 21,25 ---- resp.close() ! body = "HTTP/1.1 400.100 Not Ok\n\nText" sock = FakeSocket(body) resp = httplib.HTTPResponse(sock, 1) *************** *** 42,51 **** # test response with multiple message headers with the same field name. ! text = ('HTTP/1.1 200 OK\r\n' ! 'Set-Cookie: Customer="WILE_E_COYOTE"; Version="1"; Path="/acme"\r\n' 'Set-Cookie: Part_Number="Rocket_Launcher_0001"; Version="1";' ! ' Path="/acme"\r\n' ! '\r\n' ! 'No body\r\n') hdr = ('Customer="WILE_E_COYOTE"; Version="1"; Path="/acme"' ', ' --- 42,51 ---- # test response with multiple message headers with the same field name. ! text = ('HTTP/1.1 200 OK\n' ! 'Set-Cookie: Customer="WILE_E_COYOTE"; Version="1"; Path="/acme"\n' 'Set-Cookie: Part_Number="Rocket_Launcher_0001"; Version="1";' ! ' Path="/acme"\n' ! '\n' ! 'No body\n') hdr = ('Customer="WILE_E_COYOTE"; Version="1"; Path="/acme"' ', '
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4