summaryrefslogtreecommitdiffstats
path: root/Lib/test/test_dbm.py
diff options
context:
space:
mode:
authorAmaury Forgeot d'Arc <amauryfa@gmail.com>2008-09-25 22:27:43 (GMT)
committerAmaury Forgeot d'Arc <amauryfa@gmail.com>2008-09-25 22:27:43 (GMT)
commitb5cf301b8e7e23ed5fddc369d24c856e48e9b27b (patch)
treec9a7a91316d8e4a575ac8f380461954d9925b1dc /Lib/test/test_dbm.py
parent7de5f2997266befa489af273f35703f3828dca24 (diff)
downloadcpython-b5cf301b8e7e23ed5fddc369d24c856e48e9b27b.zip
cpython-b5cf301b8e7e23ed5fddc369d24c856e48e9b27b.tar.gz
cpython-b5cf301b8e7e23ed5fddc369d24c856e48e9b27b.tar.bz2
#3929: dbm.open() would try to raise a tuple. This does not work anymore with python 3.0.
Reviewed by Georg Brandl.
Diffstat (limited to 'Lib/test/test_dbm.py')
-rw-r--r--Lib/test/test_dbm.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/Lib/test/test_dbm.py b/Lib/test/test_dbm.py
index 41c37cb..ee82dd2 100644
--- a/Lib/test/test_dbm.py
+++ b/Lib/test/test_dbm.py
@@ -57,6 +57,9 @@ class AnyDBMTestCase(unittest.TestCase):
def test_error(self):
self.assert_(issubclass(self.module.error, IOError))
+ def test_anydbm_not_existing(self):
+ self.assertRaises(dbm.error, dbm.open, _fname)
+
def test_anydbm_creation(self):
f = dbm.open(_fname, 'c')
self.assertEqual(list(f.keys()), [])