You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The latest versions 2.11.0 and 1.34.0 don't support using freezegun in unit tests, e.g., in conjunction with google-cloud-datastore. It seems the following merge broke it: fix: Major refactoring of Polling, Retry and Timeout logic googleapis/python-api-core#462
Version 2.10.2, which is the last version before that merge, works fine.
From your stack trace, the code failed because of deadline exceeded. Can you try setting deadline to a larger value like 60*60 (hour), for example? In client lib function call, pass deadline arg.
@atulep - A one hour deadline is necessary for unit testing with the datastore emulator? Why doesn't this issue occur without freezegun?
@vchudnov-g - No, I pinned the version of python-api-core before the breaking commit referenced above. Obviously, it's not a permanent solution, but I was waiting and hoping maybe it would be fixed before in the near future.
Activity
jacobg commentedon Mar 8, 2023
@vam-google
atulep commentedon Apr 13, 2023
Hey @jacobg ,
From your stack trace, the code failed because of deadline exceeded. Can you try setting deadline to a larger value like
60*60(hour), for example? In client lib function call, passdeadlinearg.vchudnov-g commentedon Apr 24, 2023
Were you able to get this to work, @jacobg ?
jacobg commentedon Apr 25, 2023
@atulep - A one hour deadline is necessary for unit testing with the datastore emulator? Why doesn't this issue occur without freezegun?
@vchudnov-g - No, I pinned the version of python-api-core before the breaking commit referenced above. Obviously, it's not a permanent solution, but I was waiting and hoping maybe it would be fixed before in the near future.
vchudnov-g commentedon May 16, 2023
@jacobg To clarify, are you saying unpinning the version and passing the
deadlineargument did not work?parthea commentedon Jan 12, 2026
Transferring to google-cloud-python as the code for python-api-core will be migrated there in 1-3 weeks.
daniel-sanche commentedon May 28, 2026
This issue is being bulk closed due to inactivity. Please re-open if you think this still requires attention, and we'll take another look. Thanks!