Skip to content

Fix: Correct ValueError message for invalid ABI version#108

Merged
dlech merged 1 commit into
pybricks:masterfrom
1e0ng:fix-compile-error-message
May 30, 2025
Merged

Fix: Correct ValueError message for invalid ABI version#108
dlech merged 1 commit into
pybricks:masterfrom
1e0ng:fix-compile-error-message

Conversation

@1e0ng

@1e0ng 1e0ng commented May 29, 2025

Copy link
Copy Markdown
Contributor

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.

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.
@dlech dlech merged commit e0c8dad into pybricks:master May 30, 2025
7 checks passed
@dlech

dlech commented May 30, 2025

Copy link
Copy Markdown
Member

Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants