mirror of
https://github.com/python/cpython.git
synced 2025-08-04 08:59:19 +00:00
AttributeError can be thrown during recursion errors
This commit is contained in:
parent
2020a59563
commit
704dc269e3
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue