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.

Author vstinner
Recipients Dominik.Richter, dmi.baranov, ezio.melotti, neologix, python-dev, r.david.murray, vstinner
Date 2013-06-03.20:36:19
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1370291780.44.0.229477150163.issue18109@psf.upfronthosting.co.za>
In-reply-to
Content
test_logging is failing with a non-ASCII hostname because of the following error:

error: uncaptured python exception, closing channel <test.test_logging.TestSMTPServer listening localhost:0 at 0x7f09a0ef89b0> (<class 'UnicodeEncodeError'>:'ascii' codec can't encode character '\xe9' in position 6: ordinal not in range(128) [/home/haypo/prog/python/default/Lib/asyncore.py|read|83] [/home/haypo/prog/python/default/Lib/asyncore.py|handle_read_event|436] [/home/haypo/prog/python/default/Lib/asyncore.py|handle_accept|513] [/home/haypo/prog/python/default/Lib/test/test_logging.py|handle_accepted|746] [/home/haypo/prog/python/default/Lib/test/test_logging.py|__init__|692] [/home/haypo/prog/python/default/Lib/smtpd.py|push|276])

SMTPChannel.push() uses explicitly the ASCII encoding, whereas test_logging pass the FQDN to push().

I'm not interested to work on this issue. Please open a new issue if you consider important enough.

--

More tests are also failing with *undecodable* hostnames (ex: "aé€\udcff" with UTF-8 locale encoding): test_socket test_urllib test_urllib2 test_logging test_pydoc test_smtplib.

I fixed and closed the issue, even I still think that you should only use ASCII for your hostname ;-)
History
Date User Action Args
2013-06-03 20:36:20vstinnersetrecipients: + vstinner, ezio.melotti, r.david.murray, neologix, python-dev, dmi.baranov, Dominik.Richter
2013-06-03 20:36:20vstinnersetmessageid: <1370291780.44.0.229477150163.issue18109@psf.upfronthosting.co.za>
2013-06-03 20:36:20vstinnerlinkissue18109 messages
2013-06-03 20:36:19vstinnercreate