[Python-checkins] r79706 - in python/trunk/Lib: bsddb/__init__.py test/test___all__.py

benjamin.peterson python-checkins at python.org
Sat Apr 3 18:06:42 CEST 2010


Author: benjamin.peterson
Date: Sat Apr  3 18:06:42 2010
New Revision: 79706

Log:
stop CObject deprecation warnings in test___all__

Modified:
   python/trunk/Lib/bsddb/__init__.py
   python/trunk/Lib/test/test___all__.py

Modified: python/trunk/Lib/bsddb/__init__.py
==============================================================================
--- python/trunk/Lib/bsddb/__init__.py	(original)
+++ python/trunk/Lib/bsddb/__init__.py	Sat Apr  3 18:06:42 2010
@@ -48,6 +48,8 @@
         warnings.warnpy3k("in 3.x, the bsddb module has been removed; "
                           "please use the pybsddb project instead",
                           DeprecationWarning, 2)
+    warnings.filterwarnings("ignore", ".*CObject.*", DeprecationWarning,
+                            "bsddb.__init__")
 
 try:
     if __name__ == 'bsddb3':

Modified: python/trunk/Lib/test/test___all__.py
==============================================================================
--- python/trunk/Lib/test/test___all__.py	(original)
+++ python/trunk/Lib/test/test___all__.py	Sat Apr  3 18:06:42 2010
@@ -1,5 +1,6 @@
 from __future__ import print_function
 
+import bsddb
 import unittest
 from test import test_support as support
 import os


More information about the Python-checkins mailing list