[Zope-Checkins] CVS: Zope/lib/python/Products/Sessions/tests -
testSessionDataManager.py:1.16.18.1
Jim Fulton
cvs-admin at zope.org
Thu Nov 27 10:34:26 EST 2003
Update of /cvs-repository/Zope/lib/python/Products/Sessions/tests
In directory cvs.zope.org:/tmp/cvs-serv7869/lib/python/Products/Sessions/tests
Modified Files:
Tag: Zope-2_8-devel-branch
testSessionDataManager.py
Log Message:
Got tests to pass except test that was previously (and still) failing
on head.
=== Zope/lib/python/Products/Sessions/tests/testSessionDataManager.py 1.16 => 1.16.18.1 ===
--- Zope/lib/python/Products/Sessions/tests/testSessionDataManager.py:1.16 Sat Aug 2 15:20:11 2003
+++ Zope/lib/python/Products/Sessions/tests/testSessionDataManager.py Thu Nov 27 10:33:55 2003
@@ -195,6 +195,11 @@
def _foreignAdd(self):
ob = self.app.session_data_manager
+
+ # we don't want to fail due to an acquisition wrapper
+ ob = ob.aq_base
+
+ # we want to fail for some other reason:
sd = self.app.session_data_manager.getSessionData()
sd.set('foo', ob)
get_transaction().commit()
@@ -205,7 +210,7 @@
aq_wrapped = a.__of__(b)
sd = self.app.session_data_manager.getSessionData()
sd.set('foo', aq_wrapped)
- self.assertRaises(UnpickleableError, get_transaction().commit)
+ self.assertRaises(TypeError, get_transaction().commit)
def testAutoReqPopulate(self):
self.app.REQUEST['PARENTS'] = [self.app]
More information about the Zope-Checkins
mailing list