From b760f4848db4db49de57918660f6a5059666b720 Mon Sep 17 00:00:00 2001 From: Giampaolo Rodola Date: Sat, 19 Dec 2020 01:45:00 +0100 Subject: [PATCH] fix around macos failure on CI Signed-off-by: Giampaolo Rodola --- psutil/tests/test_contracts.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/psutil/tests/test_contracts.py b/psutil/tests/test_contracts.py index dd6002e60..32c75fd7f 100755 --- a/psutil/tests/test_contracts.py +++ b/psutil/tests/test_contracts.py @@ -34,6 +34,7 @@ from psutil._compat import range from psutil.tests import APPVEYOR from psutil.tests import check_connection_ntuple +from psutil.tests import CI_TESTING from psutil.tests import create_sockets from psutil.tests import enum from psutil.tests import GITHUB_ACTIONS @@ -453,7 +454,7 @@ def exe(self, ret, info): try: assert os.access(ret, os.X_OK) except AssertionError: - if os.path.exists(ret): + if os.path.exists(ret) and not CI_TESTING: raise def pid(self, ret, info):