Message402964
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 |
|
Date |
User |
Action |
Args |
2021-09-30 15:26:12 | serhiy.storchaka | set | recipients:
+ serhiy.storchaka, vstinner |
2021-09-30 15:26:12 | serhiy.storchaka | set | messageid: <1633015572.09.0.109680774964.issue45332@roundup.psfhosted.org> |
2021-09-30 15:26:12 | serhiy.storchaka | link | issue45332 messages |
2021-09-30 15:26:12 | serhiy.storchaka | create | |
|