diff --git a/tests/test_dict.py b/tests/test_dict.py index b48209a..1647c7f 100644 --- a/tests/test_dict.py +++ b/tests/test_dict.py @@ -25,7 +25,9 @@ class TestAttrDict(object): d = AttrDict(key=1) del d.key with pytest.raises(AttributeError): - d.key + print(d.key) + with pytest.raises(KeyError): + del d.key def test_repr(self): d = AttrDict()