<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META content="text/html; charset=iso-8859-1" http-equiv=Content-Type>
<META name=GENERATOR content="MSHTML 8.00.6001.18241">
<STYLE></STYLE>
</HEAD>
<BODY bgColor=#ffffff>
<DIV><FONT face=Arial>I'm running a number of test cases and saving their 
results in a shelve file.</FONT></DIV>
<DIV><FONT face=Arial></FONT>&nbsp;</DIV>
<DIV><FONT face=Arial>A full run of the test cases takes about 36 hours.&nbsp; 
During that time, if something interrupts the run (e.g., a power outage, which 
has happened), I find that none of the completed test cases have been committed 
to the shelve file even though, after each run, I make sure that the results are 
written to the in-memory database (i.e., db = shelve.open(filename) at the 
beginning of the test run; and db[key] = results after each test 
case).</FONT></DIV>
<DIV><FONT face=Arial></FONT>&nbsp;</DIV>
<DIV><FONT face=Arial>Is there a way to force&nbsp;the results for a single test 
case to be written back to the shelve file?&nbsp; Other than opening/closing the 
shelve after each test case run?</FONT></DIV>
<DIV><FONT face=Arial></FONT>&nbsp;</DIV>
<DIV><FONT face=Arial>Thanks.</FONT></DIV>
<DIV>&nbsp;</DIV></BODY></HTML>