commit | 704dc269e32179627b9b76e85aebc1dd1e572990 | [log] [tgz] |
---|---|---|
author | Benjamin Peterson <benjamin@python.org> | Sun Mar 22 22:24:58 2009 +0000 |
committer | Benjamin Peterson <benjamin@python.org> | Sun Mar 22 22:24:58 2009 +0000 |
tree | 06b146303c0c94cafa14acd01a04ee62b019ec1b | |
parent | 2020a59563caeda95023307a4c830fe03c338990 [diff] [blame] |
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