summaryrefslogtreecommitdiff
path: root/Lib/test/test_shelve.py
diff options
context:
space:
mode:
authorWalter Dörwald <walter@livinglogic.de>2004-05-31 16:29:04 +0000
committerWalter Dörwald <walter@livinglogic.de>2004-05-31 16:29:04 +0000
commit0a6d0ff8d9ad27d66eb8195b9366e5b49dbb69b6 (patch)
treeac27098581c6e50a7776b6853950670aaa48473f /Lib/test/test_shelve.py
parentcbd0b365c1f27d390827e74a88a96f3a13034e0e (diff)
downloadcpython-git-0a6d0ff8d9ad27d66eb8195b9366e5b49dbb69b6.tar.gz
Port the dictionary tests from test_types.py to unittest. Collect as much
mapping tests as possible in mapping_test.py and reuse the tests in test_dict.py, test_userdict.py, test_weakref.py, test_os.py and test_shelve.py. From SF patch #736962.
Diffstat (limited to 'Lib/test/test_shelve.py')
-rw-r--r--Lib/test/test_shelve.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/Lib/test/test_shelve.py b/Lib/test/test_shelve.py
index f852be5663..fda02daca6 100644
--- a/Lib/test/test_shelve.py
+++ b/Lib/test/test_shelve.py
@@ -74,14 +74,14 @@ class TestCase(unittest.TestCase):
self.assertEqual(len(d2), 1)
-from test_userdict import TestMappingProtocol
+from test import mapping_tests
-class TestShelveBase(TestMappingProtocol):
+class TestShelveBase(mapping_tests.BasicTestMappingProtocol):
fn = "shelftemp.db"
counter = 0
def __init__(self, *args, **kw):
self._db = []
- TestMappingProtocol.__init__(self, *args, **kw)
+ mapping_tests.BasicTestMappingProtocol.__init__(self, *args, **kw)
_tested_class = shelve.Shelf
def _reference(self):
return {"key1":"value1", "key2":2, "key3":(1,2,3)}