catch AttributeError

This commit is contained in:
agnewee 2017-12-06 00:07:51 +08:00
parent 074042a67f
commit 49e9f345f9
1 changed files with 1 additions and 1 deletions

View File

@ -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):