[Python-checkins] python/dist/src/Lib/distutils log.py,1.5,1.6

fdrake at users.sourceforge.net fdrake at users.sourceforge.net
Tue Aug 3 20:53:09 CEST 2004


Update of /cvsroot/python/python/dist/src/Lib/distutils
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv17319/Lib/distutils

Modified Files:
	log.py 
Log Message:
make sure distutils logging is shut off in tests to avoid spurious output

Index: log.py
===================================================================
RCS file: /cvsroot/python/python/dist/src/Lib/distutils/log.py,v
retrieving revision 1.5
retrieving revision 1.6
diff -C2 -d -r1.5 -r1.6
*** log.py	18 Jul 2004 06:14:42 -0000	1.5
--- log.py	3 Aug 2004 18:53:07 -0000	1.6
***************
*** 51,55 ****
--- 51,58 ----
  
  def set_threshold(level):
+     # return the old threshold for use from tests
+     old = _global_log.threshold
      _global_log.threshold = level
+     return old
  
  def set_verbosity(v):



More information about the Python-checkins mailing list