Skip to content

test: add regression tests for system pip discovery#1881

Open
royy92 wants to merge 1 commit into
httpie:masterfrom
royy92:test/system-pip-discovery
Open

test: add regression tests for system pip discovery#1881
royy92 wants to merge 1 commit into
httpie:masterfrom
royy92:test/system-pip-discovery

Conversation

@royy92

@royy92 royy92 commented Jun 27, 2026

Copy link
Copy Markdown

What

Add regression tests for _discover_system_pip() covering the scenarios discussed in #1539.

Why

Issue #1539 discusses scenarios where _discover_system_pip() needs to correctly fall back to pip3 when pip is unavailable or not associated with Python 3.

These scenarios were not previously covered by unit tests.

How

  • Added tests/test_manager_compat.py.
  • Added a test covering the fallback to pip3 when pip is unavailable.
  • Added a test verifying that a Python 2 pip is skipped in favor of pip3.

Test

python -m pytest tests/test_manager_compat.py -q

Result:

Screenshot 2026-06-27 140535

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant