summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGiampaolo Rodola <g.rodola@gmail.com>2017-04-28 04:43:21 +0200
committerGiampaolo Rodola <g.rodola@gmail.com>2017-04-28 04:43:21 +0200
commitd65ab6edb5a73918c2574201ae6887467f549e02 (patch)
treeace93f6f200c81dbda27e5d1568e1c760d97d269
parente822d6f93f0a98a59252d95ef33b20a506d2b417 (diff)
downloadpsutil-d65ab6edb5a73918c2574201ae6887467f549e02.tar.gz
add OSX note about UNIX sockets which cannot be deleted
-rwxr-xr-xpsutil/tests/test_process.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/psutil/tests/test_process.py b/psutil/tests/test_process.py
index 70404fac..8d25aee8 100755
--- a/psutil/tests/test_process.py
+++ b/psutil/tests/test_process.py
@@ -1101,6 +1101,9 @@ class TestProcess(unittest.TestCase):
def test_connections_unix(self):
def check(type):
safe_rmpath(TESTFN)
+ # TODO: for some reason on OSX a UNIX socket cannot be
+ # deleted once created (EACCES) so we create a temp file
+ # which will remain around. :-\
tfile = tempfile.mktemp(prefix=TESTFILE_PREFIX) if OSX else TESTFN
sock = socket.socket(AF_UNIX, type)
with contextlib.closing(sock):