From a6efc6b653d01ba7d7d34fa9dde2fd953c4c926a Mon Sep 17 00:00:00 2001 From: Bastian Venthur Date: Mon, 29 Aug 2022 10:28:45 +0200 Subject: [PATCH] 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 --- tests/client/test_helpers.py | 3 +-- 1 file changed, 1 insertion(+), 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)