Skip to content

Commit

Permalink
Give up on protecting against segfaults in aq_* functions, when we en…
Browse files Browse the repository at this point in the history
…counter __parent__ circles with more than one intermediate object.
  • Loading branch information
hannosch committed Dec 13, 2011
1 parent 5a6a6f4 commit a03a08f
Showing 1 changed file with 3 additions and 7 deletions.
10 changes: 3 additions & 7 deletions src/Acquisition/tests.py
Expand Up @@ -2471,13 +2471,9 @@ class Impl3(Acquisition.Implicit):
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):
Expand Down

0 comments on commit a03a08f

Please sign in to comment.