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

Function test_get_xdg_dir_1

IPython/utils/tests/test_path.py:202–211  ·  view source on GitHub ↗

test_get_xdg_dir_1, check nonexistent xdg_dir

()

Source from the content-addressed store, hash-verified

200
201@with_environment
202def test_get_xdg_dir_1():
203 """test_get_xdg_dir_1, check nonexistent xdg_dir"""
204 reload(path)
205 path.get_home_dir = lambda : HOME_TEST_DIR
206 os.name = "posix"
207 sys.platform = "linux2"
208 env.pop('IPYTHON_DIR', None)
209 env.pop('IPYTHONDIR', None)
210 env.pop('XDG_CONFIG_HOME', None)
211 nt.assert_equal(path.get_xdg_dir(), None)
212
213@with_environment
214def test_get_xdg_dir_2():

Callers

nothing calls this directly

Calls 2

reloadFunction · 0.85
popMethod · 0.80

Tested by

no test coverage detected