[Python-checkins] r51799 - python/branches/hoxworth-stdlib_logging-soc/test_gopherlib_logging.py python/branches/hoxworth-stdlib_logging-soc/test_httplib_logging.py python/branches/hoxworth-stdlib_logging-soc/test_ihooks_logging.py python/branches/hoxworth-stdlib_logging-soc/test_imaplib_logging.py python/branches/hoxworth-stdlib_logging-soc/test_mhlib_logging.py python/branches/hoxworth-stdlib_logging-soc/test_nntplib_logging.py python/branches/hoxworth-stdlib_logging-soc/test_pipes_logging.py python/branches/hoxworth-stdlib_logging-soc/test_robotparser_loggin.py python/branches/hoxworth-stdlib_logging-soc/test_shlex_logging.py python/branches/hoxworth-stdlib_logging-soc/test_smtpd_logging.py python/branches/hoxworth-stdlib_logging-soc/test_soc_httplib.py python/branches/hoxworth-stdlib_logging-soc/test_threading_logging.py python/branches/hoxworth-stdlib_logging-soc/test_timeit_logging.py python/branches/hoxworth-stdlib_logging-soc/threading.py

jackilyn.hoxworth python-checkins at python.org
Thu Sep 7 05:39:15 CEST 2006


Author: jackilyn.hoxworth
Date: Thu Sep  7 05:39:10 2006
New Revision: 51799

Modified:
   python/branches/hoxworth-stdlib_logging-soc/test_gopherlib_logging.py
   python/branches/hoxworth-stdlib_logging-soc/test_httplib_logging.py
   python/branches/hoxworth-stdlib_logging-soc/test_ihooks_logging.py
   python/branches/hoxworth-stdlib_logging-soc/test_imaplib_logging.py
   python/branches/hoxworth-stdlib_logging-soc/test_mhlib_logging.py
   python/branches/hoxworth-stdlib_logging-soc/test_nntplib_logging.py
   python/branches/hoxworth-stdlib_logging-soc/test_pipes_logging.py
   python/branches/hoxworth-stdlib_logging-soc/test_robotparser_loggin.py
   python/branches/hoxworth-stdlib_logging-soc/test_shlex_logging.py
   python/branches/hoxworth-stdlib_logging-soc/test_smtpd_logging.py
   python/branches/hoxworth-stdlib_logging-soc/test_soc_httplib.py
   python/branches/hoxworth-stdlib_logging-soc/test_threading_logging.py
   python/branches/hoxworth-stdlib_logging-soc/test_timeit_logging.py
   python/branches/hoxworth-stdlib_logging-soc/threading.py
Log:


Modified: python/branches/hoxworth-stdlib_logging-soc/test_gopherlib_logging.py
==============================================================================
--- python/branches/hoxworth-stdlib_logging-soc/test_gopherlib_logging.py	(original)
+++ python/branches/hoxworth-stdlib_logging-soc/test_gopherlib_logging.py	Thu Sep  7 05:39:10 2006
@@ -16,8 +16,8 @@
 gopherlib._log.info("message 1")
 
 print stringLog.getvalue()  # For testing purposes
-
-if stringLog.getvalue() != "Error:  It worked":
+	
+if stringLog.getvalue()  == "message 1" + "\n":
     print "it worked"
 else:
     print "it didn't work"
\ No newline at end of file

Modified: python/branches/hoxworth-stdlib_logging-soc/test_httplib_logging.py
==============================================================================
--- python/branches/hoxworth-stdlib_logging-soc/test_httplib_logging.py	(original)
+++ python/branches/hoxworth-stdlib_logging-soc/test_httplib_logging.py	Thu Sep  7 05:39:10 2006
@@ -33,7 +33,7 @@
 
 print stringLog.getvalue()  # For testing purposes
 
-if stringLog.getvalue() != "Error:  It worked":
+if stringLog.getvalue()  == "message 1" + "\n":
     print "it worked"
 else:
     print "it didn't work"

Modified: python/branches/hoxworth-stdlib_logging-soc/test_ihooks_logging.py
==============================================================================
--- python/branches/hoxworth-stdlib_logging-soc/test_ihooks_logging.py	(original)
+++ python/branches/hoxworth-stdlib_logging-soc/test_ihooks_logging.py	Thu Sep  7 05:39:10 2006
@@ -17,7 +17,7 @@
 
 print stringLog.getvalue()  # For testing purposes
 
-if stringLog.getvalue() != "Error:  It worked":
+if stringLog.getvalue()  == "message 1" + "\n":
     print "it worked"
 else:
     print "it didn't work"
\ No newline at end of file

Modified: python/branches/hoxworth-stdlib_logging-soc/test_imaplib_logging.py
==============================================================================
--- python/branches/hoxworth-stdlib_logging-soc/test_imaplib_logging.py	(original)
+++ python/branches/hoxworth-stdlib_logging-soc/test_imaplib_logging.py	Thu Sep  7 05:39:10 2006
@@ -17,7 +17,7 @@
 
 print stringLog.getvalue()  # For testing purposes
 
-if stringLog.getvalue() != "Error:  It worked":
+if stringLog.getvalue()  == "message 1" + "\n":
     print "it worked"
 else:
     print "it didn't work"
\ No newline at end of file

Modified: python/branches/hoxworth-stdlib_logging-soc/test_mhlib_logging.py
==============================================================================
--- python/branches/hoxworth-stdlib_logging-soc/test_mhlib_logging.py	(original)
+++ python/branches/hoxworth-stdlib_logging-soc/test_mhlib_logging.py	Thu Sep  7 05:39:10 2006
@@ -17,7 +17,7 @@
 
 print stringLog.getvalue()  # For testing purposes
 
-if stringLog.getvalue() != "Error:  It worked":
+if stringLog.getvalue()  == "message 1" + "\n":
     print "it worked"
 else:
     print "it didn't work"
\ No newline at end of file

Modified: python/branches/hoxworth-stdlib_logging-soc/test_nntplib_logging.py
==============================================================================
--- python/branches/hoxworth-stdlib_logging-soc/test_nntplib_logging.py	(original)
+++ python/branches/hoxworth-stdlib_logging-soc/test_nntplib_logging.py	Thu Sep  7 05:39:10 2006
@@ -17,7 +17,7 @@
 
 print stringLog.getvalue()  # For testing purposes
 
-if stringLog.getvalue() != "Error:  It worked":
+if stringLog.getvalue()  == "message 1" + "\n":
     print "it worked"
 else:
     print "it didn't work"
\ No newline at end of file

Modified: python/branches/hoxworth-stdlib_logging-soc/test_pipes_logging.py
==============================================================================
--- python/branches/hoxworth-stdlib_logging-soc/test_pipes_logging.py	(original)
+++ python/branches/hoxworth-stdlib_logging-soc/test_pipes_logging.py	Thu Sep  7 05:39:10 2006
@@ -17,7 +17,7 @@
 
 print stringLog.getvalue()  # For testing purposes
 
-if stringLog.getvalue() != "Error:  It worked":
+if stringLog.getvalue()  == "message 1" + "\n":
     print "it worked"
 else:
     print "it didn't work"
\ No newline at end of file

Modified: python/branches/hoxworth-stdlib_logging-soc/test_robotparser_loggin.py
==============================================================================
--- python/branches/hoxworth-stdlib_logging-soc/test_robotparser_loggin.py	(original)
+++ python/branches/hoxworth-stdlib_logging-soc/test_robotparser_loggin.py	Thu Sep  7 05:39:10 2006
@@ -17,7 +17,7 @@
 
 print stringLog.getvalue()  # For testing purposes
 
-if stringLog.getvalue() != "Error:  It worked":
+if stringLog.getvalue() != "message 1 \n":
     print "it worked"
 else:
     print "it didn't work"
