Index: debuginfo-tests/dexter/dex/utils/WorkingDirectory.py =================================================================== --- debuginfo-tests/dexter/dex/utils/WorkingDirectory.py +++ debuginfo-tests/dexter/dex/utils/WorkingDirectory.py @@ -12,7 +12,7 @@ import time from dex.utils.Exceptions import Error - +from dex.utils.Warning import warn class WorkingDirectory(object): def __init__(self, context, *args, **kwargs): @@ -40,7 +40,8 @@ try: shutil.rmtree(self.path) return - except OSError as e: - exception = e + except OSError: time.sleep(0.1) - raise Error(exception) + + warn(self.context, '"{}" left in place (couldn\'t delete)\n'.format(self.path)) + return