[Python-checkins] r70531 - python/trunk/Lib/test/test_cpickle.py
benjamin.peterson
python-checkins at python.org
Sun Mar 22 23:24:59 CET 2009
Author: benjamin.peterson
Date: Sun Mar 22 23:24:58 2009
New Revision: 70531
Log:
AttributeError can be thrown during recursion errors
Modified:
python/trunk/Lib/test/test_cpickle.py
Modified: python/trunk/Lib/test/test_cpickle.py
==============================================================================
--- python/trunk/Lib/test/test_cpickle.py (original)
+++ python/trunk/Lib/test/test_cpickle.py Sun Mar 22 23:24:58 2009
@@ -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
More information about the Python-checkins
mailing list