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

Method test_fspath_protocol

Lib/test/test_os/test_os.py:4945–4947  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

4943 self.assertEqual(repr(entry), "<DirEntry 'file.txt'>")
4944
4945 def test_fspath_protocol(self):
4946 entry = self.create_file_entry()
4947 self.assertEqual(os.fspath(entry), os.path.join(self.path, 'file.txt'))
4948
4949 def test_fspath_protocol_bytes(self):
4950 bytes_filename = os.fsencode('bytesfile.txt')

Callers

nothing calls this directly

Calls 3

create_file_entryMethod · 0.95
assertEqualMethod · 0.45
joinMethod · 0.45

Tested by

no test coverage detected