Commit bbea0f0
authored
fix: Hive catalog test failure on CPython 3.13.12 (#3043)
# 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
](https://docs.python.org/3.13/whatsnew/changelog.html#id3)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?
no1 parent 0124bf2 commit bbea0f0
1 file changed
+1
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1314 | 1314 | | |
1315 | 1315 | | |
1316 | 1316 | | |
| 1317 | + | |
1317 | 1318 | | |
1318 | | - | |
1319 | 1319 | | |
1320 | 1320 | | |
1321 | 1321 | | |
| |||
0 commit comments