[Python-checkins] python/dist/src/Lib/distutils/tests support.py,
1.1, 1.2 test_build_py.py, 1.3, 1.4 test_build_scripts.py, 1.2,
1.3 test_install_scripts.py, 1.4, 1.5
fdrake at users.sourceforge.net
fdrake at users.sourceforge.net
Tue Aug 3 20:53:10 CEST 2004
Update of /cvsroot/python/python/dist/src/Lib/distutils/tests
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv17319/Lib/distutils/tests
Modified Files:
support.py test_build_py.py test_build_scripts.py
test_install_scripts.py
Log Message:
make sure distutils logging is shut off in tests to avoid spurious output
Index: support.py
===================================================================
RCS file: /cvsroot/python/python/dist/src/Lib/distutils/tests/support.py,v
retrieving revision 1.1
retrieving revision 1.2
diff -C2 -d -r1.1 -r1.2
*** support.py 17 Jun 2004 20:14:50 -0000 1.1
--- support.py 3 Aug 2004 18:53:07 -0000 1.2
***************
*** 4,7 ****
--- 4,20 ----
import tempfile
+ from distutils import log
+
+
+ class LoggingSilencer(object):
+
+ def setUp(self):
+ super(LoggingSilencer, self).setUp()
+ self.threshold = log.set_threshold(log.FATAL)
+
+ def tearDown(self):
+ log.set_threshold(self.threshold)
+ super(LoggingSilencer, self).tearDown()
+
class TempdirManager(object):
Index: test_build_py.py
===================================================================
RCS file: /cvsroot/python/python/dist/src/Lib/distutils/tests/test_build_py.py,v
retrieving revision 1.3
retrieving revision 1.4
diff -C2 -d -r1.3 -r1.4
*** test_build_py.py 21 Jul 2004 18:53:06 -0000 1.3
--- test_build_py.py 3 Aug 2004 18:53:07 -0000 1.4
***************
*** 10,14 ****
! class BuildPyTestCase(support.TempdirManager, unittest.TestCase):
def test_package_data(self):
--- 10,16 ----
! class BuildPyTestCase(support.TempdirManager,
! support.LoggingSilencer,
! unittest.TestCase):
def test_package_data(self):
Index: test_build_scripts.py
===================================================================
RCS file: /cvsroot/python/python/dist/src/Lib/distutils/tests/test_build_scripts.py,v
retrieving revision 1.2
retrieving revision 1.3
diff -C2 -d -r1.2 -r1.3
*** test_build_scripts.py 25 Jun 2004 19:04:21 -0000 1.2
--- test_build_scripts.py 3 Aug 2004 18:53:07 -0000 1.3
***************
*** 10,14 ****
! class BuildScriptsTestCase(support.TempdirManager, unittest.TestCase):
def test_default_settings(self):
--- 10,16 ----
! class BuildScriptsTestCase(support.TempdirManager,
! support.LoggingSilencer,
! unittest.TestCase):
def test_default_settings(self):
Index: test_install_scripts.py
===================================================================
RCS file: /cvsroot/python/python/dist/src/Lib/distutils/tests/test_install_scripts.py,v
retrieving revision 1.4
retrieving revision 1.5
diff -C2 -d -r1.4 -r1.5
*** test_install_scripts.py 25 Jun 2004 19:04:21 -0000 1.4
--- test_install_scripts.py 3 Aug 2004 18:53:07 -0000 1.5
***************
*** 10,14 ****
! class InstallScriptsTestCase(support.TempdirManager, unittest.TestCase):
def test_default_settings(self):
--- 10,16 ----
! class InstallScriptsTestCase(support.TempdirManager,
! support.LoggingSilencer,
! unittest.TestCase):
def test_default_settings(self):
More information about the Python-checkins
mailing list