Skip to content

Commit

Permalink
Patch out EXTERNALLY-MANAGED for self-check tests (#13179)
Browse files Browse the repository at this point in the history
This helps redistributors test against their distro Python w/o
spurious errors.
  • Loading branch information
ichard26 authored and sbidoul committed Feb 9, 2025
1 parent f47b587 commit dc696c2
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions tests/unit/test_self_check_outdated.py
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,7 @@ def test_get_statefile_name_known_values(key: str, expected: str) -> None:
@freeze_time("1970-01-02T11:00:00Z")
@patch("pip._internal.self_outdated_check._self_version_check_logic")
@patch("pip._internal.self_outdated_check.SelfCheckState")
@patch("pip._internal.self_outdated_check.check_externally_managed", new=lambda: None)
def test_pip_self_version_check_calls_underlying_implementation(
mocked_state: Mock, mocked_function: Mock, tmpdir: Path
) -> None:
Expand Down

0 comments on commit dc696c2

Please sign in to comment.