Uh oh!
There was an error while loading.Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork34k
Open
Description
Bug report
Bug description:
test_truediv hasthe following check:
# Just for fun.foriinrange(100):self.check_div(complex(random(),random()),complex(random(),random()))
wherecheck_div(x, y) checks that(x * y) / y is"close" tox.
This recentlyfailed onAMD64 Arch Linux Usan Function with:
./python -m test test_complex -m test_truediv --randseed 1627284292It fails with1e-09 for the first random number and1 for the rest.
Looks like a test bug but it might be better if a float/complex expert takes a look around here.@skirpichev, is this interesting for you?
CPython versions tested on:
CPython main branch
Operating systems tested on:
Linux