From 9b5f333039f8d09a2e7cf6e41a3f1c75d595c28b Mon Sep 17 00:00:00 2001 From: agnewee Date: Tue, 5 Dec 2017 23:43:23 +0800 Subject: [PATCH] modify dict test case --- tests/test_dict.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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()