MCPcopy Index your code
hub / github.com/RustPython/RustPython / _check_parse_path

Method _check_parse_path

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

Source from the content-addressed store, hash-verified

239 self.assertEqual(self.cls(p2), self.cls('b/c:/d'))
240
241 def _check_parse_path(self, raw_path, *expected):
242 sep = self.parser.sep
243 actual = self.cls._parse_path(raw_path.replace('/', sep))
244 self.assertEqual(actual, expected)
245 if altsep := self.parser.altsep:
246 actual = self.cls._parse_path(raw_path.replace('/', altsep))
247 self.assertEqual(actual, expected)
248
249 def test_parse_path_common(self):
250 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