mirror of
https://github.com/python/cpython.git
synced 2025-08-03 08:34:29 +00:00
#3929: dbm.open() would try to raise a tuple. This does not work anymore with python 3.0.
Reviewed by Georg Brandl.
This commit is contained in:
parent
7de5f29972
commit
b5cf301b8e
3 changed files with 11 additions and 4 deletions
|
@ -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()), [])
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue