diff options
| author | jvoisin | 2014-01-27 22:19:50 +0000 |
|---|---|---|
| committer | jvoisin | 2014-01-27 22:19:50 +0000 |
| commit | a8195f5d8034f82aef04d2da223fc0a9c0dc9d38 (patch) | |
| tree | cd62a5e74ac8a18c49a6e214a0d03f44d975380b /test/test.py | |
| parent | dbc1c736e63797c7e88dcd9187fdb028a8de9e59 (diff) | |
Non-writtables test files are now chmod'ed to be properly removed.
Diffstat (limited to '')
| -rw-r--r-- | test/test.py | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/test/test.py b/test/test.py index 1641f88..49a657b 100644 --- a/test/test.py +++ b/test/test.py | |||
| @@ -62,6 +62,9 @@ class MATTest(unittest.TestCase): | |||
| 62 | ''' | 62 | ''' |
| 63 | Remove the tmp folder | 63 | Remove the tmp folder |
| 64 | ''' | 64 | ''' |
| 65 | for root, dirs, files in os.walk(self.tmpdir): | ||
| 66 | for d in dirs + files: | ||
| 67 | os.chmod(os.path.join(root, d), 0o777) | ||
| 65 | shutil.rmtree(self.tmpdir) | 68 | shutil.rmtree(self.tmpdir) |
| 66 | 69 | ||
| 67 | 70 | ||
