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

Method check_raw

Lib/test/test_picklebuffer.py:99–103  ·  view source on GitHub ↗
(self, obj, equiv)

Source from the content-addressed store, hash-verified

97 # Tests for PickleBuffer.raw()
98
99 def check_raw(self, obj, equiv):
100 pb = PickleBuffer(obj)
101 with pb.raw() as m:
102 self.assertIsInstance(m, memoryview)
103 self.check_memoryview(m, equiv)
104
105 def test_raw(self):
106 for obj in (b"foo", bytearray(b"foo")):

Callers 2

test_rawMethod · 0.95
test_raw_ndarrayMethod · 0.95

Calls 3

check_memoryviewMethod · 0.95
rawMethod · 0.80
assertIsInstanceMethod · 0.80

Tested by

no test coverage detected