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

Method test_bytes

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

Source from the content-addressed store, hash-verified

5017 entry.stat(follow_symlinks=False)
5018
5019 def test_bytes(self):
5020 self.create_file("file.txt")
5021
5022 path_bytes = os.fsencode(self.path)
5023 entries = list(os.scandir(path_bytes))
5024 self.assertEqual(len(entries), 1, entries)
5025 entry = entries[0]
5026
5027 self.assertEqual(entry.name, b'file.txt')
5028 self.assertEqual(entry.path,
5029 os.fsencode(os.path.join(self.path, 'file.txt')))
5030
5031 def test_bytes_like(self):
5032 self.create_file("file.txt")

Callers

nothing calls this directly

Calls 5

create_fileMethod · 0.95
listClass · 0.85
scandirMethod · 0.45
assertEqualMethod · 0.45
joinMethod · 0.45

Tested by

no test coverage detected