Skip to content

Commit 32a33a9

Browse files
committed
Silence deprecation warning in test___all__ caused by an import bsddb.
1 parent 0d1334e commit 32a33a9

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

Lib/test/test___all__.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,8 @@
77

88
# Setup bsddb warnings
99
try:
10-
import bsddb
11-
except ImportError:
10+
bsddb = support.import_module('bsddb', deprecated=True)
11+
except unittest.SkipTest:
1212
pass
1313

1414

0 commit comments

Comments
 (0)