@pytest.fixture
def dbm_db(request):
    db = dbm.open(db_file, 'n')
    db.close()

    def fin():
        try:
            os.remove(db_file)
        except __HOLE__:
            pass
    request.addfinalizer(fin)
dataset/ETHPy150Open eleme/thriftpy/tests/test_tracking.py/dbm_db