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

Method test_release

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

Source from the content-addressed store, hash-verified

62
63 @unittest.expectedFailure # TODO: RUSTPYTHON
64 def test_release(self):
65 pb = PickleBuffer(b"foo")
66 pb.release()
67 with self.assertRaises(ValueError) as raises:
68 memoryview(pb)
69 self.assertIn("operation forbidden on released PickleBuffer object",
70 str(raises.exception))
71 # Idempotency
72 pb.release()
73
74 @unittest.expectedFailure # TODO: RUSTPYTHON
75 def test_cycle(self):

Callers

nothing calls this directly

Calls 4

strFunction · 0.85
assertInMethod · 0.80
releaseMethod · 0.45
assertRaisesMethod · 0.45

Tested by

no test coverage detected