[issue45332] Decimal test and benchmark are broken
Serhiy Storchaka
report at bugs.python.org
Thu Sep 30 11:26:12 EDT 2021
New submission from Serhiy Storchaka <storchaka+cpython at gmail.com>:
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
----------
components: Demos and Tools
messages: 402964
nosy: serhiy.storchaka, vstinner
priority: normal
severity: normal
status: open
title: Decimal test and benchmark are broken
type: behavior
versions: Python 3.10, Python 3.11
_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue45332>
_______________________________________
More information about the Python-bugs-list
mailing list