Commit a03a08f5 authored by Hanno Schlichting's avatar Hanno Schlichting

Give up on protecting against segfaults in aq_* functions, when we encounter...

Give up on protecting against segfaults in aq_* functions, when we encounter __parent__ circles with more than one intermediate object.
parent 5a6a6f4f
......@@ -2471,13 +2471,9 @@ class TestParent(unittest.TestCase):
self.assertEqual(Acquisition.aq_acquire(b, 'only'), 'here')
self.assertEqual(Acquisition.aq_acquire(c, 'only'), 'here')
# XXX: disabled
# self.assertRaises(AttributeError, Acquisition.aq_acquire,
# a, 'non_existant_attr')
# self.assertRaises(AttributeError, Acquisition.aq_acquire,
# b, 'non_existant_attr')
# self.assertRaises(AttributeError, Acquisition.aq_acquire,
# c, 'non_existant_attr')
self.assertRaises(AttributeError, getattr, a, 'non_existant_attr')
self.assertRaises(AttributeError, getattr, b, 'non_existant_attr')
self.assertRaises(AttributeError, getattr, c, 'non_existant_attr')
class TestAcquire(unittest.TestCase):
......
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