Commit 704dc269 authored by Benjamin Peterson's avatar Benjamin Peterson

AttributeError can be thrown during recursion errors

parent 2020a595
......@@ -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
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment