raise HomeDirError if $HOME is specified, but not a writable dir
()
| 151 | @skip_win32_py38 |
| 152 | @with_environment |
| 153 | def 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 |
nothing calls this directly
no outgoing calls
no test coverage detected