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

Method test_raw_non_contiguous

Lib/test/test_picklebuffer.py:136–143  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

134 pb.raw()
135
136 def test_raw_non_contiguous(self):
137 # 1-D
138 ndarray = import_helper.import_module("_testbuffer").ndarray
139 arr = ndarray(list(range(6)), shape=(6,), format='<i')[::2]
140 self.check_raw_non_contiguous(arr)
141 # 2-D
142 arr = ndarray(list(range(12)), shape=(4, 3), format='<i')[::2]
143 self.check_raw_non_contiguous(arr)
144
145 def test_raw_released(self):
146 pb = PickleBuffer(b"foo")

Callers

nothing calls this directly

Calls 3

listClass · 0.85
import_moduleMethod · 0.45

Tested by

no test coverage detected