Commit 7aa5766
committed
Fix: Correct ValueError message for invalid ABI version
The error message raised in `pybricksdev.compile.compile_file` when an
unsupported ABI version was provided incorrectly stated "mpy_version must be 5".
This has been corrected to "mpy_version must be 5 or 6" to accurately
reflect the supported ABI versions.
A new test case (`test_compile_file_invalid_abi`) has been added to
`tests/test_compile.py` to verify that the correct ValueError and
message are raised for invalid ABI versions.1 parent 22ef545 commit 7aa5766
2 files changed
+16
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
74 | 74 | | |
75 | 75 | | |
76 | 76 | | |
77 | | - | |
| 77 | + | |
78 | 78 | | |
79 | 79 | | |
80 | 80 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
31 | 31 | | |
32 | 32 | | |
33 | 33 | | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
0 commit comments