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

Function test_get_home_dir_5

IPython/utils/tests/test_path.py:153–158  ·  view source on GitHub ↗

raise HomeDirError if $HOME is specified, but not a writable dir

()

Source from the content-addressed store, hash-verified

151@skip_win32_py38
152@with_environment
153def test_get_home_dir_5():
154 """raise HomeDirError if $HOME is specified, but not a writable dir"""
155 env['HOME'] = abspath(HOME_TEST_DIR+'garbage')
156 # set os.name = posix, to prevent My Documents fallback on Windows
157 os.name = 'posix'
158 nt.assert_raises(path.HomeDirError, path.get_home_dir, True)
159
160# Should we stub wreg fully so we can run the test on all platforms?
161@skip_if_not_win32

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected