Closed pschanely closed 7 months ago
Fascinating. (cc @Zac-HD for amusement) Because CrossHair applies different contracts to these functions (time can produce any float, monotonic can only produce increasing values), it balks when time.time is time.monotonic
(CrossHair intercepts calls via function identity)
Either way, we don't want this kind of advanced behavior when running under hypothesis. (in normal CrossHair, the example will be explained with a bit of code to artificially patch the time functions to reproduce the necessary values, but under hypothesis, I imagine the inputs will just fail to reproduce) I'm sure the random module will have similar issues. I'll investigate the best way to turn these off for the plugin!
Originally posted by @Zac-HD in https://github.com/HypothesisWorks/hypothesis/issues/3914#issuecomment-1987097328