Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

net_connections() raises TypeError on BSD platforms #1125

Closed
giampaolo opened this issue Sep 8, 2017 · 0 comments
Closed

net_connections() raises TypeError on BSD platforms #1125

giampaolo opened this issue Sep 8, 2017 · 0 comments

Comments

@giampaolo
Copy link
Owner

======================================================================
ERROR: test_connections.TestUnconnectedSockets.test_unix_tcp
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/home/vagrant/psutil/psutil/tests/test_connections.py", line 180, in test_unix_tcp
    conn = self.check_socket(sock)
  File "/home/vagrant/psutil/psutil/tests/test_connections.py", line 116, in check_socket
    self.compare_procsys_connections(os.getpid(), cons)
  File "/home/vagrant/psutil/psutil/tests/test_connections.py", line 125, in compare_procsys_connections
    sys_cons = psutil.net_connections(kind=kind)
  File "/home/vagrant/psutil/psutil/__init__.py", line 2181, in net_connections
    return _psplatform.net_connections(kind)
  File "/home/vagrant/psutil/psutil/_psbsd.py", line 399, in net_connections
    raddr = _common.addr(*raddr)
TypeError: __new__() takes exactly 3 arguments (1 given)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant