#7092: silence py3k warnings for deprecated modules
diff --git a/Lib/test/test_shelve.py b/Lib/test/test_shelve.py
index ffcc98d..3b20281 100644
--- a/Lib/test/test_shelve.py
+++ b/Lib/test/test_shelve.py
@@ -4,6 +4,8 @@
 import glob
 from test import test_support
 
+test_support.import_module('anydbm', deprecated=True)
+
 class TestCase(unittest.TestCase):
 
     fn = "shelftemp" + os.extsep + "db"