]> granicus.if.org Git - python/commitdiff
Merged revisions 70531 via svnmerge from
authorEzio Melotti <ezio.melotti@gmail.com>
Fri, 18 Dec 2009 20:23:24 +0000 (20:23 +0000)
committerEzio Melotti <ezio.melotti@gmail.com>
Fri, 18 Dec 2009 20:23:24 +0000 (20:23 +0000)
svn+ssh://pythondev@svn.python.org/python/trunk

........
  r70531 | benjamin.peterson | 2009-03-23 00:24:58 +0200 (Mon, 23 Mar 2009) | 1 line

  AttributeError can be thrown during recursion errors
........

Lib/test/test_cpickle.py

index c874481cdd6ca5794010d3970c8226b82409d3c4..c63ca3e0f6849ae158f5453addb83d342d37c9fd 100644 (file)
@@ -107,7 +107,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