MCPcopy Index your code
hub / github.com/RustPython/RustPython / make_clean_env

Function make_clean_env

Lib/test/support/__init__.py:3012–3019  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

3010
3011
3012def make_clean_env() -> dict[str, str]:
3013 clean_env = os.environ.copy()
3014 for k in clean_env.copy():
3015 if k.startswith("PYTHON"):
3016 clean_env.pop(k)
3017 clean_env.pop("FORCE_COLOR", None)
3018 clean_env.pop("NO_COLOR", None)
3019 return clean_env
3020
3021
3022WINDOWS_STATUS = {

Callers

nothing calls this directly

Calls 3

copyMethod · 0.45
startswithMethod · 0.45
popMethod · 0.45

Tested by

no test coverage detected