Skip to content

Commit dc696c2

Browse files
ichard26sbidoul
authored andcommitted
Patch out EXTERNALLY-MANAGED for self-check tests (#13179)
This helps redistributors test against their distro Python w/o spurious errors.
1 parent f47b587 commit dc696c2

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

tests/unit/test_self_check_outdated.py

+1
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,7 @@ def test_get_statefile_name_known_values(key: str, expected: str) -> None:
3838
@freeze_time("1970-01-02T11:00:00Z")
3939
@patch("pip._internal.self_outdated_check._self_version_check_logic")
4040
@patch("pip._internal.self_outdated_check.SelfCheckState")
41+
@patch("pip._internal.self_outdated_check.check_externally_managed", new=lambda: None)
4142
def test_pip_self_version_check_calls_underlying_implementation(
4243
mocked_state: Mock, mocked_function: Mock, tmpdir: Path
4344
) -> None:

0 commit comments

Comments
 (0)