Pyenv在Fedora 36 Linux上成功编译了Python,但失败了测试
我正在使用pyenv
来编译和安装Python 3.10.5,我的用户在运行Fedora 36的硬件上为用户
提供了成功,但是当我运行python -m tests
时,我是python 我是获得多个故障...
== Tests result: FAILURE ==
392 tests OK.
11 tests failed:
test_cmd_line_script test_compileall test_distutils test_imp
test_import test_importlib test_inspect
test_multiprocessing_main_handling test_py_compile test_runpy
test_venv
24 tests skipped:
test_asdl_parser test_check_c_globals test_clinic test_curses
test_dbm_gnu test_dbm_ndbm test_devpoll test_gdb test_kqueue
test_msilib test_ossaudiodev test_smtpnet test_socketserver
test_startfile test_tix test_tk test_ttk_guionly test_urllib2net
test_urllibnet test_winconsoleio test_winreg test_winsound
test_xmlrpc_net test_zipfile64
Total duration: 26 min 52 sec
Tests result: FAILURE
我尝试删除〜/.pyenv
目录,然后从头开始重新启动。使用git
安装PENV,编译和安装Python pyenv install -v 3.10.5
,设置global
global 向新的python,然后重新运行具有相同失败结果的测试。
我尝试在虚拟机上执行相同的步骤,还运行了Fedora 36,在VM上,测试成功运行...
== Tests result: SUCCESS ==
403 tests OK.
24 tests skipped:
test_asdl_parser test_check_c_globals test_clinic test_curses
test_dbm_gnu test_dbm_ndbm test_devpoll test_gdb test_kqueue
test_msilib test_ossaudiodev test_smtpnet test_socketserver
test_startfile test_tix test_tk test_ttk_guionly test_urllib2net
test_urllibnet test_winconsoleio test_winreg test_winsound
test_xmlrpc_net test_zipfile64
Total duration: 27 min 25 sec
Tests result: SUCCESS
我看到了有关测试失败问题的相关帖子 - Python -M测试结果返回失败 - 但没有分辨率。
我试图了解测试结果的差异,如果要关注的话,以及如何修复。任何帮助将不胜感激!
I am using pyenv
to compile and install Python 3.10.5 for my user on hardware running Fedora 36.
Python compiles successfully, but when I run python -m tests
I'm getting multiple failures ...
== Tests result: FAILURE ==
392 tests OK.
11 tests failed:
test_cmd_line_script test_compileall test_distutils test_imp
test_import test_importlib test_inspect
test_multiprocessing_main_handling test_py_compile test_runpy
test_venv
24 tests skipped:
test_asdl_parser test_check_c_globals test_clinic test_curses
test_dbm_gnu test_dbm_ndbm test_devpoll test_gdb test_kqueue
test_msilib test_ossaudiodev test_smtpnet test_socketserver
test_startfile test_tix test_tk test_ttk_guionly test_urllib2net
test_urllibnet test_winconsoleio test_winreg test_winsound
test_xmlrpc_net test_zipfile64
Total duration: 26 min 52 sec
Tests result: FAILURE
I've tried deleting the ~/.pyenv
directory and starting again from scratch. Installing penv using git
, compiling and installing Python pyenv install -v 3.10.5
, setting global
to the new Python, and re-run the tests with the same failing results.
I tried performing the same steps on a virtual machine also running Fedora 36, and on the VM the tests run successfully ...
== Tests result: SUCCESS ==
403 tests OK.
24 tests skipped:
test_asdl_parser test_check_c_globals test_clinic test_curses
test_dbm_gnu test_dbm_ndbm test_devpoll test_gdb test_kqueue
test_msilib test_ossaudiodev test_smtpnet test_socketserver
test_startfile test_tix test_tk test_ttk_guionly test_urllib2net
test_urllibnet test_winconsoleio test_winreg test_winsound
test_xmlrpc_net test_zipfile64
Total duration: 27 min 25 sec
Tests result: SUCCESS
I saw a relevant post about test failure issue - python -m test results returns failure - but without resolution.
I'm trying to understand the difference in test results, if its something to be concerned about, and, if so, how to fix. Any help would be appreciated!
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论