@pytest.mark.usefixtures('break_getuser')
@pytest.mark.skipif(sys.platform.startswith('win'), reason='no os.getuid on windows')
def test_tmpdir_fallback_uid_not_found(testdir):
 testdir.makepyfile('\n        import pytest\n        def test_some(tmpdir):\n            assert tmpdir.isdir()\n    ')
 reprec = testdir.inline_run()
 reprec.assertoutcome(passed=1)

@ pytest . mark . usefixtures ( 'break_getuser' ) @ pytest . mark . skipif ( sys . platform . startswith ( 'win' ) , reason = 'no os.getuid on windows' ) def test_tmpdir_fallback_uid_not_found ( testdir ) : testdir . makepyfile ( '\n        import pytest\n        def test_some(tmpdir):\n            assert tmpdir.isdir()\n    ' ) reprec = testdir . inline_run ( ) reprec . assertoutcome ( passed = 1 )
test that tmpdir works even if the current processs user id does not correspond to a valid user .