(self, obj, equiv)
| 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")): |
no test coverage detected