diff options
| author | Giampaolo Rodola <g.rodola@gmail.com> | 2017-04-28 15:02:58 -0700 |
|---|---|---|
| committer | Giampaolo Rodola <g.rodola@gmail.com> | 2017-04-28 15:02:58 -0700 |
| commit | a8bf2e04f641e624e5dee11b3f5c45c29c94863a (patch) | |
| tree | 23a2e52d02fadf95386ccffd2a46f61f2bd68dc6 | |
| parent | 22077c5755e5897306be92071885300238127100 (diff) | |
| download | psutil-a8bf2e04f641e624e5dee11b3f5c45c29c94863a.tar.gz | |
osx: it seems bind()ing on local host leaves a DNS-related UNIX socket around
| -rwxr-xr-x | psutil/tests/test_process.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/psutil/tests/test_process.py b/psutil/tests/test_process.py index b3c77464..0e96d89a 100755 --- a/psutil/tests/test_process.py +++ b/psutil/tests/test_process.py @@ -1129,7 +1129,7 @@ class TestProcess(unittest.TestCase): 'connection fd not available on this platform') def test_connection_fromfd(self): with contextlib.closing(socket.socket()) as sock: - sock.bind(('localhost', 0)) + sock.bind(('127.0.0.1', 0)) sock.listen(1) p = psutil.Process() for conn in p.connections(): |
