Skip to content

Fix test_set_axis_range failure due to test data type mismatch#279

Merged
khaledhosny merged 1 commit intoharfbuzz:mainfrom
hosiet:pr-fix-test_set_axis_range
Feb 17, 2026
Merged

Fix test_set_axis_range failure due to test data type mismatch#279
khaledhosny merged 1 commit intoharfbuzz:mainfrom
hosiet:pr-fix-test_set_axis_range

Conversation

@hosiet
Copy link
Contributor

@hosiet hosiet commented Feb 17, 2026

The set_axis_range Cython method declares def_value as float|None, which in Cython does not accept int. Two test parametrizations passed int literals (100, 300) instead of floats (100.0, 300.0), causing TypeError in unit tests. The patch edits the test data to properly feed float values during unit tests.

This patch closes: #278

The set_axis_range Cython method declares def_value as float|None, which
in Cython does not accept int. Two test parametrizations passed int
literals (100, 300) instead of floats (100.0, 300.0), causing TypeError
in unit tests. The patch edits the test data to properly feed float
values.

This patch closes: harfbuzz#278
@khaledhosny khaledhosny merged commit 9c2595e into harfbuzz:main Feb 17, 2026
6 checks passed
@khaledhosny
Copy link
Collaborator

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.

test_set_axis_range test failure: Argument 'def_value' has incorrect type (expected float, got int) (patch included)

2 participants