Skip to content

test.test_decimal is failing when doing a local build on Ubuntu 20.04 #91839

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
AbhigyanBose opened this issue Apr 22, 2022 · 1 comment
Closed
Labels
type-bug An unexpected behavior, bug, or error

Comments

@AbhigyanBose
Copy link
Contributor

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:

  1. Use fresh install of Ubuntu 20.04 (64-bit).
  2. Install build-essential from apt.
  3. clone python from github,
  4. execute ./configure --with-pydebug
  5. execute make -s -j2
  6. 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

@AbhigyanBose AbhigyanBose added the type-bug An unexpected behavior, bug, or error label Apr 22, 2022
@JelleZijlstra
Copy link
Member

Duplicate of #91821

@JelleZijlstra JelleZijlstra marked this as a duplicate of #91821 Apr 22, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type-bug An unexpected behavior, bug, or error
Projects
None yet
Development

No branches or pull requests

2 participants