()
| 154 | |
| 155 | |
| 156 | def test_readonly_buffer(): |
| 157 | buf = m.BufferReadOnly(0x64) |
| 158 | view = memoryview(buf) |
| 159 | assert view[0] == 0x64 |
| 160 | assert view.readonly |
| 161 | with pytest.raises(TypeError): |
| 162 | view[0] = 0 |
| 163 | |
| 164 | |
| 165 | def test_selective_readonly_buffer(): |
nothing calls this directly
no test coverage detected