@pytest.mark.usefixtures('break_getuser')
@pytest.mark.skipif(sys.platform.startswith('win'), reason='no os.getuid on windows')
def test_get_user_uid_not_found():
 from _pytest.tmpdir import get_user
 assert (get_user() is None)

@ pytest . mark . usefixtures ( 'break_getuser' ) @ pytest . mark . skipif ( sys . platform . startswith ( 'win' ) , reason = 'no os.getuid on windows' ) def test_get_user_uid_not_found ( ) : from _pytest . tmpdir import get_user assert ( get_user ( ) is None )
test that get_user() function works even if the current processs user id does not correspond to a valid user (e .