stop CObject deprecation warnings in test___all__

This commit is contained in:
Benjamin Peterson 2010-04-03 16:06:42 +00:00
parent 674a9eb6e3
commit 0ccc7bbb34
2 changed files with 3 additions and 0 deletions

View 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; " warnings.warnpy3k("in 3.x, the bsddb module has been removed; "
"please use the pybsddb project instead", "please use the pybsddb project instead",
DeprecationWarning, 2) DeprecationWarning, 2)
warnings.filterwarnings("ignore", ".*CObject.*", DeprecationWarning,
"bsddb.__init__")
try: try:
if __name__ == 'bsddb3': if __name__ == 'bsddb3':

View File

@ -1,5 +1,6 @@
from __future__ import print_function from __future__ import print_function
import bsddb
import unittest import unittest
from test import test_support as support from test import test_support as support
import os import os