summaryrefslogtreecommitdiffstats
path: root/Python/structmember.c
diff options
context:
space:
mode:
authorSergey B Kirpichev <skirpichev@gmail.com>2024-09-17 17:16:15 (GMT)
committerGitHub <noreply@github.com>2024-09-17 17:16:15 (GMT)
commitf4dd4402108cc005d45acd4ca83c8530c36a93ca (patch)
tree2d069b74462b3d4ad85a7233b0cc91696f65686f /Python/structmember.c
parentf15fff3f13431385b64837a2a69bf68924195ec2 (diff)
downloadcpython-f4dd4402108cc005d45acd4ca83c8530c36a93ca.zip
cpython-f4dd4402108cc005d45acd4ca83c8530c36a93ca.tar.gz
cpython-f4dd4402108cc005d45acd4ca83c8530c36a93ca.tar.bz2
gh-123836: workaround fmod(x, y) bug on Windows (#124171)
Buildbot failure on Windows 10 with MSC v.1916 64 bit (AMD64): FAIL: testFmod (test.test_math.MathTests.testFmod) ---------------------------------------------------------------------- Traceback (most recent call last): File "D:\buildarea\3.x.bolen-windows10\build\Lib\test\test_math.py", line 605, in testFmod self.ftest('fmod(-10, 1)', math.fmod(-10, 1), -0.0) ~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "D:\buildarea\3.x.bolen-windows10\build\Lib\test\test_math.py", line 258, in ftest self.fail("{}: {}".format(name, failure)) ~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ AssertionError: fmod(-10, 1): expected -0.0, got 0.0 (zero has wrong sign) Here Windows loose sign of the result; if y is nonzero, the result should have the same sign as x. This amends commit 28aea5d07d.
Diffstat (limited to 'Python/structmember.c')
0 files changed, 0 insertions, 0 deletions