@pytest.fixture(scope='function')
def builder(request, pad):
    from lektor.builder import Builder
    out = tempfile.mkdtemp()
    builder = Builder(pad, out)
    def cleanup():
        try:
            shutil.rmtree(out)
        except (__HOLE__, IOError):
            pass
    request.addfinalizer(cleanup)
    return builder
dataset/ETHPy150Open lektor/lektor-archive/tests/conftest.py/builder