Pyenv在Fedora 36 Linux上成功编译了Python,但失败了测试

发布于 2025-02-12 02:49:54 字数 3137 浏览 3 评论 0原文

我正在使用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 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。
列表为空,暂无数据
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文