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

Method test_empty_path

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

Source from the content-addressed store, hash-verified

261 check('/a/b', '', sep, ['a', 'b'])
262
263 def test_empty_path(self):
264 # The empty path points to '.'
265 p = self.cls('')
266 self.assertEqual(str(p), '.')
267 # Special case for the empty path.
268 self._check_str('.', ('',))
269
270 def test_join_nested(self):
271 P = self.cls

Callers

nothing calls this directly

Calls 4

_check_strMethod · 0.95
strFunction · 0.85
clsMethod · 0.45
assertEqualMethod · 0.45

Tested by

no test coverage detected