mailr21186 - /branches/relax_disp/test_suite/clean_up.py


Others Months | Index by Date | Thread Index
>>   [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Header


Content

Posted by edward on October 18, 2013 - 19:53:
Author: bugman
Date: Fri Oct 18 19:53:55 2013
New Revision: 21186

URL: http://svn.gna.org/viewcvs/relax?rev=21186&view=rev
Log:
Fix for the test_suite.clean_up.deletion() method for another MS Windows 
problem.

Sometimes the failed rmtree() call actually deletes the files and throws the 
WindowsError error.
Therefore the second rmtree() call will throw another WindowsError for the 
missing files.  This is
now caught.


Modified:
    branches/relax_disp/test_suite/clean_up.py

Modified: branches/relax_disp/test_suite/clean_up.py
URL: 
http://svn.gna.org/viewcvs/relax/branches/relax_disp/test_suite/clean_up.py?rev=21186&r1=21185&r2=21186&view=diff
==============================================================================
--- branches/relax_disp/test_suite/clean_up.py (original)
+++ branches/relax_disp/test_suite/clean_up.py Fri Oct 18 19:53:55 2013
@@ -71,5 +71,10 @@
                 rmtree(var)
             else:
                 delete(var, fail=False)
+
+        # The files no longer exist?  Oh well.
+        except WindowsError:
+            pass
+
         finally:
             del var




Related Messages


Powered by MHonArc, Updated Fri Oct 18 20:20:05 2013