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

Method test_delitem

Lib/test/test_memoryview.py:176–183  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

174 self.assertEqual(sys.getrefcount(b), oldrefcount)
175
176 def test_delitem(self):
177 for tp in self._types:
178 b = tp(self._source)
179 m = self._view(b)
180 with self.assertRaises(TypeError):
181 del m[1]
182 with self.assertRaises(TypeError):
183 del m[1:4]
184
185 def test_tobytes(self):
186 for tp in self._types:

Callers

nothing calls this directly

Calls 2

_viewMethod · 0.45
assertRaisesMethod · 0.45

Tested by

no test coverage detected