diff options
author | Bastian Venthur <bastian.venthur@flixbus.com> | 2022-08-29 10:28:45 +0200 |
---|---|---|
committer | Brian May <brian@linuxpenguins.xyz> | 2022-08-29 19:52:10 +1000 |
commit | a6efc6b653d01ba7d7d34fa9dde2fd953c4c926a (patch) | |
tree | 138d9b70768b0b62688b7e8f380a5b3cac03d6dd /tests | |
parent | f8086dfa590f742561ffc1f4b4363da3f3cf4069 (diff) |
This test broke in Python3.11
Fixed the test and only check for instance: str for families that are
not explicitly covered in `family_to_str`
closes: #784
Diffstat (limited to 'tests')
-rw-r--r-- | tests/client/test_helpers.py | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/tests/client/test_helpers.py b/tests/client/test_helpers.py index 8e69d45..1e8d6bb 100644 --- a/tests/client/test_helpers.py +++ b/tests/client/test_helpers.py @@ -192,5 +192,4 @@ def test_family_ip_tuple(): def test_family_to_string(): assert sshuttle.helpers.family_to_string(AF_INET) == "AF_INET" assert sshuttle.helpers.family_to_string(AF_INET6) == "AF_INET6" - expected = 'AddressFamily.AF_UNIX' - assert sshuttle.helpers.family_to_string(socket.AF_UNIX) == expected + assert isinstance(sshuttle.helpers.family_to_string(socket.AF_UNIX), str) |