We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b567ce8 commit 6d5afd6Copy full SHA for 6d5afd6
tests/conftest.py
@@ -30,7 +30,9 @@ def github_port(worker_id):
30
def mock_env(mocker):
31
"""Clear unwanted environment variables"""
32
# Anything that starts with RH_ or GITHUB_ or PIP
33
- prefixes = ["GITHUB_", "RH_", "PIP_"]
+ # Also clear HATCH_ENV_ACTIVE to prevent hatch 1.16+ from inheriting
34
+ # the parent environment when running hatch version in subprocesses
35
+ prefixes = ["GITHUB_", "RH_", "PIP_", "HATCH_ENV"]
36
env = os.environ.copy()
37
for key in list(env):
38
for prefix in prefixes:
0 commit comments