Skip to content

Fix mock assertion in ICU recipe#3003

Merged
AndreMiras merged 1 commit into
kivy:developfrom
s-t-e-v-e-n-k:use-correct-mock-assertion
Apr 9, 2024
Merged

Fix mock assertion in ICU recipe#3003
AndreMiras merged 1 commit into
kivy:developfrom
s-t-e-v-e-n-k:use-correct-mock-assertion

Conversation

@s-t-e-v-e-n-k

@s-t-e-v-e-n-k s-t-e-v-e-n-k commented Apr 9, 2024

Copy link
Copy Markdown
Contributor

Python 3.12 now does not blindly call any methods on mocked objects, which masks issues. Correct the assertion of has_calls to assert_has_calls in the ICU recipe.

Fixes #3002

Python 3.12 now does not blindly any methods on mocked objects, which
masks issues. Correct the assertion of has_calls to assert_has_calls in
the ICU recipe.

Fixes kivy#3002

@AndreMiras AndreMiras left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, thanks for the fix and comprehensive commit message

@AndreMiras AndreMiras merged commit db4e736 into kivy:develop Apr 9, 2024
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.

Mock assertion issue with ICU recipe under Python 3.12

2 participants