summaryrefslogtreecommitdiffstats
path: root/Lib/test/test_shelve.py
diff options
context:
space:
mode:
authorGregory P. Smith <greg@mad-scientist.com>2007-08-24 21:59:45 (GMT)
committerGregory P. Smith <greg@mad-scientist.com>2007-08-24 21:59:45 (GMT)
commit178fefb9b5de5aa7db33e691ce2760c54097718b (patch)
tree99e249eba9f1691cf92e13e63879f0e993f075f1 /Lib/test/test_shelve.py
parent41cfce9c2bcfe6153ee2b42e05ff1d782d1d3b91 (diff)
downloadcpython-178fefb9b5de5aa7db33e691ce2760c54097718b.zip
cpython-178fefb9b5de5aa7db33e691ce2760c54097718b.tar.gz
cpython-178fefb9b5de5aa7db33e691ce2760c54097718b.tar.bz2
applies the better dbm and shelve related unittests. bug 1007 from larryhastings
Diffstat (limited to 'Lib/test/test_shelve.py')
-rw-r--r--Lib/test/test_shelve.py20
1 files changed, 11 insertions, 9 deletions
diff --git a/Lib/test/test_shelve.py b/Lib/test/test_shelve.py
index 543afb1..f8fcda9 100644
--- a/Lib/test/test_shelve.py
+++ b/Lib/test/test_shelve.py
@@ -3,6 +3,7 @@ import shelve
import glob
from test import test_support
from UserDict import DictMixin
+from test.test_anydbm import dbm_iterator
def L1(s):
return s.decode("latin-1")
@@ -148,15 +149,16 @@ class TestProto2MemShelve(TestShelveBase):
_in_mem = True
def test_main():
- test_support.run_unittest(
- TestAsciiFileShelve,
- TestBinaryFileShelve,
- TestProto2FileShelve,
- TestAsciiMemShelve,
- TestBinaryMemShelve,
- TestProto2MemShelve,
- TestCase
- )
+ for module in dbm_iterator():
+ test_support.run_unittest(
+ TestAsciiFileShelve,
+ TestBinaryFileShelve,
+ TestProto2FileShelve,
+ TestAsciiMemShelve,
+ TestBinaryMemShelve,
+ TestProto2MemShelve,
+ TestCase
+ )
if __name__ == "__main__":
test_main()