MCPcopy
hub / github.com/pex-tool/pex / test_rc_ignore

Function test_rc_ignore

tests/test_variables.py:177–183  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

175
176
177def test_rc_ignore():
178 # type: () -> None
179 with named_temporary_file(mode="w") as pexrc:
180 pexrc.write("HELLO=FORTYTWO")
181 pexrc.flush()
182 v = Variables(rc=pexrc.name, environ={"PEX_IGNORE_RCFILES": "True"})
183 assert "HELLO" not in v._environ
184
185
186def test_pex_vars_defaults_stripped():

Callers

nothing calls this directly

Calls 3

named_temporary_fileFunction · 0.90
VariablesClass · 0.90
writeMethod · 0.45

Tested by

no test coverage detected