summaryrefslogtreecommitdiffstats
path: root/Lib/test/test_bsddb.py
diff options
context:
space:
mode:
authorEzio Melotti <ezio.melotti@gmail.com>2010-01-30 07:22:54 (GMT)
committerEzio Melotti <ezio.melotti@gmail.com>2010-01-30 07:22:54 (GMT)
commita2d465374099c582ef9bc042c2fe1be4776ee641 (patch)
treef1740160c63e081382daea49b1dee4a1eb9b8433 /Lib/test/test_bsddb.py
parent75d3fb1ebb13b143b2840b761b736237bf48f714 (diff)
downloadcpython-a2d465374099c582ef9bc042c2fe1be4776ee641.zip
cpython-a2d465374099c582ef9bc042c2fe1be4776ee641.tar.gz
cpython-a2d465374099c582ef9bc042c2fe1be4776ee641.tar.bz2
#7092: silence py3k warnings for deprecated modules
Diffstat (limited to 'Lib/test/test_bsddb.py')
-rwxr-xr-xLib/test/test_bsddb.py5
1 files changed, 3 insertions, 2 deletions
diff --git a/Lib/test/test_bsddb.py b/Lib/test/test_bsddb.py
index 5dda50c..a5fa494 100755
--- a/Lib/test/test_bsddb.py
+++ b/Lib/test/test_bsddb.py
@@ -10,8 +10,9 @@ from test import test_support
# Skip test if _bsddb wasn't built.
test_support.import_module('_bsddb')
-import bsddb
-import dbhash # Just so we know it's imported
+bsddb = test_support.import_module('bsddb', deprecated=True)
+# Just so we know it's imported:
+test_support.import_module('dbhash', deprecated=True)
class TestBSDDB(unittest.TestCase):