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

Function setup_module

IPython/core/tests/test_paths.py:22–31  ·  view source on GitHub ↗

Setup testenvironment for the module: - Adds dummy home dir tree

()

Source from the content-addressed store, hash-verified

20IP_TEST_DIR = os.path.join(HOME_TEST_DIR,'.ipython')
21
22def setup_module():
23 """Setup testenvironment for the module:
24
25 - Adds dummy home dir tree
26 """
27 # Do not mask exceptions here. In particular, catching WindowsError is a
28 # problem because that exception is only defined on Windows...
29 os.makedirs(IP_TEST_DIR)
30 os.makedirs(os.path.join(XDG_TEST_DIR, 'ipython'))
31 os.makedirs(os.path.join(XDG_CACHE_DIR, 'ipython'))
32
33
34def teardown_module():

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected