Skip to content

Commit

Permalink
Track down the cause of the segfault and extract the statement causin…
Browse files Browse the repository at this point in the history
…g it into its own test
  • Loading branch information
hannosch committed Jun 11, 2011
1 parent 22b67c9 commit c9e5bea
Showing 1 changed file with 13 additions and 3 deletions.
16 changes: 13 additions & 3 deletions src/Acquisition/tests.py
Expand Up @@ -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'
Expand Down Expand Up @@ -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):

Expand Down

0 comments on commit c9e5bea

Please sign in to comment.