[New-bugs-announce] [issue8598] test/support: don't use localhost as IPv6 host name

STINNER Victor report at bugs.python.org
Sun May 2 11:58:08 CEST 2010

New submission from STINNER Victor <victor.stinner at haypocalc.com>:

TestIPv6Environment testcase of test_ftplib uses support.HOST as hostname, and HOST=localhost. Usually, localhost is the name of, but not always ::1. On Linux, the usual names for ::1 are ip6-localhost or ip6-loopback. My internet server provider DNS resolver does not always resolv "localhost" as ::1, sometimes it answer 3(NXDOMAIN). Anyway, the name should be resolved by the local DNS resolver, not depend on an external (ISP) DNS server.

The simplest solution is to use "::1" instead of localhost ;-)

components: Tests
messages: 104778
nosy: haypo
priority: normal
severity: normal
status: open
title: test/support: don't use localhost as IPv6 host name
versions: Python 2.7, Python 3.2

Python tracker <report at bugs.python.org>

More information about the New-bugs-announce mailing list