From: Ezio Melotti Date: Mon, 7 Jun 2010 22:00:18 +0000 (+0000) Subject: Silence deprecation warning in test___all__ caused by an import bsddb. X-Git-Tag: v2.7rc2~54 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=0b41707dde35b1357427a8109fba10f9e92139b6;p=python Silence deprecation warning in test___all__ caused by an import bsddb. --- diff --git a/Lib/test/test___all__.py b/Lib/test/test___all__.py index f4a813aa66..2c5dbefb3a 100644 --- a/Lib/test/test___all__.py +++ b/Lib/test/test___all__.py @@ -7,8 +7,8 @@ import sys # Setup bsddb warnings try: - import bsddb -except ImportError: + bsddb = support.import_module('bsddb', deprecated=True) +except unittest.SkipTest: pass