shutil unable to remove folder in use on windows
Problem:
on Windows, shutil.rmtree(<path>)
throws an error as it cannot remove a file that is in use.
This causes problems in notebooks, esp. when loggers keep a file open.
This is used in: Dataset._delete_all(). and test_domain_update.py
Solution:
Remove logger handlers beforehand. !97
Edited by Ania Apolinarska