[Zope-Checkins] CVS: Zope/lib/python/Products/Sessions/tests - testSessionDataManager.py:1.17

Jim Fulton cvs-admin at zope.org
Fri Nov 28 11:46:22 EST 2003


Update of /cvs-repository/Zope/lib/python/Products/Sessions/tests
In directory cvs.zope.org:/tmp/cvs-serv5348/lib/python/Products/Sessions/tests

Modified Files:
	testSessionDataManager.py 
Log Message:
Has to change a test to stip the acquisition wrapper from a value to
prevent errors pickling acquisition wrappers from hiding the error the
test was looking for.


=== Zope/lib/python/Products/Sessions/tests/testSessionDataManager.py 1.16 => 1.17 ===
--- 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	Fri Nov 28 11:46:22 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