Closed
Description
Bug report
Lib.test.test_decimal is failing with the following error when building locally on Ubuntu 20.04:
======================================================================
FAIL: test_from_tuple (test.test_decimal.CWhitebox.test_from_tuple)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/abhigyan/Documents/my-forks/cpython/Lib/test/test_decimal.py", line 5538, in test_from_tuple
self.assertEqual(str(c.create_decimal(x)), '-0E-1000007')
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
AssertionError: '-0E-1000026' != '-0E-1000007'
- -0E-1000026
? ^^
+ -0E-1000007
? ^^
Steps to recreate:
- Use fresh install of Ubuntu 20.04 (64-bit).
- Install
build-essential
from apt. - clone python from github,
- execute
./configure --with-pydebug
- execute
make -s -j2
- execute
./python -m test -v test_decimal -j2
Your environment
Ubuntu 20.04 fresh install followed by installing build-essential.
CPython versions tested on:
lastest version from github
Commit which causes the error:
bcf14ae
Testing to find commit:
Used git bisect to test commits using steps 4-6 as mentioned above in Steps to recreate (used make clean before each build).
Above issue does not arise in commit:
5e130a8