MCPcopy Index your code
hub / github.com/pytest-dev/pytest / test_isimportable

Function test_isimportable

testing/_py/test_local.py:1171–1184  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

1169
1170
1171def test_isimportable():
1172 try:
1173 from py.path import isimportable # py vendored version
1174 except ImportError:
1175 from py._path.local import isimportable # py library
1176
1177 assert not isimportable("")
1178 assert isimportable("x")
1179 assert isimportable("x1")
1180 assert isimportable("x_1")
1181 assert isimportable("_")
1182 assert isimportable("_1")
1183 assert not isimportable("x-1")
1184 assert not isimportable("x:1")
1185
1186
1187def test_homedir_from_HOME(monkeypatch):

Callers

nothing calls this directly

Calls 1

isimportableFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…