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
Changing the order of the decorators, putting the @mock.patch as the outermost seems to solve the issue.
I have checked multiple versions of hypothesis, the newest version for which the code above works fine is 4.46.2, it's broken in 4.47.*.
The text was updated successfully, but these errors were encountered:
Following #3088 and #3095, I'm confident that - unfortunately! - we can't fix this on in Hypothesis; it's a more generic interaction between the behaviour of definition-time nested decorators and the self argument in bound methods.
Using
@given
,@example
and@mock.patch
on a test that is a method of aTestCase
class fails with:Code triggering the exception:
Full error:
Changing the order of the decorators, putting the
@mock.patch
as the outermost seems to solve the issue.I have checked multiple versions of hypothesis, the newest version for which the code above works fine is
4.46.2
, it's broken in4.47.*
.The text was updated successfully, but these errors were encountered: