From: Benjamin Peterson Date: Sun, 22 Mar 2009 22:24:58 +0000 (+0000) Subject: AttributeError can be thrown during recursion errors X-Git-Tag: v2.7a1~1823 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=704dc269e32179627b9b76e85aebc1dd1e572990;p=thirdparty%2FPython%2Fcpython.git AttributeError can be thrown during recursion errors --- diff --git a/Lib/test/test_cpickle.py b/Lib/test/test_cpickle.py index 0b02b6247340..88057c70bd39 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