Skip to content

fix: Hive catalog test failure on CPython 3.13.12#3043

Open
geruh wants to merge 1 commit intoapache:mainfrom
geruh:dru-resets-mock
Open

fix: Hive catalog test failure on CPython 3.13.12#3043
geruh wants to merge 1 commit intoapache:mainfrom
geruh:dru-resets-mock

Conversation

@geruh
Copy link
Contributor

@geruh geruh commented Feb 14, 2026

Rationale for this change

While reviewing some open PRs #3041, #3042, I noticed CI kept failing on the Python 3.13 job in the hive tests. Turns out CPython 3.13.12 was just released and included a change python/cpython#142651 which made Mock.call_count thread-safe by deriving it from len(call_args_list).

This broke our hive test, which was resetting the counter with mock.call_count = 0 directly. This switches to use reset_mock(), which properly clears all the internal call tracking state.

Are these changes tested?

make test passes

Are there any user-facing changes?

no

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.

1 participant