[GRASS-SVN] r61133 - sandbox/wenzeslaus/gunittest

svn_grass at osgeo.org svn_grass at osgeo.org
Wed Jul 2 20:58:23 PDT 2014


Author: wenzeslaus
Date: 2014-07-02 20:58:22 -0700 (Wed, 02 Jul 2014)
New Revision: 61133

Modified:
   sandbox/wenzeslaus/gunittest/main.py
Log:
gunittest: add implementation for recursive rm (missing in r61131)

Modified: sandbox/wenzeslaus/gunittest/main.py
===================================================================
--- sandbox/wenzeslaus/gunittest/main.py	2014-07-03 02:50:34 UTC (rev 61132)
+++ sandbox/wenzeslaus/gunittest/main.py	2014-07-03 03:58:22 UTC (rev 61133)
@@ -100,7 +100,7 @@
 def silent_rmtree(filename):
     """Remove the file but do nothing if file does not exist."""
     try:
-        os.remove(filename)
+        shutil.rmtree(filename)
     except OSError as e:
         # errno.ENOENT is "No such file or directory"
         # re-raise if a different error occured



More information about the grass-commit mailing list