Commit c9e5bead authored by Hanno Schlichting's avatar Hanno Schlichting

Track down the cause of the segfault and extract the statement causing it into its own test

parent 22b67c91
......@@ -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 TestParent(unittest.TestCase):
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):
......
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