mirror of https://github.com/flaggo/pydu.git
catch AttributeError
This commit is contained in:
parent
074042a67f
commit
49e9f345f9
|
@ -26,7 +26,7 @@ class TestAttrDict(object):
|
|||
del d.key
|
||||
with pytest.raises(AttributeError):
|
||||
print(d.key)
|
||||
with pytest.raises(KeyError):
|
||||
with pytest.raises(AttributeError):
|
||||
del d.key
|
||||
|
||||
def test_repr(self):
|
||||
|
|
Loading…
Reference in New Issue