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

Method test_sysfind

testing/_py/test_local.py:849–856  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

847 assert b.fnmatch(pattern)
848
849 def test_sysfind(self):
850 name = (sys.platform == "win32" and "cmd") or "test"
851 x = local.sysfind(name)
852 assert x.check(file=1)
853 assert local.sysfind("jaksdkasldqwe") is None
854 assert local.sysfind(name, paths=[]) is None
855 x2 = local.sysfind(name, paths=[x.dirpath()])
856 assert x2 == x
857
858 def test_fspath_protocol_other_class(self, fake_fspath_obj):
859 # py.path is always absolute

Callers

nothing calls this directly

Calls 3

sysfindMethod · 0.80
dirpathMethod · 0.80
checkMethod · 0.45

Tested by

no test coverage detected