Commit c2f9ccb7d8e68ebc7c100442d0001d969f03a218

Authored by Jürgen Knödlseder
1 parent 0adb5cd7

Remove temporary directory even if it's not empty

test/test_python_cscripts.py
... ... @@ -190,7 +190,7 @@ def test(installed=False, debug=False):
190 190  
191 191 # Remove temporary direction
192 192 if installed:
193   - os.rmdir(path)
  193 + os.system('rm -f %s' % (path))
194 194  
195 195 # Exit with return code
196 196 sys.exit(rc)
... ...
test/test_python_ctools.py
... ... @@ -160,7 +160,7 @@ def test(installed=False):
160 160  
161 161 # Remove temporary direction
162 162 if installed:
163   - os.rmdir(path)
  163 + os.system('rm -f %s' % (path))
164 164  
165 165 # Exit with return code
166 166 sys.exit(rc)
... ...