[Python-checkins] r50558 - python/branches/hoxworth-stdlib_logging-soc/test_soc_httplib.py
jackilyn.hoxworth
python-checkins at python.org
Tue Jul 11 02:21:42 CEST 2006
Author: jackilyn.hoxworth
Date: Tue Jul 11 02:21:41 2006
New Revision: 50558
Modified:
python/branches/hoxworth-stdlib_logging-soc/test_soc_httplib.py
Log:
doesn´t work.
Modified: python/branches/hoxworth-stdlib_logging-soc/test_soc_httplib.py
==============================================================================
--- python/branches/hoxworth-stdlib_logging-soc/test_soc_httplib.py (original)
+++ python/branches/hoxworth-stdlib_logging-soc/test_soc_httplib.py Tue Jul 11 02:21:41 2006
@@ -27,11 +27,12 @@
# create socket
sock = socket.socket(socket.AF_INET, socket.SOCK_STREAM)
-httplib.HTTPResponse(sock).log("message 1")
-httplib.HTTPConnection().log("message 2")
+httplib.HTTPResponse(sock).log("message 1") # says there is no attribute for "log", wtf
+httplib.HTTPConnection(sock.connect).log("message 2")
+
print stringLog.getvalue() # For testing purposes
if stringLog.getvalue() != "Error: It worked":
print "it worked"
else:
- print "it didn't work"
+ print "it didn't work"
\ No newline at end of file
More information about the Python-checkins
mailing list