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
For example, with the int64 type we can fail with x = 9007199254740993, with integers() generating x - 1. I've not seen examples of anything other than x - 1 being generated.
The text was updated successfully, but these errors were encountered:
The return type of numpy.ceil is float64, just like math.ceil in Python 2. Apparently there is also an intermediate cast to float in the __ceil__ method of integer dtype values - for example x = 9007199254740993 = 2 ** 53 + 1, and np.ceil(x) == 9007199254740992.0. This is actually also the Python2 behaviour of math.ceil (which we work around in Hypothesis), so it's certainly not unprecedented!
I've added a comment to the upstream issue, but for us the best option is probably to use the Python 2 implementation on all versions for now.
Hi,
Just stumbled upon this by accident. Using hypothesis 3.68.0 and numpy 1.15.2:
For example, with the int64 type we can fail with
x = 9007199254740993, withintegers()generatingx - 1. I've not seen examples of anything other thanx - 1being generated.The text was updated successfully, but these errors were encountered: