Make test file writable before trying to delete it

Otherwise Windows doesn't allow deletion.
This commit is contained in:
2019-01-10 15:53:25 +01:00
parent 478344c85c
commit ca4e3ffa97

View File

@@ -25,6 +25,7 @@ class PretaskWriteCheckTest(AbstractFWorkerTest):
def test_write_file_exists(self):
def post_run():
existing.chmod(0o777)
self.assertTrue(existing.exists(), '%s should not have been deleted' % existing)
with self.write_check(post_run) as tdir: