From 0b41707dde35b1357427a8109fba10f9e92139b6 Mon Sep 17 00:00:00 2001 From: Ezio Melotti Date: Mon, 7 Jun 2010 22:00:18 +0000 Subject: Silence deprecation warning in test___all__ caused by an import bsddb. --- Lib/test/test___all__.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Lib/test/test___all__.py b/Lib/test/test___all__.py index f4a813a..2c5dbef 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 -- cgit v0.12