MCPcopy Index your code
hub / github.com/ipython/ipython / test_get_xdg_dir_3

Function test_get_xdg_dir_3

tests/test_path.py:252–263  ·  view source on GitHub ↗

test_get_xdg_dir_3, check xdg_dir not used on non-posix systems

(monkeypatch)

Source from the content-addressed store, hash-verified

250
251@with_environment
252def test_get_xdg_dir_3(monkeypatch):
253 """test_get_xdg_dir_3, check xdg_dir not used on non-posix systems"""
254 monkeypatch.setattr(path, "get_home_dir", lambda: HOME_TEST_DIR)
255 monkeypatch.setattr(os, "name", "nt")
256 monkeypatch.setattr(sys, "platform", "win32")
257 env.pop("IPYTHON_DIR", None)
258 env.pop("IPYTHONDIR", None)
259 env.pop("XDG_CONFIG_HOME", None)
260 cfgdir = os.path.join(path.get_home_dir(), ".config")
261 os.makedirs(cfgdir, exist_ok=True)
262
263 assert path.get_xdg_dir() is None
264
265
266def test_filefind():

Callers

nothing calls this directly

Calls 1

popMethod · 0.80

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…