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

Method _check_parse_path

Lib/test/test_pathlib/test_pathlib.py:238–244  ·  view source on GitHub ↗
(self, raw_path, *expected)

Source from the content-addressed store, hash-verified

236 self.assertEqual(self.cls(p2), self.cls('b/c:/d'))
237
238 def _check_parse_path(self, raw_path, *expected):
239 sep = self.parser.sep
240 actual = self.cls._parse_path(raw_path.replace('/', sep))
241 self.assertEqual(actual, expected)
242 if altsep := self.parser.altsep:
243 actual = self.cls._parse_path(raw_path.replace('/', altsep))
244 self.assertEqual(actual, expected)
245
246 def test_parse_path_common(self):
247 check = self._check_parse_path

Callers

nothing calls this directly

Calls 3

_parse_pathMethod · 0.80
replaceMethod · 0.45
assertEqualMethod · 0.45

Tested by

no test coverage detected