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
I'm trying to write a test using AsyncMock object with a side_effect error that is then wrapped with tenacity.retry. In Python 3.10+, my tests work, but in Python 3.8 and Python 3.9 the side effect is not swallowed by retry. See below for a MRE.
I'm trying to write a test using AsyncMock object with a
side_effect
error that is then wrapped withtenacity.retry
. In Python 3.10+, my tests work, but in Python 3.8 and Python 3.9 the side effect is not swallowed byretry
. See below for a MRE.This passes on Python 3.10, Python 3.11, and Python 3.12 but fails on Python 3.8 and Python 3.9 for me.
traceback from Python 3.9:
The text was updated successfully, but these errors were encountered: