[issue8963] test_urllibnet failure

Antoine Pitrou report at bugs.python.org
Thu Jun 10 22:27:50 CEST 2010


Antoine Pitrou <pitrou at free.fr> added the comment:

Ok, so what it boils down to is the following behaviour:

>>> import locale, socket
>>> sock = socket.socket(socket.AF_INET, socket.SOCK_STREAM)
>>> locale.getlocale(locale.LC_TIME)
(None, None)
>>> sock.connect(("invalidhost", 80))
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
socket.gaierror: [Errno -2] Nom ou service inconnu
>>> locale.getlocale(locale.LC_TIME)
('fr_FR', 'UTF8')

----------
nosy: +loewis

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue8963>
_______________________________________


More information about the Python-bugs-list mailing list