summaryrefslogtreecommitdiff
path: root/src/tox/tox_env/api.py
diff options
context:
space:
mode:
Diffstat (limited to 'src/tox/tox_env/api.py')
-rw-r--r--src/tox/tox_env/api.py20
1 files changed, 14 insertions, 6 deletions
diff --git a/src/tox/tox_env/api.py b/src/tox/tox_env/api.py
index 1ba40a17..e993f02f 100644
--- a/src/tox/tox_env/api.py
+++ b/src/tox/tox_env/api.py
@@ -117,21 +117,29 @@ class ToxEnv(ABC):
def default_pass_env(self) -> List[str]:
env = [
- "https_proxy",
- "http_proxy",
- "no_proxy",
+ "https_proxy", # HTTP proxy configuration
+ "http_proxy", # HTTP proxy configuration
+ "no_proxy", # HTTP proxy configuration
+ "LANG", # localication
+ "LANGUAGE", # localication
+ "CURL_CA_BUNDLE", # curl certificates
+ "SSL_CERT_FILE", # https certificates
+ "LD_LIBRARY_PATH", # location of libs
]
if sys.stdout.isatty(): # if we're on a interactive shell pass on the TERM
env.append("TERM")
if sys.platform == "win32": # pragma: win32 cover
env.extend(
[
- "TEMP",
- "TMP",
+ "TEMP", # temporary file location
+ "TMP", # temporary file location
+ "USERPROFILE", # needed for `os.path.expanduser()`
+ "PATHEXT", # needed for discovering executables
+ "MSYSTEM", # controls paths printed format
]
)
else: # pragma: win32 no cover
- env.append("TMPDIR")
+ env.append("TMPDIR") # temporary file location
return env
def setup(self) -> None: