Skip to content

Commit a7807be

Browse files
committed
Install flit-core offline for test_self_update_editable
1 parent 41352df commit a7807be

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

tests/functional/test_self_update.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,16 @@
11
# Check that pip can update itself correctly
22

3+
from pathlib import Path
34
from typing import Any
45

56

6-
def test_self_update_editable(script: Any, pip_src: Any) -> None:
7+
def test_self_update_editable(script: Any, pip_src: Any, common_wheels: Path) -> None:
78
# Test that if we have an environment with pip installed in non-editable
89
# mode, that pip can safely update itself to an editable install.
910
# See https://github.com/pypa/pip/issues/12666 for details.
1011

1112
# Install flit-core (build backend) since we use --no-build-isolation
12-
script.pip("install", "flit-core")
13+
script.pip("install", "--no-index", "-f", common_wheels, "flit-core")
1314

1415
# Step 1. Install pip as non-editable. This is expected to succeed as
1516
# the existing pip in the environment is installed in editable mode, so

0 commit comments

Comments
 (0)