Dear Maintainer,

please find attached a patch to make tests able to pass.

Kind Regards
Index: beanbag-1.9.2/tests/test_attrdict.py
===================================================================
--- beanbag-1.9.2.orig/tests/test_attrdict.py
+++ beanbag-1.9.2/tests/test_attrdict.py
@@ -16,7 +16,8 @@ def test_manipulation():
     ad.foo.baz = "yaarrrr"
 
     assert +ad.foo == {"bar": "hello, world", "baz": "yaarrrr"}
-    py.test.raises(KeyError, "str(ad.c.x.y.z)")
+    with py.test.raises(KeyError):
+        str(ad.c.x.y.z)
 
     ad.c.x.y.z = 3
     assert ad.c.x.y.z == 3
@@ -28,6 +29,7 @@ def test_manipulation():
     del ad.c.x
     assert +ad == {"a": 1, "b": "blat", "c": {"d": "e"}}
 
-    py.test.raises(KeyError, "del ad.bar.baz")
+    with py.test.raises(KeyError):
+        del ad.bar.baz
 
     assert +ad is j

Reply via email to