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

Method test_fspath_protocol

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

Source from the content-addressed store, hash-verified

5219 self.assertEqual(repr(entry), "<DirEntry 'file.txt'>")
5220
5221 def test_fspath_protocol(self):
5222 entry = self.create_file_entry()
5223 self.assertEqual(os.fspath(entry), os.path.join(self.path, 'file.txt'))
5224
5225 def test_fspath_protocol_bytes(self):
5226 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