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

Method test_relto_not_relative

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

Source from the content-addressed store, hash-verified

165 assert curdir.bestrelpath("hello") == "hello"
166
167 def test_relto_not_relative(self, path1):
168 l1 = path1.join("bcde")
169 l2 = path1.join("b")
170 assert not l1.relto(l2)
171 assert not l2.relto(l1)
172
173 def test_listdir(self, path1):
174 p = path1.listdir()

Callers

nothing calls this directly

Calls 2

joinMethod · 0.80
reltoMethod · 0.45

Tested by

no test coverage detected