aboutsummaryrefslogtreecommitdiff
path: root/tests/float/inf_nan_arith.py
AgeCommit message (Collapse)Author
2020-09-11py/objfloat: Fix handling of negative float to power of nan.Damien George
Prior to this commit, pow(-2, float('nan')) would return (nan+nanj), or raise an exception on targets that don't support complex numbers. This is fixed to return simply nan, as CPython does. Signed-off-by: Damien George <damien@micropython.org>