[Zope3-checkins] SVN: Zope3/trunk/src/zope/app/apidoc/ Make sure
tests clean up after themselves, so they can be run several
Stephan Richter
srichter at cosmos.phy.tufts.edu
Fri Jul 2 20:40:45 EDT 2004
Log message for revision 26087:
Make sure tests clean up after themselves, so they can be run several
times.
-=-
Modified: Zope3/trunk/src/zope/app/apidoc/classmodule/__init__.py
===================================================================
--- Zope3/trunk/src/zope/app/apidoc/classmodule/__init__.py 2004-07-02 23:49:32 UTC (rev 26086)
+++ Zope3/trunk/src/zope/app/apidoc/classmodule/__init__.py 2004-07-03 00:40:45 UTC (rev 26087)
@@ -681,6 +681,10 @@
Now clean up the temporary module, just to play nice:
>>> os.unlink(filename)
+
+ Cleanup
+
+ >>> del sys.modules['shelve']
"""
module = sys.modules.get(path, default)
if module is default:
Modified: Zope3/trunk/src/zope/app/apidoc/ifacemodule/browser.py
===================================================================
--- Zope3/trunk/src/zope/app/apidoc/ifacemodule/browser.py 2004-07-02 23:49:32 UTC (rev 26086)
+++ Zope3/trunk/src/zope/app/apidoc/ifacemodule/browser.py 2004-07-03 00:40:45 UTC (rev 26087)
@@ -234,6 +234,10 @@
>>> pprint(type)
[('name', 'IType'),
('path', 'zope.app.apidoc.ifacemodule.browser.IType')]
+
+ Cleanup
+
+ >>> directlyProvides(removeAllProxies(details.context), [])
"""
context = removeAllProxies(self.context)
types = list(providedBy(context))
More information about the Zope3-Checkins
mailing list