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

Method test_sysfind_in_currentdir

testing/_py/test_local.py:1276–1281  ·  view source on GitHub ↗
(self, path1)

Source from the content-addressed store, hash-verified

1274 assert t1 == str(path1) + "\\dir\\a_path"
1275
1276 def test_sysfind_in_currentdir(self, path1):
1277 cmd = local.sysfind("cmd")
1278 root = cmd.new(dirname="", basename="") # c:\ in most installations
1279 with root.as_cwd():
1280 x = local.sysfind(cmd.relto(root))
1281 assert x.check(file=1)
1282
1283 def test_fnmatch_file_abspath_posix_pattern_on_win32(self, tmpdir):
1284 # path-matching patterns might contain a posix path separator '/'

Callers

nothing calls this directly

Calls 5

sysfindMethod · 0.80
newMethod · 0.80
as_cwdMethod · 0.80
reltoMethod · 0.45
checkMethod · 0.45

Tested by

no test coverage detected