[Python-checkins] r50527 - python/branches/hoxworth-stdlib_logging-soc/test_soc_httplib.py

jackilyn.hoxworth python-checkins at python.org
Mon Jul 10 21:09:59 CEST 2006


Author: jackilyn.hoxworth
Date: Mon Jul 10 21:09:59 2006
New Revision: 50527

Modified:
   python/branches/hoxworth-stdlib_logging-soc/test_soc_httplib.py
Log:
Doesn't work yet

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	Mon Jul 10 21:09:59 2006
@@ -7,6 +7,7 @@
 
 import logging
 import httplib
+import socket
 from cStringIO import StringIO
 
 log=logging.getLogger("py.httplib")
@@ -23,6 +24,9 @@
 # add the handler to the logger
 log.addHandler(handler)
 
+# create socket
+sock = socket.socket(socket.AF_INET, socket.SOCK_STREAM)
+
 httplib.HTTPResponse(sock).log("message 1")
 httplib.HTTPConnection().log("message 2")
 print stringLog.getvalue()  # For testing purposes


More information about the Python-checkins mailing list