]> granicus.if.org Git - python/commitdiff
stop CObject deprecation warnings in test___all__
authorBenjamin Peterson <benjamin@python.org>
Sat, 3 Apr 2010 16:06:42 +0000 (16:06 +0000)
committerBenjamin Peterson <benjamin@python.org>
Sat, 3 Apr 2010 16:06:42 +0000 (16:06 +0000)
Lib/bsddb/__init__.py
Lib/test/test___all__.py

index fa44900a30d9a0a211d9c7fb378fb25050a16b2b..ed4deeaeb8c91717c4369931c26e40be67e37ff9 100644 (file)
@@ -48,6 +48,8 @@ if (sys.version_info >= (2, 6)) and (sys.version_info < (3, 0)) :
         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':
index 596ad7964063b5718addf82f2cab7bbc34a11c44..803609a8eb9b4739acac63c23c8d9592c0fcda69 100644 (file)
@@ -1,5 +1,6 @@
 from __future__ import print_function
 
+import bsddb
 import unittest
 from test import test_support as support
 import os