()
| 50 | |
| 51 | |
| 52 | def test_ensure_bytes(): |
| 53 | data = [b"1", "1", memoryview(b"1"), bytearray(b"1"), array("B", b"1")] |
| 54 | for d in data: |
| 55 | result = ensure_bytes(d) |
| 56 | assert isinstance(result, bytes) |
| 57 | assert result == b"1" |
| 58 | |
| 59 | |
| 60 | def test_ensure_bytes_ndarray(): |
nothing calls this directly
no test coverage detected