\ No newline at end of file

Modified: python/branches/hoxworth-stdlib_logging-soc/test_shlex_logging.py
==============================================================================
--- python/branches/hoxworth-stdlib_logging-soc/test_shlex_logging.py	(original)
+++ python/branches/hoxworth-stdlib_logging-soc/test_shlex_logging.py	Thu Sep  7 05:39:10 2006
@@ -17,7 +17,7 @@
 
 print stringLog.getvalue()  # For testing purposes
 
-if stringLog.getvalue() != "Error:  It worked":
+if stringLog.getvalue()  == "message 1" + "\n":
     print "it worked"
 else:
     print "it didn't work"
\ No newline at end of file

Modified: python/branches/hoxworth-stdlib_logging-soc/test_smtpd_logging.py
==============================================================================
--- python/branches/hoxworth-stdlib_logging-soc/test_smtpd_logging.py	(original)
+++ python/branches/hoxworth-stdlib_logging-soc/test_smtpd_logging.py	Thu Sep  7 05:39:10 2006
@@ -17,7 +17,7 @@
 
 print stringLog.getvalue()  # For testing purposes
 
-if stringLog.getvalue() != "Error:  It worked":
+if stringLog.getvalue()  == "message 1" + "\n":
     print "it worked"
 else:
     print "it didn't work"
\ No newline at end of file

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	Thu Sep  7 05:39:10 2006
@@ -60,7 +60,7 @@
 
 print stringLog.getvalue()  # For testing purposes
 
-if stringLog.getvalue() != "Error:  It worked":
+if stringLog.getvalue()  == "message 1" + "\n":
     print "it worked"
 else:
     print "it didn't work"
\ No newline at end of file

Modified: python/branches/hoxworth-stdlib_logging-soc/test_threading_logging.py
==============================================================================
--- python/branches/hoxworth-stdlib_logging-soc/test_threading_logging.py	(original)
+++ python/branches/hoxworth-stdlib_logging-soc/test_threading_logging.py	Thu Sep  7 05:39:10 2006
@@ -17,7 +17,7 @@
 
 print stringLog.getvalue()  # For testing purposes
 
-if stringLog.getvalue() != "Error:  It worked":
+if stringLog.getvalue()  == "message 1" + "\n":
     print "it worked"
 else:
     print "it didn't work"
\ No newline at end of file

Modified: python/branches/hoxworth-stdlib_logging-soc/test_timeit_logging.py
==============================================================================
--- python/branches/hoxworth-stdlib_logging-soc/test_timeit_logging.py	(original)
+++ python/branches/hoxworth-stdlib_logging-soc/test_timeit_logging.py	Thu Sep  7 05:39:10 2006
@@ -17,7 +17,7 @@
 
 print stringLog.getvalue()  # For testing purposes
 
-if stringLog.getvalue() != "Error:  It worked":
+if stringLog.getvalue()  == "message 1" + "\n":
     print "it worked"
 else:
     print "it didn't work"
\ No newline at end of file

Modified: python/branches/hoxworth-stdlib_logging-soc/threading.py
==============================================================================
--- python/branches/hoxworth-stdlib_logging-soc/threading.py	(original)
+++ python/branches/hoxworth-stdlib_logging-soc/threading.py	Thu Sep  7 05:39:10 2006
@@ -2,8 +2,8 @@
 
 import sys as _sys
 
-import logging
-_log = logging.getLogger('py.threading')
+from logging import getLogger
+_log = getLogger('py.threading')
 
 try:
     import thread
@@ -480,7 +480,7 @@
                     # Lib/traceback.py)
                     exc_type, exc_value, exc_tb = self.__exc_info()
                     try:
-                        _log.info(>>self.__stderr, (
+                        _log.info(self.__stderr, (
                             "Exception in thread " + self.getName() +
                             " (most likely raised during interpreter shutdown):"))
                         _log.info(self.__stderr, (


More information about the Python-checkins mailing list