[Zope3-checkins]
SVN: Zope3/branches/ZopeX3-3.0/src/zope/app/apidoc/classmodule/__init__.py
fix the cleanup from the tests so no .pyc/.pyo files get left behind
Fred L. Drake, Jr.
fdrake at gmail.com
Fri Aug 13 17:50:21 EDT 2004
Log message for revision 27135:
fix the cleanup from the tests so no .pyc/.pyo files get left behind
Changed:
U Zope3/branches/ZopeX3-3.0/src/zope/app/apidoc/classmodule/__init__.py
-=-
Modified: Zope3/branches/ZopeX3-3.0/src/zope/app/apidoc/classmodule/__init__.py
===================================================================
--- Zope3/branches/ZopeX3-3.0/src/zope/app/apidoc/classmodule/__init__.py 2004-08-13 20:38:06 UTC (rev 27134)
+++ Zope3/branches/ZopeX3-3.0/src/zope/app/apidoc/classmodule/__init__.py 2004-08-13 21:50:21 UTC (rev 27135)
@@ -719,6 +719,10 @@
Now clean up the temporary module, just to play nice:
>>> os.unlink(filename)
+ >>> if os.path.exists(filename + 'c'):
+ ... os.unlink(filename + 'c')
+ >>> if os.path.exists(filename + 'o'):
+ ... os.unlink(filename + 'o')
"""
module = sys.modules.get(path, default)
if module is default:
More information about the Zope3-Checkins
mailing list