Bytes shorter than the 15-byte header raise ValueError.
()
| 77 | |
| 78 | |
| 79 | def test_bytecode_decode_too_short(): |
| 80 | """Bytes shorter than the 15-byte header raise ValueError.""" |
| 81 | import pytest |
| 82 | |
| 83 | with pytest.raises(ValueError, match="too short"): |
| 84 | program_from_bytecode(b"XQBC") |
| 85 | |
| 86 | |
| 87 | def test_bytecode_decode_bad_version(): |
nothing calls this directly
no test coverage detected