-
Notifications
You must be signed in to change notification settings - Fork 0
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Alpine linux 3.15 on pypy3 test_52_numeric_ops_float fails #4
Comments
On Alpine Linux, on PYPY, ceil() and float() depend on something other than or more than Workaround (for test failing):
|
Implemented (more) correct answer in pyprotct/Proxy.pxi --- a/pyprotect/Proxy.pxi
+++ b/pyprotect/Proxy.pxi
@@ -108,10 +108,10 @@ cdef class Proxy(object):
return self.pvt_o.__trunc__()
def __floor__(self):
- return self.pvt_o.__floor__()
+ return math.floor(self.pvt_o)
def __ceil__(self):
- return self.pvt_o.__ceil__()
+ return math.ceil(self.pvt_o) Keeping this issue open. This is a surprising behavior in pypy3, and a behavior that specifically manifests on Alpine Linux (and not Ubuntu). This cannot be written off as "Python2 - will not fix". |
Not yet ivnestigated.
The same test does not fail on PY3 / PY2 / PYPY2 on ubuntu jammy
The text was updated successfully, but these errors were encountered: