[Checkins] SVN: Acquisition/trunk/src/Acquisition/tests.py Track down the cause of the segfault and extract the statement causing it into its own test
Hanno Schlichting
hannosch at hannosch.eu
Sat Jun 11 10:56:14 EDT 2011
Log message for revision 121910:
Track down the cause of the segfault and extract the statement causing it into its own test
Changed:
U Acquisition/trunk/src/Acquisition/tests.py
-=-
Modified: Acquisition/trunk/src/Acquisition/tests.py
===================================================================
--- Acquisition/trunk/src/Acquisition/tests.py 2011-06-11 14:35:13 UTC (rev 121909)
+++ Acquisition/trunk/src/Acquisition/tests.py 2011-06-11 14:56:14 UTC (rev 121910)
@@ -1133,9 +1133,6 @@
>>> a.b.c.aq_acquire('z')
3
- >>> a.b.c.aq_acquire('z', explicit=False)
- 3
-
>>> a.b.c.aq_acquire('id')
'c'
@@ -2466,7 +2463,20 @@
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):
def test_implicit_aq_unicode_should_be_called(self):
More information about the checkins
mailing list