[Buildbot-commits] buildbot/buildbot/test test_config.py, 1.51, 1.52

Brian Warner warner at users.sourceforge.net
Thu Mar 20 18:04:46 UTC 2008


Update of /cvsroot/buildbot/buildbot/buildbot/test
In directory sc8-pr-cvs3.sourceforge.net:/tmp/cvs-serv6729/buildbot/test

Modified Files:
	test_config.py 
Log Message:
[project @ hide-deprecations.patch]
 * Hide deprecation warnings in test_config; these occur because the module
   is intentionally testing deprecated (but still expected) behavior.

Original author: dustin at zmanda.com
Date: 2008-01-25 20:05:18+00:00

Index: test_config.py
===================================================================
RCS file: /cvsroot/buildbot/buildbot/buildbot/test/test_config.py,v
retrieving revision 1.51
retrieving revision 1.52
diff -u -d -r1.51 -r1.52
--- test_config.py	7 Aug 2007 19:21:40 -0000	1.51
+++ test_config.py	20 Mar 2008 18:04:44 -0000	1.52
@@ -1,6 +1,6 @@
 # -*- test-case-name: buildbot.test.test_config -*-
 
-import os
+import os, warnings, exceptions
 
 from twisted.trial import unittest
 from twisted.python import failure
@@ -373,6 +373,9 @@
 
 class ConfigTest(unittest.TestCase):
     def setUp(self):
+        # this class generates several deprecation warnings, which the user
+        # doesn't need to see.
+        warnings.simplefilter('ignore', exceptions.DeprecationWarning)
         self.buildmaster = BuildMaster(".")
         
     def failUnlessListsEquivalent(self, list1, list2):





More information about the Commits mailing list