AttributeError can be thrown during recursion errors
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 @@
         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