Skip to content

Commit

Permalink
Use Ubuntu 20.04
Browse files Browse the repository at this point in the history
  • Loading branch information
elliotwutingfeng committed Feb 22, 2024
1 parent 4a7d0b7 commit 22f2ff7
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 9 deletions.
8 changes: 4 additions & 4 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ jobs:
strategy:
fail-fast: false
matrix:
os: [macos-latest, windows-latest, ubuntu-latest]
os: [macos-latest, windows-latest, ubuntu-20.04]
language:
[
{python-version: "3.8.7", toxenv: "py38"},
Expand All @@ -16,11 +16,11 @@ jobs:
{python-version: "pypy3.8", toxenv: "pypy38"},
]
include:
- os: ubuntu-latest
- os: ubuntu-20.04
language: {python-version: "3.8", toxenv: "codestyle"}
- os: ubuntu-latest
- os: ubuntu-20.04
language: {python-version: "3.8", toxenv: "lint"}
- os: ubuntu-latest
- os: ubuntu-20.04
language: {python-version: "3.8", toxenv: "typecheck"}
runs-on: ${{ matrix.os }}
steps:
Expand Down
10 changes: 5 additions & 5 deletions tests/main_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -154,11 +154,11 @@ def test_lenient_netloc() -> None:

def test_looks_like_ip() -> None:
"""Test fallback function to check if a string looks like an IP address."""
assert looks_like_ip("1.1.1.1", None) is True
assert looks_like_ip("1.1.1.01", None) is False
assert looks_like_ip("a.1.1.1", None) is False
assert looks_like_ip("1.1.1.1\n", None) is False
assert looks_like_ip("256.256.256.256", None) is False
assert looks_like_ip("1.1.1.1") is True
assert looks_like_ip("1.1.1.01") is False
assert looks_like_ip("a.1.1.1") is False
assert looks_like_ip("1.1.1.1\n") is False
assert looks_like_ip("256.256.256.256") is False


def test_similar_to_ip() -> None:
Expand Down

0 comments on commit 22f2ff7

Please sign in to comment.