You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Browse filesBrowse the repository at this point in the historyBrowse files
teddiesloco
committed
fix: catch malformed port ValueError and reach 100% coverage
- _canonical_netloc now catches ValueError from parsed.port for
malformed explicit ports (e.g. out-of-range), falling back to the
original netloc instead of letting check_resource_allowed() crash
- add test coverage for the userinfo-in-netloc and IPv6-literal
branches that were previously untested (CI requires 100% coverage)
- add regression test for the malformed-port fallback
0 commit comments