This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author serhiy.storchaka
Recipients serhiy.storchaka, vstinner
Date 2021-09-30.15:26:12
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1633015572.09.0.109680774964.issue45332@roundup.psfhosted.org>
In-reply-to
Content
The test and the benchmark for the decimal module are broken in 3.10+.

$ ./python Modules/_decimal/tests/deccheck.py
Traceback (most recent call last):
  File "/home/serhiy/py/cpython/Modules/_decimal/tests/deccheck.py", line 50, in <module>
    from test.support import import_fresh_module
    ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
ImportError: cannot import name 'import_fresh_module' from 'test.support' (/home/serhiy/py/cpython/Lib/test/support/__init__.py)

$ ./python Modules/_decimal/tests/bench.py
Traceback (most recent call last):
  File "/home/serhiy/py/cpython/Modules/_decimal/tests/bench.py", line 11, in <module>
    from test.support import import_fresh_module
    ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
ImportError: cannot import name 'import_fresh_module' from 'test.support' (/home/serhiy/py/cpython/Lib/test/support/__init__.py)

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/serhiy/py/cpython/Modules/_decimal/tests/bench.py", line 13, in <module>
    from test.test_support import import_fresh_module
    ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
ImportError: cannot import name 'import_fresh_module' from 'test.test_support' (/home/serhiy/py/cpython/Lib/test/test_support.py)


Modules/_decimal/tests/bench.py
History
Date User Action Args
2021-09-30 15:26:12serhiy.storchakasetrecipients: + serhiy.storchaka, vstinner
2021-09-30 15:26:12serhiy.storchakasetmessageid: <1633015572.09.0.109680774964.issue45332@roundup.psfhosted.org>
2021-09-30 15:26:12serhiy.storchakalinkissue45332 messages
2021-09-30 15:26:12serhiy.storchakacreate