Skip to content

Commit

Permalink
Rework fix test for USERNAME_TO_ENCODE
Browse files Browse the repository at this point in the history
  • Loading branch information
shadchin committed Jul 7, 2023
1 parent 8b3ec31 commit 6a5235a
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions tests/test_url.py
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,7 @@
if (
chr(value) not in _C0_CONTROL_OR_SPACE
and chr(value) not in USERINFO_SAFE
and chr(value) not in ":/?#\\"
and chr(value) not in ":/?#\\[]"
)
)
USERNAME_ENCODED = "".join(f"%{ord(char):02X}" for char in USERNAME_TO_ENCODE)
Expand Down Expand Up @@ -420,10 +420,6 @@ def test_safe_url_string_encoding(
}
if sys.version_info < (3, 11, 4):
KNOWN_SAFE_URL_STRING_URL_ISSUES.add("http://[2a01:5cc0:1:2:3:4]") # Invalid IPv6
else:
KNOWN_SAFE_URL_STRING_URL_ISSUES.add(
f"https://{USERNAME_TO_ENCODE}:{PASSWORD_TO_ENCODE}@example.com"
)


@pytest.mark.parametrize(
Expand Down

0 comments on commit 6a5235a

Please sign in to comment.