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

[OpenIndiana] TestFilters.test_count fails #2331

Open
mtelka opened this issue Nov 29, 2023 · 0 comments
Open

[OpenIndiana] TestFilters.test_count fails #2331

mtelka opened this issue Nov 29, 2023 · 0 comments

Comments

@mtelka
Copy link
Contributor

mtelka commented Nov 29, 2023

Summary

  • OS: OpenIndiana Hipster
  • Architecture: 64bit
  • Psutil version: 5.9.6
  • Python version: Python 3.9.16
  • Type: tests

Description

The TestFilters.test_count test fails as follows (I added print(cons) to see what cons is):

____________________________ TestFilters.test_count ____________________________

self = <psutil.tests.test_connections.TestFilters testMethod=test_count>

    def test_count(self):
        with create_sockets():
            # tcp
            cons = thisproc.connections(kind='tcp')
            print(cons)
>           self.assertEqual(len(cons), 2 if supports_ipv6() else 1)
E           AssertionError: 3 != 2

psutil/tests/test_connections.py:404: AssertionError
----------------------------- Captured stdout call -----------------------------
[pconn(fd=-1, family=<AddressFamily.AF_INET6: 26>, type=<SocketKind.SOCK_STREAM: 2>, laddr=addr(ip='::', port=63192), raddr=(), status='LISTEN'), pconn(fd=-1, family=<AddressFamily.AF_INET: 2>, type=<SocketKind.SOCK_STREAM: 2>, laddr=addr(ip='0.0.0.0', port=63192), raddr=(), status='LISTEN'), pconn(fd=-1, family=<AddressFamily.AF_INET: 2>, type=<SocketKind.SOCK_STREAM: 2>, laddr=addr(ip='0.0.0.0', port=51038), raddr=(), status='LISTEN')]

This is possibly related to #2317.

@mtelka mtelka added the bug label Nov 29, 2023
@github-actions github-actions bot added the tests label Nov 29, 2023
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