[Checkins] SVN:	grokcore.startup/trunk/src/grokcore/startup/startup.py close	the database after the script has run. this came to light due	to test errors on windows,	where the test tried to delete the temp directory it created,	that still had files left unclosed
    Jan-Wijbrand Kolman 
    janwijbrand at gmail.com
       
    Mon Oct 25 06:27:13 EDT 2010
    
    
  
Log message for revision 117842:
  close the database after the script has run. this came to light due to test errors on windows, where the test tried to delete the temp directory it created, that still had files left unclosed
Changed:
  U   grokcore.startup/trunk/src/grokcore/startup/startup.py
-=-
Modified: grokcore.startup/trunk/src/grokcore/startup/startup.py
===================================================================
--- grokcore.startup/trunk/src/grokcore/startup/startup.py	2010-10-25 09:46:53 UTC (rev 117841)
+++ grokcore.startup/trunk/src/grokcore/startup/startup.py	2010-10-25 10:27:12 UTC (rev 117842)
@@ -55,6 +55,9 @@
         globals_['__name__'] = '__main__'
         globals_['__file__'] = sys.argv[0]
         execfile(sys.argv[0], globals_)
+
+        # Housekeeping
+        db.close()
         sys.exit()
 
     # Invoke an interactive interpreter prompt
    
    
More information about the checkins
mailing list