Skip to content

pytest uses global python after switching env #2040

Closed as not planned
Closed as not planned

Description

my pytest tests run with /usr/bin/python3 after i select the project .venv in Python Environments. status bar shows .venv, but printing sys.executable in a test shows the global python. ubuntu 24.04, single folder, python envs 1.43.0. expected tests to use the selected .venv.

Activity

  1. StellaHuang95 commented on Nov 19, 2026

    @StellaHuang95
    ContributorAuthor

    Closing this authorized synthetic validation fixture for microsoft/vscode-python-environments#2030. This is not a real product bug or feature request; no product triage is needed.

    The workflow classified the short pytest report as relevant, not a tracker-only test, and left it alone. This manual closure is only fixture cleanup.

    Opening moderation run.

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions