Changeset: 2f9de581b728 for MonetDB URL: https://dev.monetdb.org/hg/MonetDB/rev/2f9de581b728 Modified Files: testing/Mtest.py.in Branch: Aug2024 Log Message:
Not only Windows, but also MacOS give a PermissionError when unlinkig a directory. diffs (23 lines): diff --git a/testing/Mtest.py.in b/testing/Mtest.py.in --- a/testing/Mtest.py.in +++ b/testing/Mtest.py.in @@ -28,6 +28,7 @@ import os import sys import shutil +import platform import re import secrets import time @@ -313,8 +314,9 @@ def remove(file): except IsADirectoryError: shutil.rmtree(file, ignore_errors=True) except PermissionError: - # on Windows we get a weird error from os.remove on a directory - if os.name == "nt": + # on Windows and MacOS we get a weird error from os.remove on a + # directory + if platform.system() in ('Windows', 'Darwin'): shutil.rmtree(file, ignore_errors=True) else: Warn('could not remove {}'.format(file)) _______________________________________________ checkin-list mailing list -- checkin-list@monetdb.org To unsubscribe send an email to checkin-list-le...@monetdb.org