MCPcopy Index your code
hub / github.com/python/cpython / test_fspath_common

Method test_fspath_common

Lib/test/test_pathlib/test_pathlib.py:311–315  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

309 self.assertEqual(eval(inner), p.as_posix())
310
311 def test_fspath_common(self):
312 P = self.cls
313 p = P('a/b')
314 self._check_str(p.__fspath__(), ('a/b',))
315 self._check_str(os.fspath(p), ('a/b',))
316
317 def test_bytes(self):
318 P = self.cls

Callers

nothing calls this directly

Calls 3

_check_strMethod · 0.95
PClass · 0.70
__fspath__Method · 0.45

Tested by

no test coverage detected