mirror of
https://github.com/python/cpython.git
synced 2026-01-24 16:18:45 +00:00
stop CObject deprecation warnings in test___all__
This commit is contained in:
parent
674a9eb6e3
commit
0ccc7bbb34
2 changed files with 3 additions and 0 deletions
|
|
@ -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':
|
||||
|
|
|
|||
|
|
@ -1,5 +1,6 @@
|
|||
from __future__ import print_function
|
||||
|
||||
import bsddb
|
||||
import unittest
|
||||
from test import test_support as support
|
||||
import os
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue