This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

classification
Title: 21 tests fail when run on an IPv6-only host
Type: behavior Stage: patch review
Components: Tests Versions: Python 3.9, Python 3.8, Python 3.7
process
Status: open Resolution:
Dependencies: Superseder:
Assigned To: gregory.p.smith Nosy List: gregory.p.smith, vstinner
Priority: normal Keywords: patch

Created on 2019-08-20 22:41 by gregory.p.smith, last changed 2022-04-11 14:59 by admin.

Pull Requests
URL Status Linked Edit
PR 26225 open gregory.p.smith, 2021-05-19 01:32
Messages (4)
msg350039 - (view) Author: Gregory P. Smith (gregory.p.smith) * (Python committer) Date: 2019-08-20 22:41
21 tests failed:
    test_asynchat test_asyncore test_docxmlrpc test_eintr test_epoll
    test_ftplib test_httplib test_imaplib
    test_multiprocessing_forkserver test_multiprocessing_spawn
    test_nntplib test_os test_poplib test_robotparser test_smtplib
    test_socket test_ssl test_support test_telnetlib
    test_urllib2_localnet test_wsgiref

This is a rollup tracking issue.  I've got an IPv6-only future buildbot host with which to run an diagnose these for fixes.  Of note there is no IPv4 localhost.

If there are larger problems I may spawn child bugs for specific issues off of this one.  (I already filed separate issues about 5 other tests that hang rather than fail)
msg350059 - (view) Author: STINNER Victor (vstinner) * (Python committer) Date: 2019-08-21 10:00
How do you configure a Linux box to disable IPv4? At least, disable IPv4 localhost?
msg350063 - (view) Author: STINNER Victor (vstinner) * (Python committer) Date: 2019-08-21 10:53
>  (I already filed separate issues about 5 other tests that hang rather than fail)

Maybe use this issue as a meta-issue for IPv6-only issues? I saw:

* bpo-37895: test_logging hangs on an IPv6-only host
* bpo-37896: test_multiprocessing_fork hangs on an IPv6-only host
* bpo-37897: test_asyncio hangs on an IPv6-only host
* bpo-37898: test_httpservers hangs on an IPv6-only host
* bpo-37899: test_xmlrpc hangs on an IPv6-only host
msg415841 - (view) Author: Gregory P. Smith (gregory.p.smith) * (Python committer) Date: 2022-03-23 00:04
Here's how I created an IPv6-only host: https://gist.github.com/gpshead/f4f394593674e5f7a58e9424b4dba989
History
Date User Action Args
2022-04-11 14:59:19adminsetgithub: 82082
2022-03-23 00:04:55gregory.p.smithsetmessages: + msg415841
2021-05-19 01:32:22gregory.p.smithsetkeywords: + patch
stage: needs patch -> patch review
pull_requests: + pull_request24842
2019-08-21 10:53:08vstinnersetmessages: + msg350063
2019-08-21 10:00:57vstinnersetmessages: + msg350059
2019-08-21 01:57:28xtreaksetnosy: + vstinner
2019-08-20 22:41:23gregory.p.smithcreate