8 Commits

Author SHA1 Message Date
CPython Developers
09d74336fa Update fraction,test_numeric_tower from CPython 3.12.4 2024-07-29 19:53:44 +09:00
dvermd
fd98ab2084 Update fractions to CPython 3.11.5 2023-10-01 07:06:11 +02:00
Noah
f38d8af12b Fix __reduce_ex__ and unskip tests 2021-02-08 12:36:54 -06:00
Noah
15984fca6f Remove leftover comment 2020-11-14 22:06:29 -06:00
carbotaniuman
ace2cb8f2f Fix edge cases in mod and complex division 2020-11-11 14:33:07 -06:00
Minho Heo
6032b54666 Fix negative ** fraction to returns complex value
Fix #1986 which (-2) ** 0.5 yields NaN.

Result:

RustPython gives
`float.__rpow__(0.5, -2)
(0.00000000000000008659560562354934+1.4142135623730951j)`

CPython 3.85 gives
`>>> float.__rpow__(0.5, -2)
(8.659560562354934e-17+1.4142135623730951j)`
2020-07-30 02:27:38 +09:00
Ben Lewis
1e0152d309 Mark failing test_fractions.py tests as expected failures. 2020-07-14 20:25:01 +12:00
Ben Lewis
5dc2ebc556 Add fractions.py and test_fractions.py from CPython 3.8.3. 2020-07-14 19:05:21 +12:00