mirror of
https://github.com/certbot/certbot.git
synced 2026-06-06 23:32:06 -04:00
Disable hard error for now
This commit is contained in:
parent
b640e5bf36
commit
3dca99f211
1 changed files with 5 additions and 1 deletions
|
|
@ -342,7 +342,11 @@ class TempDirTestCase(unittest.TestCase):
|
|||
def handle_rw_files(_, path, __):
|
||||
"""Handle read-only files, that will fail to be removed on Windows."""
|
||||
security.chmod(path, stat.S_IWRITE)
|
||||
os.remove(path)
|
||||
try:
|
||||
os.remove(path)
|
||||
except (IOError, OSError):
|
||||
# TODO: remote the try/except once all logic from windows file permissions is merged
|
||||
pass
|
||||
shutil.rmtree(self.tempdir, onerror=handle_rw_files)
|
||||
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue