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
fromhypothesisimport*fromhypothesisimportstrategiesasstclassA:
@given(st.integers())deff(self, n):
passa=A()
a.f() # worksa.f.hypothesis.fuzz_one_input(b"\x01") # fails with `TypeError: missing a required argument: 'self'`
HypothesisHandle.inner_test is a reference to the underlying A.f.__func__, so _get_fuzz_target doesn't know about the required self arg. We probably need to thread "you are an instance method, pass this additional arg when calling" into HypothesisHandle somehow.
fwiw I've worked around this locally, so no rush to fix. Just logging for whenever we get to it.
The text was updated successfully, but these errors were encountered:
HypothesisHandle.inner_test
is a reference to the underlyingA.f.__func__
, so_get_fuzz_target
doesn't know about the requiredself
arg. We probably need to thread "you are an instance method, pass this additional arg when calling" intoHypothesisHandle
somehow.fwiw I've worked around this locally, so no rush to fix. Just logging for whenever we get to it.
The text was updated successfully, but these errors were encountered: