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

Method test_fnmatch_file_abspath

testing/_py/test_local.py:843–847  ·  view source on GitHub ↗
(self, tmpdir)

Source from the content-addressed store, hash-verified

841 assert lst[0] == p1
842
843 def test_fnmatch_file_abspath(self, tmpdir):
844 b = tmpdir.join("a", "b")
845 assert b.fnmatch(os.sep.join("ab"))
846 pattern = os.sep.join([str(tmpdir), "*", "b"])
847 assert b.fnmatch(pattern)
848
849 def test_sysfind(self):
850 name = (sys.platform == "win32" and "cmd") or "test"

Callers

nothing calls this directly

Calls 2

joinMethod · 0.80
fnmatchMethod · 0.45

Tested by

no test coverage detected