MCPcopy
hub / github.com/pytest-dev/pytest / test_homedir_not_exists

Function test_homedir_not_exists

testing/_py/test_local.py:1193–1197  ·  view source on GitHub ↗
(monkeypatch)

Source from the content-addressed store, hash-verified

1191
1192
1193def test_homedir_not_exists(monkeypatch):
1194 monkeypatch.delenv("HOME", raising=False)
1195 monkeypatch.delenv("HOMEDRIVE", raising=False)
1196 homedir = local._gethomedir()
1197 assert homedir is None
1198
1199
1200def test_samefile(tmpdir):

Callers

nothing calls this directly

Calls 2

delenvMethod · 0.80
_gethomedirMethod · 0.80

Tested by

no test coverage detected