-
-
Notifications
You must be signed in to change notification settings - Fork 34.2k
Closed as not planned
Labels
extension-modulesC modules in the Modules dirC modules in the Modules dirtype-bugAn unexpected behavior, bug, or errorAn unexpected behavior, bug, or error
Description
Bug report
Bug description:
Not really sure whether this is intentional but couldn't grep anything relevant: while experimenting with testing whether pure Python fallbacks work the same as C accelerators, I've noticed that _xxtestfuzz crashes immediately if _elementtree accelerator isn't available:
$ ./python -c 'import _xxtestfuzz; _xxtestfuzz.run("")'
ModuleNotFoundError: No module named '_elementtree'
Aborted (core dumped)
$ ./python -m test -w test_xxtestfuzz
Using random seed: 484602538
0:00:00 load avg: 1.58 Run 1 test sequentially
0:00:00 load avg: 1.58 [1/1] test_xxtestfuzz
ModuleNotFoundError: No module named '_elementtree'
Fatal Python error: Aborted
Current thread 0x00007f46647ce740 (most recent call first):
File "/home/mgorny/git/cpython/Lib/test/test_xxtestfuzz.py", line 13 in test_sample_input_smoke_test
File "/home/mgorny/git/cpython/Lib/unittest/case.py", line 606 in _callTestMethod
File "/home/mgorny/git/cpython/Lib/unittest/case.py", line 651 in run
File "/home/mgorny/git/cpython/Lib/unittest/case.py", line 707 in __call__
File "/home/mgorny/git/cpython/Lib/unittest/suite.py", line 122 in run
File "/home/mgorny/git/cpython/Lib/unittest/suite.py", line 84 in __call__
File "/home/mgorny/git/cpython/Lib/unittest/suite.py", line 122 in run
File "/home/mgorny/git/cpython/Lib/unittest/suite.py", line 84 in __call__
File "/home/mgorny/git/cpython/Lib/test/libregrtest/testresult.py", line 146 in run
File "/home/mgorny/git/cpython/Lib/test/libregrtest/single.py", line 57 in _run_suite
File "/home/mgorny/git/cpython/Lib/test/libregrtest/single.py", line 37 in run_unittest
File "/home/mgorny/git/cpython/Lib/test/libregrtest/single.py", line 135 in test_func
File "/home/mgorny/git/cpython/Lib/test/libregrtest/single.py", line 91 in regrtest_runner
File "/home/mgorny/git/cpython/Lib/test/libregrtest/single.py", line 138 in _load_run_test
File "/home/mgorny/git/cpython/Lib/test/libregrtest/single.py", line 181 in _runtest_env_changed_exc
File "/home/mgorny/git/cpython/Lib/test/libregrtest/single.py", line 281 in _runtest
File "/home/mgorny/git/cpython/Lib/test/libregrtest/single.py", line 310 in run_single_test
File "/home/mgorny/git/cpython/Lib/test/libregrtest/main.py", line 355 in run_test
File "/home/mgorny/git/cpython/Lib/test/libregrtest/main.py", line 389 in run_tests_sequentially
File "/home/mgorny/git/cpython/Lib/test/libregrtest/main.py", line 533 in _run_tests
File "/home/mgorny/git/cpython/Lib/test/libregrtest/main.py", line 568 in run_tests
File "/home/mgorny/git/cpython/Lib/test/libregrtest/main.py", line 731 in main
File "/home/mgorny/git/cpython/Lib/test/libregrtest/main.py", line 739 in main
File "/home/mgorny/git/cpython/Lib/test/__main__.py", line 2 in <module>
File "<frozen runpy>", line 88 in _run_code
File "<frozen runpy>", line 198 in _run_module_as_main
Extension modules: _testinternalcapi, _xxtestfuzz (total: 2)
Aborted (core dumped)
To reproduce:
printf '*disabled*\n_elementtree\n' > Modules/Setup.local
./configure
make -j$(nproc)
./python -m test -w test_xxtestfuzz
CPython versions tested on:
3.13, CPython main branch
Operating systems tested on:
Linux
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
extension-modulesC modules in the Modules dirC modules in the Modules dirtype-bugAn unexpected behavior, bug, or errorAn unexpected behavior, bug, or error

