From 704dc269e32179627b9b76e85aebc1dd1e572990 Mon Sep 17 00:00:00 2001 From: Benjamin Peterson Date: Sun, 22 Mar 2009 22:24:58 +0000 Subject: AttributeError can be thrown during recursion errors --- Lib/test/test_cpickle.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Lib/test/test_cpickle.py b/Lib/test/test_cpickle.py index 0b02b62..88057c7 100644 --- a/Lib/test/test_cpickle.py +++ b/Lib/test/test_cpickle.py @@ -102,7 +102,7 @@ class cPickleDeepRecursive(unittest.TestCase): for n in nodes: n.connections = list(nodes) n.connections.remove(n) - self.assertRaises(RuntimeError, cPickle.dumps, n) + self.assertRaises((AttributeError, RuntimeError), cPickle.dumps, n) def test_issue3179(self): # Safe test, because I broke this case when fixing the -- cgit v0.12