Commit c2f9ccb7d8e68ebc7c100442d0001d969f03a218
1 parent
0adb5cd7
Remove temporary directory even if it's not empty
Showing
2 changed files
with
2 additions
and
2 deletions
test/test_python_cscripts.py
| @@ -190,7 +190,7 @@ def test(installed=False, debug=False): | @@ -190,7 +190,7 @@ def test(installed=False, debug=False): | ||
| 190 | 190 | ||
| 191 | # Remove temporary direction | 191 | # Remove temporary direction |
| 192 | if installed: | 192 | if installed: |
| 193 | - os.rmdir(path) | 193 | + os.system('rm -f %s' % (path)) |
| 194 | 194 | ||
| 195 | # Exit with return code | 195 | # Exit with return code |
| 196 | sys.exit(rc) | 196 | sys.exit(rc) |
test/test_python_ctools.py
| @@ -160,7 +160,7 @@ def test(installed=False): | @@ -160,7 +160,7 @@ def test(installed=False): | ||
| 160 | 160 | ||
| 161 | # Remove temporary direction | 161 | # Remove temporary direction |
| 162 | if installed: | 162 | if installed: |
| 163 | - os.rmdir(path) | 163 | + os.system('rm -f %s' % (path)) |
| 164 | 164 | ||
| 165 | # Exit with return code | 165 | # Exit with return code |
| 166 | sys.exit(rc) | 166 | sys.exit(rc) |