1
0
Fork 0
mirror of https://github.com/Kozea/Radicale.git synced 2025-08-10 18:40:53 +00:00

cosmetics

This commit is contained in:
Unrud 2018-09-09 14:58:43 +02:00
parent ea7916e0fa
commit 515a5c9d18
2 changed files with 2 additions and 3 deletions

View file

@ -107,9 +107,8 @@ class TestBaseServerRequests:
status, _, _ = self.request("GET", "/")
assert status == 302
@pytest.mark.skipif(not server.HAS_IPV6, reason="IPv6 not supported")
def test_ipv6(self):
if not server.HAS_IPV6:
pytest.skip("IPv6 not supported")
with socket.socket(socket.AF_INET6, socket.SOCK_STREAM) as sock:
sock.setsockopt(server.IPPROTO_IPV6, server.IPV6_V6ONLY, 1)
try: