@contextmanager
def temp_directory():
    directory = tempfile.mkdtemp()
    try:
        yield directory
    finally:
        shutil.rmtree(directory)
Set the value of the progress bar
dataset/ETHPy150Open SimonSapin/Flask-FlatPages/tests/test_temp_directory.py/temp_directory--crossover with--dataset/ETHPy150Open ContinuumIO/ashiba/enaml/enaml/wx/wx_progress_bar.py/WxProgressBar.set_value