mirror of
https://github.com/sshuttle/sshuttle.git
synced 2025-02-16 10:29:36 +01:00
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
This commit is contained in:
parent
f8086dfa59
commit
a6efc6b653
@ -192,5 +192,4 @@ def test_family_ip_tuple():
|
|||||||
def test_family_to_string():
|
def test_family_to_string():
|
||||||
assert sshuttle.helpers.family_to_string(AF_INET) == "AF_INET"
|
assert sshuttle.helpers.family_to_string(AF_INET) == "AF_INET"
|
||||||
assert sshuttle.helpers.family_to_string(AF_INET6) == "AF_INET6"
|
assert sshuttle.helpers.family_to_string(AF_INET6) == "AF_INET6"
|
||||||
expected = 'AddressFamily.AF_UNIX'
|
assert isinstance(sshuttle.helpers.family_to_string(socket.AF_UNIX), str)
|
||||||
assert sshuttle.helpers.family_to_string(socket.AF_UNIX) == expected
|
|
||||||
|
Loading…
Reference in New Issue
Block a user