Skip to content

Commit

Permalink
fix around macos failure on CI
Browse files Browse the repository at this point in the history
Signed-off-by: Giampaolo Rodola <[email protected]>
  • Loading branch information
giampaolo committed Dec 19, 2020
1 parent db8cd0c commit b760f48
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion psutil/tests/test_contracts.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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):
Expand Down

0 comments on commit b760f48

Please sign in to comment.