Kaydet (Commit) f747aa43 authored tarafından Ezio Melotti's avatar Ezio Melotti

Merged revisions 70531 via svnmerge from

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
........
üst ae5657e1
...@@ -107,7 +107,7 @@ class cPickleDeepRecursive(unittest.TestCase): ...@@ -107,7 +107,7 @@ class cPickleDeepRecursive(unittest.TestCase):
for n in nodes: for n in nodes:
n.connections = list(nodes) n.connections = list(nodes)
n.connections.remove(n) n.connections.remove(n)
self.assertRaises(RuntimeError, cPickle.dumps, n) self.assertRaises((AttributeError, RuntimeError), cPickle.dumps, n)
def test_issue3179(self): def test_issue3179(self):
# Safe test, because I broke this case when fixing the # 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