Skip to content

Commit 6cbb94c

Browse files
committed
add unit test
1 parent f3c52dc commit 6cbb94c

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

zarr/tests/test_hierarchy.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -492,6 +492,8 @@ def test_getattr(self):
492492
# test
493493
eq(g1['foo'], g1.foo)
494494
eq(g2['bar'], g2.bar)
495+
# test that hasattr returns False instead of an exception (issue #88)
496+
eq(hasattr(g1, '__unexistingattribute__'), False)
495497

496498
def test_group_repr(self):
497499
g = self.create_group()

0 commit comments

Comments
 (0)