diff options
Diffstat (limited to 'Lib/test')
-rw-r--r-- | Lib/test/test_dbm.py | 3 |
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()), []) |