Commit 1ca928e7 authored by Jim Fulton's avatar Jim Fulton

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.
parent 58995f9c
......@@ -195,6 +195,11 @@ class TestSessionManager(TestBase):
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 @@ class TestSessionManager(TestBase):
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]
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment