[Zope3-checkins]
SVN: Zope3/branches/mgedmin-security/src/zope/app/tests/functional.py
Added a missing endInteraction to functional tests.
Marius Gedminas
marius at pov.lt
Thu May 13 06:39:38 EDT 2004
Log message for revision 24619:
Added a missing endInteraction to functional tests.
-=-
Modified: Zope3/branches/mgedmin-security/src/zope/app/tests/functional.py
===================================================================
--- Zope3/branches/mgedmin-security/src/zope/app/tests/functional.py 2004-05-13 09:41:05 UTC (rev 24618)
+++ Zope3/branches/mgedmin-security/src/zope/app/tests/functional.py 2004-05-13 10:39:38 UTC (rev 24619)
@@ -31,6 +31,7 @@
from zope.publisher.http import HTTPRequest
from zope.publisher.publish import publish
from zope.exceptions import Forbidden, Unauthorized
+from zope.security.management import endInteraction
from zope.app import Application
from zope.app.publication.zopepublication import ZopePublication
@@ -263,6 +264,9 @@
# __del__ methods happen if request.close() is not called here
if request:
request.close()
+ # Make sure the interaction is ended
+ try: endInteraction()
+ except: pass
if errors:
self.fail("%s contains broken links:\n" % path
+ "\n".join([" %s:\t%s" % (a, e) for a, e in errors]))
More information about the Zope3-Checkins
mailing list