mirror of
https://github.com/python/cpython.git
synced 2025-11-13 07:26:31 +00:00
Silence deprecation warning in test___all__ caused by an import bsddb.
This commit is contained in:
parent
c4afe2950a
commit
0b41707dde
1 changed files with 2 additions and 2 deletions
|
|
@ -7,8 +7,8 @@ import sys
|
||||||
|
|
||||||
# Setup bsddb warnings
|
# Setup bsddb warnings
|
||||||
try:
|
try:
|
||||||
import bsddb
|
bsddb = support.import_module('bsddb', deprecated=True)
|
||||||
except ImportError:
|
except unittest.SkipTest:
|
||||||
pass
|
pass
|
||||||
|
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue