diff --git a/test/test_python_cscripts.py b/test/test_python_cscripts.py index 09eea3a..71c890f 100755 --- a/test/test_python_cscripts.py +++ b/test/test_python_cscripts.py @@ -190,7 +190,7 @@ def test(installed=False, debug=False): # Remove temporary direction if installed: - os.rmdir(path) + os.system('rm -f %s' % (path)) # Exit with return code sys.exit(rc) diff --git a/test/test_python_ctools.py b/test/test_python_ctools.py index db05434..6633e2b 100755 --- a/test/test_python_ctools.py +++ b/test/test_python_ctools.py @@ -160,7 +160,7 @@ def test(installed=False): # Remove temporary direction if installed: - os.rmdir(path) + os.system('rm -f %s' % (path)) # Exit with return code sys.exit(rc)