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

Method test_bytearray

Lib/test/test_crossinterp.py:902–907  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

900 ])
901
902 def test_bytearray(self):
903 # bytearray is special because it unmarshals to bytes, not bytearray.
904 self.assert_roundtrip_equal([
905 bytearray(),
906 bytearray(b'hello world'),
907 ], expecttype=bytes)
908
909 def test_compound_immutable_builtin_objects(self):
910 self.assert_roundtrip_equal([

Callers

nothing calls this directly

Calls 1

Tested by

no test coverage detected