@pytest.fixture()
def short_tmpdir():
 with tempfile.TemporaryDirectory() as tdir:
  (yield py.path.local(tdir))

@ pytest . fixture ( ) def short_tmpdir ( ) : with tempfile . TemporaryDirectory ( ) as tdir : ( yield py . path . local ( tdir ) )
a short temporary directory for a xdg_runtime_dir .