@with_environment
def test_get_home_dir_4():
 if ('HOME' in env):
  del env['HOME']
 home = path.get_home_dir(False)

@ with_environment def test_get_home_dir_4 ( ) : if ( 'HOME' in env ) : del env [ 'HOME' ] home = path . get_home_dir ( False )
get_home_dir() still works if $home is not set .