Avatar for the aio-libs user
aio-libs
yarl
BlogDocs

Fix `URL.build` not validating that `path` has a leading slash when passing `authority`

#1265Merged
Comparing
test_build_with_authority_fix
(
7983876
) with
master
(
5b3592a
)
CodSpeed Performance Gauge
+1%
Improvements
0
Regressions
0
Untouched
52
New
0
Dropped
0
Ignored
1

Benchmarks

Passed

test_url_make_access_raw_path
tests/test_url_benchmarks.py::test_url_make_access_raw_path
CodSpeed Performance Gauge
+6%
988 µs
928.3 µs
test_url_make_with_ipv4_address_and_path
tests/test_url_benchmarks.py::test_url_make_with_ipv4_address_and_path
CodSpeed Performance Gauge
+6%
928.5 µs
875.4 µs
test_url_build_access_raw_path
tests/test_url_benchmarks.py::test_url_build_access_raw_path
CodSpeed Performance Gauge
+6%
993.3 µs
939.5 µs
test_url_build_with_host_and_port
tests/test_url_benchmarks.py::test_url_build_with_host_and_port
CodSpeed Performance Gauge
+6%
1,036.2 µs
981.8 µs
test_url_make_with_host_path_and_port
tests/test_url_benchmarks.py::test_url_make_with_host_path_and_port
CodSpeed Performance Gauge
+6%
1,046.6 µs
991.9 µs
test_url_make_with_ipv6_address_and_path
tests/test_url_benchmarks.py::test_url_make_with_ipv6_address_and_path
CodSpeed Performance Gauge
+5%
1.1 ms
1 ms
test_url_make_with_ipv4_address_path_and_port
tests/test_url_benchmarks.py::test_url_make_with_ipv4_address_path_and_port
CodSpeed Performance Gauge
+5%
1.1 ms
1 ms
test_url_make_with_ipv6_address_path_and_port
tests/test_url_benchmarks.py::test_url_make_with_ipv6_address_path_and_port
CodSpeed Performance Gauge
+5%
1.2 ms
1.1 ms
test_url_with_port
tests/test_url_benchmarks.py::test_url_with_port
CodSpeed Performance Gauge
+1%
975.4 µs
963.2 µs
test_url_build_access_fragment
tests/test_url_benchmarks.py::test_url_build_access_fragment
CodSpeed Performance Gauge
+1%
861 µs
852.2 µs
test_url_join
tests/test_url_benchmarks.py::test_url_join
CodSpeed Performance Gauge
+1%
1.1 ms
1.1 ms
test_url_build_access_username_password
tests/test_url_benchmarks.py::test_url_build_access_username_password
CodSpeed Performance Gauge
+1%
1.1 ms
1.1 ms
test_url_with_path
tests/test_url_benchmarks.py::test_url_with_path
CodSpeed Performance Gauge
+1%
907.7 µs
902 µs
test_url_with_path_relative
tests/test_url_benchmarks.py::test_url_with_path_relative
CodSpeed Performance Gauge
+1%
726.4 µs
721.9 µs
test_url_build_with_host_path_and_port
tests/test_url_benchmarks.py::test_url_build_with_host_path_and_port
CodSpeed Performance Gauge
+1%
861.4 µs
856.6 µs
test_url_extend_query_existing_query_string
tests/test_url_benchmarks.py::test_url_extend_query_existing_query_string
CodSpeed Performance Gauge
0%
349.7 µs
348 µs
test_url_make_encoded_with_host_path_and_port
tests/test_url_benchmarks.py::test_url_make_encoded_with_host_path_and_port
CodSpeed Performance Gauge
0%
319.6 µs
318.1 µs
test_url_make_access_raw_host
tests/test_url_benchmarks.py::test_url_make_access_raw_host
CodSpeed Performance Gauge
0%
746.4 µs
743.7 µs
test_url_joinpath_encoded
tests/test_url_benchmarks.py::test_url_joinpath_encoded
CodSpeed Performance Gauge
0%
1.3 ms
1.3 ms
test_url_equality
tests/test_url_benchmarks.py::test_url_equality
CodSpeed Performance Gauge
0%
1.8 ms
1.8 ms
test_url_extend_query_simple_query_dict
tests/test_url_benchmarks.py::test_url_extend_query_simple_query_dict
CodSpeed Performance Gauge
0%
825.1 µs
822.2 µs
test_url_with_host
tests/test_url_benchmarks.py::test_url_with_host
CodSpeed Performance Gauge
0%
1.1 ms
1.1 ms
test_url_make_with_query_mapping
tests/test_url_benchmarks.py::test_url_make_with_query_mapping
CodSpeed Performance Gauge
0%
818.5 µs
816.4 µs
test_url_joinpath_with_truediv
tests/test_url_benchmarks.py::test_url_joinpath_with_truediv
CodSpeed Performance Gauge
0%
1.5 ms
1.5 ms
test_url_build_with_host
tests/test_url_benchmarks.py::test_url_build_with_host
CodSpeed Performance Gauge
0%
717.7 µs
716.4 µs
test_url_build_encoded_with_host_and_port
tests/test_url_benchmarks.py::test_url_build_encoded_with_host_and_port
CodSpeed Performance Gauge
0%
651.6 µs
650.9 µs
test_url_extend_query_existing_query_simple_query_dict
tests/test_url_benchmarks.py::test_url_extend_query_existing_query_simple_query_dict
CodSpeed Performance Gauge
0%
845 µs
844.2 µs
test_url_origin
tests/test_url_benchmarks.py::test_url_origin
CodSpeed Performance Gauge
0%
86.3 µs
86.3 µs
test_url_with_path_origin
tests/test_url_benchmarks.py::test_url_with_path_origin
CodSpeed Performance Gauge
0%
86.6 µs
86.5 µs
test_url_build_with_different_hosts
tests/test_url_benchmarks.py::test_url_build_with_different_hosts
CodSpeed Performance Gauge
0%
2.3 ms
2.3 ms
test_unquoter
tests/test_quoting_benchmarks.py::test_unquoter
CodSpeed Performance Gauge
0%
170.3 µs
170.1 µs
test_human_repr
tests/test_url_benchmarks.py::test_human_repr
CodSpeed Performance Gauge
0%
10.8 ms
10.8 ms
test_quoter_pct
tests/test_quoting_benchmarks.py::test_quoter_pct
CodSpeed Performance Gauge
0%
141.2 µs
141.2 µs
test_url_make_with_many_hosts
tests/test_url_benchmarks.py::test_url_make_with_many_hosts
CodSpeed Performance Gauge
0%
5.7 ms
5.7 ms
test_quoter_ascii
tests/test_quoting_benchmarks.py::test_quoter_ascii
CodSpeed Performance Gauge
0%
145.4 µs
145.4 µs
test_url_to_string
tests/test_url_benchmarks.py::test_url_to_string
CodSpeed Performance Gauge
0%
316.3 µs
316.3 µs
test_url_with_path_to_string
tests/test_url_benchmarks.py::test_url_with_path_to_string
CodSpeed Performance Gauge
0%
314 µs
314 µs
test_url_origin_with_user_pass
tests/test_url_benchmarks.py::test_url_origin_with_user_pass
CodSpeed Performance Gauge
0%
86.6 µs
86.6 µs
test_is_default_port
tests/test_url_benchmarks.py::test_is_default_port
CodSpeed Performance Gauge
0%
188 µs
188 µs
test_url_make_access_fragment
tests/test_url_benchmarks.py::test_url_make_access_fragment
CodSpeed Performance Gauge
0%
837.3 µs
837.3 µs
test_url_build_access_raw_host
tests/test_url_benchmarks.py::test_url_build_access_raw_host
CodSpeed Performance Gauge
0%
988.9 µs
988.9 µs
test_url_with_scheme
tests/test_url_benchmarks.py::test_url_with_scheme
CodSpeed Performance Gauge
0%
746.3 µs
746.7 µs
test_url_make_empty_username
tests/test_url_benchmarks.py::test_url_make_empty_username
CodSpeed Performance Gauge
0%
999.1 µs
999.7 µs
test_url_make_with_query_sequence_mapping
tests/test_url_benchmarks.py::test_url_make_with_query_sequence_mapping
CodSpeed Performance Gauge
0%
4 ms
4 ms
test_url_make_with_int_query_mapping
tests/test_url_benchmarks.py::test_url_make_with_int_query_mapping
CodSpeed Performance Gauge
0%
1.2 ms
1.2 ms
test_url_make_with_host_and_path
tests/test_url_benchmarks.py::test_url_make_with_host_and_path
CodSpeed Performance Gauge
0%
713 µs
714.6 µs
test_url_with_query_to_string
tests/test_url_benchmarks.py::test_url_with_query_to_string
CodSpeed Performance Gauge
0%
368.1 µs
368.9 µs
test_url_with_fragment
tests/test_url_benchmarks.py::test_url_with_fragment
CodSpeed Performance Gauge
0%
874.5 µs
876.6 µs
test_url_make_empty_password
tests/test_url_benchmarks.py::test_url_make_empty_password
CodSpeed Performance Gauge
0%
953.6 µs
957.1 µs
test_url_with_password
tests/test_url_benchmarks.py::test_url_with_password
CodSpeed Performance Gauge
0%
1.1 ms
1.1 ms
test_url_make_access_username_password
tests/test_url_benchmarks.py::test_url_make_access_username_password
CodSpeed Performance Gauge
-1%
1.1 ms
1.1 ms
test_url_with_user
tests/test_url_benchmarks.py::test_url_with_user
CodSpeed Performance Gauge
-2%
1 ms
1 ms

Ignored

test_quoter_quoteIgnored
tests/test_quoting_benchmarks.py::test_quoter_quote
CodSpeed Performance Gauge
0%
421.8 µs
421.8 µs

Commits

Click on a commit to change the comparison range
Base
master
5b3592a
+1%
Update CHANGES/1265.bugfix.rst
7983876
2 months ago
by bdraco
Home Terms PrivacyDocs