From c9e5beade43edaf97232b431eced3584767d2e86 Mon Sep 17 00:00:00 2001 From: Hanno Schlichting Date: Sat, 11 Jun 2011 14:56:14 +0000 Subject: [PATCH] Track down the cause of the segfault and extract the statement causing it into its own test --- src/Acquisition/tests.py | 16 +++++++++++++--- 1 file changed, 13 insertions(+), 3 deletions(-) diff --git a/src/Acquisition/tests.py b/src/Acquisition/tests.py index 52166ad..6674736 100644 --- a/src/Acquisition/tests.py +++ b/src/Acquisition/tests.py @@ -1133,9 +1133,6 @@ def test_mixed_explicit_and_explicit(): >>> a.b.c.aq_acquire('z') 3 - >>> a.b.c.aq_acquire('z', explicit=False) - 3 - >>> a.b.c.aq_acquire('id') 'c' @@ -2466,6 +2463,19 @@ class Impl3(Acquisition.Implicit): self.assertRaises(AttributeError, Acquisition.aq_acquire, c, 'non_existant_attr') + def test_explicit_false(self): + class Impl(Acquisition.Implicit): + pass + class Expl(Acquisition.Explicit): + pass + + a = Impl('a') + a.y = 42 + a.b = Expl('b') + a.b.z = 3 + a.b.c = Impl('c') + value = a.b.c.aq_acquire('z', explicit=False) + class TestUnicode(unittest.TestCase):