Digital-Sapphire/PyUpdater

Temporary test directories not removed

dennisvang opened this issue · 0 comments

def cleandir():
new_path = tempfile.mkdtemp()
os.chdir(new_path)

From tempfile docs:

The user of mkdtemp() is responsible for deleting the temporary directory and its contents when done with it.

On Windows 10, running the tests leaves AppData\Local\Temp full of empty "tmp*" directories.