MCPcopy Create free account
hub / github.com/ipython/ipython / teardown_module

Function teardown_module

IPython/core/tests/test_paths.py:34–42  ·  view source on GitHub ↗

Teardown testenvironment for the module: - Remove dummy home dir tree

()

Source from the content-addressed store, hash-verified

32
33
34def teardown_module():
35 """Teardown testenvironment for the module:
36
37 - Remove dummy home dir tree
38 """
39 # Note: we remove the parent test dir, which is the root of all test
40 # subdirs we may have created. Use shutil instead of os.removedirs, so
41 # that non-empty directories are all recursively removed.
42 shutil.rmtree(TMP_TEST_DIR)
43
44def patch_get_home_dir(dirpath):
45 return patch.object(paths, 'get_home_dir', return_value=dirpath)

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected