(env=None)
| 36 | |
| 37 | |
| 38 | def remove_tmp_dirs(env=None): |
| 39 | if env is None: |
| 40 | env = os.environ |
| 41 | |
| 42 | global _tmp_roots |
| 43 | |
| 44 | for x in _tmp_roots: |
| 45 | logger.debug('Removing tmp dir %s', x) |
| 46 | shutil.rmtree(x, ignore_errors=True) |
| 47 | |
| 48 | _tmp_roots = [] |
| 49 | |
| 50 | revert_tmp_dir(env) |
| 51 | |
| 52 | |
| 53 | def revert_tmp_dir(env=None): |
nothing calls this directly
no test coverage detected