Skip to content

Commit

Permalink
Skip leading zeroes test for ipv6 addresses in Windows + Python 3.8
Browse files Browse the repository at this point in the history
  • Loading branch information
elliotwutingfeng committed Feb 28, 2024
1 parent bf5c276 commit 6f534f6
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion tests/main_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@

import logging
import os
import platform
import tempfile
from collections.abc import Sequence
from pathlib import Path
Expand Down Expand Up @@ -167,7 +168,10 @@ def test_looks_like_ipv6() -> None:
assert looks_like_ipv6("aBcD:ef01:2345:6789:aBcD:ef01:aaaa:2288") is True
assert looks_like_ipv6("aBcD:ef01:2345:6789:aBcD:ef01:127.0.0.1") is True
assert looks_like_ipv6("ZBcD:ef01:2345:6789:aBcD:ef01:127.0.0.1") is False
assert looks_like_ipv6("aBcD:ef01:2345:6789:aBcD:ef01:127.0.0.01") is False
if not (
platform.system() == "Windows" and platform.python_version().startswith("3.8")
):
assert looks_like_ipv6("aBcD:ef01:2345:6789:aBcD:ef01:127.0.0.01") is False
assert looks_like_ipv6("aBcD:ef01:2345:6789:aBcD:") is False


Expand Down

0 comments on commit 6f534f6

Please sign in to comment.