[Zope3-checkins] SVN: Zope3/trunk/src/zope/app/session/ If Session is a new-style class and has a __slots__ attribute, then

Stuart Bishop stuart at stuartbishop.net
Thu Jul 15 07:59:17 EDT 2004


Log message for revision 26552:
  If Session is a new-style class and has a __slots__ attribute, then
  the functional test fails. I have no idea why.
  


Changed:
  U   Zope3/trunk/src/zope/app/session/ftests.py
  U   Zope3/trunk/src/zope/app/session/session.py


-=-
Modified: Zope3/trunk/src/zope/app/session/ftests.py
===================================================================
--- Zope3/trunk/src/zope/app/session/ftests.py	2004-07-15 07:06:37 UTC (rev 26551)
+++ Zope3/trunk/src/zope/app/session/ftests.py	2004-07-15 11:59:17 UTC (rev 26552)
@@ -52,8 +52,7 @@
         self.failUnlessEqual(response.getStatus(), 200)
         return response.getBody().strip()
 
-    # XXX: Test does not work! Needs fix!
-    def XXX_test(self):
+    def test(self):
         response1 = self.fetch()
         self.failUnlessEqual(response1, u'1')
         response2 = self.fetch()

Modified: Zope3/trunk/src/zope/app/session/session.py
===================================================================
--- Zope3/trunk/src/zope/app/session/session.py	2004-07-15 07:06:37 UTC (rev 26551)
+++ Zope3/trunk/src/zope/app/session/session.py	2004-07-15 11:59:17 UTC (rev 26552)
@@ -263,7 +263,6 @@
 class Session(object):
     """See zope.app.session.interfaces.ISession"""
     implements(ISession)
-    __slots__ = ('browser_id', 'client_id')
     def __init__(self, request):
         self.client_id = str(IClientId(request))
 



More information about the Zope3-Checkins mailing list