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

Method test_str_common

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

Source from the content-addressed store, hash-verified

158 self.assertEqual(str(p), expected.replace('/', self.sep))
159
160 def test_str_common(self):
161 # Canonicalized paths roundtrip.
162 for pathstr in ('a', 'a/b', 'a/b/c', '/', '/a/b', '/a/b/c'):
163 self._check_str(pathstr, (pathstr,))
164 # Other tests for str() are in test_equivalences().
165
166 @needs_windows
167 def test_str_windows(self):

Callers

nothing calls this directly

Calls 1

_check_strMethod · 0.95

Tested by

no test coverage detected