Teardown testenvironment for the module: - Remove tempdir - restore sys.path
()
| 55 | sys.path = [TMP_TEST_DIR] |
| 56 | |
| 57 | def teardown_module(): |
| 58 | """Teardown testenvironment for the module: |
| 59 | |
| 60 | - Remove tempdir |
| 61 | - restore sys.path |
| 62 | """ |
| 63 | # Note: we remove the parent test dir, which is the root of all test |
| 64 | # subdirs we may have created. Use shutil instead of os.removedirs, so |
| 65 | # that non-empty directories are all recursively removed. |
| 66 | shutil.rmtree(TMP_TEST_DIR) |
| 67 | sys.path = old_syspath |
| 68 | |
| 69 | def test_tempdir(): |
| 70 | """ |
nothing calls this directly
no outgoing calls
no test coverage detected