summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBenjamin Peterson <benjamin@python.org>2009-03-22 22:24:58 (GMT)
committerBenjamin Peterson <benjamin@python.org>2009-03-22 22:24:58 (GMT)
commit704dc269e32179627b9b76e85aebc1dd1e572990 (patch)
tree06b146303c0c94cafa14acd01a04ee62b019ec1b
parent2020a59563caeda95023307a4c830fe03c338990 (diff)
downloadcpython-704dc269e32179627b9b76e85aebc1dd1e572990.zip
cpython-704dc269e32179627b9b76e85aebc1dd1e572990.tar.gz
cpython-704dc269e32179627b9b76e85aebc1dd1e572990.tar.bz2
AttributeError can be thrown during recursion errors
-rw-r--r--Lib/test/test_cpickle.py2
1 files changed, 1 insertions, 1 deletions
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