[Zope3-checkins] SVN: Zope3/trunk/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
Wed Aug 25 11:23:38 EDT 2004


Log message for revision 27262:
  fix the cleanup from the tests so no .pyc/.pyo files get left behind
  
  (merged from ZopeX3-3.0 branch revision 27135)
  


Changed:
  U   Zope3/trunk/src/zope/app/apidoc/classmodule/__init__.py


-=-
Modified: Zope3/trunk/src/zope/app/apidoc/classmodule/__init__.py
===================================================================
--- Zope3/trunk/src/zope/app/apidoc/classmodule/__init__.py	2004-08-25 15:19:32 UTC (rev 27261)
+++ Zope3/trunk/src/zope/app/apidoc/classmodule/__init__.py	2004-08-25 15:23:37 UTC (rev 27262)
@@ -760,6 +760,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