Uh oh!
There was an error while loading. Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork 34k
Closed
Closed
Copy link
Labels
3.13bugs and security fixesbugs and security fixes3.14bugs and security fixesbugs and security fixesOS-netbsdtestsTests in the Lib/test dirTests in the Lib/test dirtype-bugAn unexpected behavior, bug, or errorAn unexpected behavior, bug, or error
Description
Bug report
Bug description:
home$ ./python -m test test_math -m test_fma_zero_resultUsingrandomseed: 41913272910:00:00loadavg: 0.57Run1testsequentiallyinasingleprocess0:00:00loadavg: 0.57 [1/1] test_mathtesttest_mathfailed--Traceback (mostrecentcalllast): File"/home/blue/cpython/Lib/test/test_math.py", line2773, intest_fma_zero_resultself.assertIsNegativeZero(math.fma(x-y, x+y, -z)) ~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^File"/home/blue/cpython/Lib/test/test_math.py", line2876, inassertIsNegativeZeroself.assertTrue( ~~~~~~~~~~~~~~~^value==0andmath.copysign(1, value) <0, ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^msg="Expected a negative zero, got{!r}".format(value) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ) ^AssertionError: Falseisnottrue : Expectedanegativezero, got0.0test_mathfailed (1failure) ==Testsresult: FAILURE==1testfailed: test_mathTotalduration: 358msTotaltests: run=1 (filtered) failures=1Totaltestfiles: run=1/1 (filtered) failed=1Result: FAILUREhome$OS: NetBSD 10.0
CPython versions tested on:
CPython main branch
Operating systems tested on:
Other
Linked PRs
Metadata
Metadata
Assignees
Labels
3.13bugs and security fixesbugs and security fixes3.14bugs and security fixesbugs and security fixesOS-netbsdtestsTests in the Lib/test dirTests in the Lib/test dirtype-bugAn unexpected behavior, bug, or errorAn unexpected behavior, bug, or error