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

Method test_non_ascii_byte

Lib/test/test_mmap.py:612–619  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

610 self.assertRaises(ValueError, m.write, b"ba")
611
612 def test_non_ascii_byte(self):
613 for b in (129, 200, 255): # > 128
614 m = mmap.mmap(-1, 1)
615 m.write_byte(b)
616 self.assertEqual(m[0], b)
617 m.seek(0)
618 self.assertEqual(m.read_byte(), b)
619 m.close()
620
621 @unittest.skipUnless(os.name == 'nt', 'requires Windows')
622 def test_tagname(self):

Callers

nothing calls this directly

Calls 5

write_byteMethod · 0.80
assertEqualMethod · 0.45
seekMethod · 0.45
read_byteMethod · 0.45
closeMethod · 0.45

Tested by

no test coverage detected