MCPcopy Create free account
hub / github.com/ipython/ipython / test_get_home_dir_4

Function test_get_home_dir_4

IPython/utils/tests/test_path.py:144–149  ·  view source on GitHub ↗

get_home_dir() still works if $HOME is not set

()

Source from the content-addressed store, hash-verified

142
143@with_environment
144def test_get_home_dir_4():
145 """get_home_dir() still works if $HOME is not set"""
146
147 if 'HOME' in env: del env['HOME']
148 # this should still succeed, but we don't care what the answer is
149 home = path.get_home_dir(False)
150
151@skip_win32_py38
152@with_environment

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected