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

Function test_get_xdg_dir_3

IPython/utils/tests/test_path.py:230–243  ·  view source on GitHub ↗

test_get_xdg_dir_3, check xdg_dir not used on OS X

()

Source from the content-addressed store, hash-verified

228
229@with_environment
230def test_get_xdg_dir_3():
231 """test_get_xdg_dir_3, check xdg_dir not used on OS X"""
232 reload(path)
233 path.get_home_dir = lambda : HOME_TEST_DIR
234 os.name = "posix"
235 sys.platform = "darwin"
236 env.pop('IPYTHON_DIR', None)
237 env.pop('IPYTHONDIR', None)
238 env.pop('XDG_CONFIG_HOME', None)
239 cfgdir=os.path.join(path.get_home_dir(), '.config')
240 if not os.path.exists(cfgdir):
241 os.makedirs(cfgdir)
242
243 nt.assert_equal(path.get_xdg_dir(), None)
244
245def test_filefind():
246 """Various tests for filefind"""

Callers

nothing calls this directly

Calls 2

reloadFunction · 0.85
popMethod · 0.80

Tested by

no test coverage detected