Skip to content

Commit

Permalink
fix error in test_contracts.py on win
Browse files Browse the repository at this point in the history
  • Loading branch information
giampaolo committed Oct 14, 2023
1 parent becbe86 commit 4a35f51
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions psutil/tests/test_contracts.py
Original file line number Diff line number Diff line change
Expand Up @@ -668,8 +668,7 @@ def cwd(self, ret, info):
try:
st = os.stat(ret)
except OSError as err:
if WINDOWS and err.errno in \
psutil._psplatform.ACCESS_DENIED_SET:
if WINDOWS and psutil._psplatform.is_permission_err(err):
pass
# directory has been removed in mean time
elif err.errno != errno.ENOENT:
Expand Down

0 comments on commit 4a35f51

Please sign in to comment.