Skip to content

Commit

Permalink
Remove missed Python 3.8 test branching (#1281)
Browse files Browse the repository at this point in the history
  • Loading branch information
bdraco authored Oct 15, 2024
1 parent 576b5e2 commit 5bbbe2e
Showing 1 changed file with 3 additions and 11 deletions.
14 changes: 3 additions & 11 deletions tests/test_url_parsing.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
import sys

import pytest

from yarl import URL
Expand Down Expand Up @@ -40,15 +38,9 @@ def test_scheme_only(self):

def test_no_scheme1(self):
u = URL("google.com:80")
# See: https://bugs.python.org/issue27657
if sys.version_info[:3] == (3, 8, 1) or sys.version_info >= (3, 9, 0):
assert u.scheme == "google.com"
assert u.host is None
assert u.path == "80"
else:
assert u.scheme == ""
assert u.host is None
assert u.path == "google.com:80"
assert u.scheme == "google.com"
assert u.host is None
assert u.path == "80"
assert u.query_string == ""
assert u.fragment == ""

Expand Down

0 comments on commit 5bbbe2e

Please sign in to comment.