Skip to content

Commit a8605e2

Browse files
committed
Fix broken req unit test & xfail weird failure
1 parent fe5b8f5 commit a8605e2

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed

tests/functional/test_proxy.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
import ssl
2+
import sys
23
from pathlib import Path
34
from typing import Any
45

@@ -92,6 +93,9 @@ def test_proxy_does_not_override_netrc(
9293
script.assert_installed(simple="3.0")
9394

9495

96+
@pytest.mark.xfail(
97+
sys.version_info >= (3, 14), reason="Access logs are blank intermittently on 3.14"
98+
)
9599
@pytest.mark.network
96100
def test_build_deps_use_proxy_from_cli(
97101
script: PipTestEnvironment, capfd: pytest.CaptureFixture[str], data: TestData

tests/unit/test_req.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,7 @@
5151
handle_requirement_line,
5252
)
5353
from pip._internal.resolution.legacy.resolver import Resolver
54+
from pip._internal.utils.urls import path_to_url
5455

5556
from tests.lib import TestData, make_test_finder, requirements_file, wheel
5657

@@ -224,7 +225,7 @@ def test_unsupported_hashes(self, data: TestData) -> None:
224225
dir_path = data.packages.joinpath("FSPkg")
225226
reqset.add_unnamed_requirement(
226227
get_processed_req_from_line(
227-
f"file://{dir_path}",
228+
path_to_url(str(dir_path)),
228229
lineno=2,
229230
)
230231
)

0 commit comments

Comments
 (0)