[h5py] 379/455: Add exception entry (raise KeyError when deleting missing group member)
Ghislain Vaillant
ghisvail-guest at moszumanska.debian.org
Thu Jul 2 18:19:52 UTC 2015
This is an automated email from the git hooks/post-receive script.
ghisvail-guest pushed a commit to annotated tag 1.3.0
in repository h5py.
commit e130479958f72375c17cc6397273ffe98a4b0905
Author: andrewcollette <andrew.collette at gmail.com>
Date: Sat Jan 30 07:49:12 2010 +0000
Add exception entry (raise KeyError when deleting missing group member)
---
h5py/h5e.pyx | 4 +++-
h5py/tests/high/test_group.py | 1 -
2 files changed, 3 insertions(+), 2 deletions(-)
diff --git a/h5py/h5e.pyx b/h5py/h5e.pyx
index c67c4de..a83e601 100644
--- a/h5py/h5e.pyx
+++ b/h5py/h5e.pyx
@@ -232,7 +232,9 @@ cdef dict _minor_table = {
H5E_EXISTS: ValueError, # Object already exists
H5E_ALREADYEXISTS: ValueError, # Object already exists, part II
- H5E_CANTCONVERT: TypeError # Can't convert datatypes
+ H5E_CANTCONVERT: TypeError, # Can't convert datatypes
+
+ H5E_CANTDELETE: KeyError, # Can't delete message
}
# "Fudge" table to accomodate annoying inconsistencies in HDF5's use
diff --git a/h5py/tests/high/test_group.py b/h5py/tests/high/test_group.py
index 3a85368..3c79e06 100644
--- a/h5py/tests/high/test_group.py
+++ b/h5py/tests/high/test_group.py
@@ -57,7 +57,6 @@ class TestDel(GroupBase):
del self.f['new']
self.assert_('new' not in self.f)
- @tests.fixme("KeyError on 1.6, SymbolError on 1.8")
def test_del_exc(self):
""" (Group) del raises KeyError for missing item """
self.assertRaises(KeyError, self.f.__delitem__, 'new')
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/debian-science/packages/h5py.git
More information about the debian-science-commits
mailing list