@with_environment
def test_get_home_dir_5():
 env['HOME'] = abspath((HOME_TEST_DIR + 'garbage'))
 os.name = 'posix'
 nt.assert_raises(path.HomeDirError, path.get_home_dir, True)

@ with_environment def test_get_home_dir_5 ( ) : env [ 'HOME' ] = abspath ( ( HOME_TEST_DIR + 'garbage' ) ) os . name = 'posix' nt . assert_raises ( path . HomeDirError , path . get_home_dir , True )
raise homedirerror if $home is specified .