MCPcopy Index your code
hub / github.com/python/cpython / unset

Method unset

Lib/test/support/os_helper.py:776–779  ·  view source on GitHub ↗

Unset one or more environment variables.

(self, envvar, /, *envvars)

Source from the content-addressed store, hash-verified

774 self[envvar] = value
775
776 def unset(self, envvar, /, *envvars):
777 """Unset one or more environment variables."""
778 for ev in (envvar, *envvars):
779 del self[ev]
780
781 def copy(self):
782 # We do what os.environ.copy() does.

Callers 15

wrapperFunction · 0.80
setUpMethod · 0.80
test_defaults_UTF8Method · 0.80
setUpMethod · 0.80
test_proxy_cgi_ignoreMethod · 0.80
_check_sysMethod · 0.80
run_pdb_scriptMethod · 0.80
test_readrc_homedirMethod · 0.80
test_stty_matchMethod · 0.80
test_fallbackMethod · 0.80

Calls

no outgoing calls

Tested by 15

wrapperFunction · 0.64
setUpMethod · 0.64
test_defaults_UTF8Method · 0.64
setUpMethod · 0.64
test_proxy_cgi_ignoreMethod · 0.64
_check_sysMethod · 0.64
run_pdb_scriptMethod · 0.64
test_readrc_homedirMethod · 0.64
test_stty_matchMethod · 0.64
test_fallbackMethod · 0.64