From: Ɓukasz Langa Date: Wed, 19 Oct 2011 00:40:48 +0000 (+0200) Subject: A ricochet from fixing #10680: http://http://example.com/ no longer reports X-Git-Tag: v3.3.0a1~1136 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=318909b297241f9c46f25815e12d05136da57fa9;p=thirdparty%2FPython%2Fcpython.git A ricochet from fixing #10680: http://http://example.com/ no longer reports 'nonnumeric port'. It parses to a host name of "http:" which is equivalent to http:80. --- diff --git a/Lib/packaging/tests/test_pypi_simple.py b/Lib/packaging/tests/test_pypi_simple.py index bd50d01b3991..59204c4b8df9 100644 --- a/Lib/packaging/tests/test_pypi_simple.py +++ b/Lib/packaging/tests/test_pypi_simple.py @@ -87,7 +87,7 @@ class SimpleCrawlerTestCase(TempdirManager, try: crawler._open_url(url) except Exception as v: - self.assertIn('nonnumeric port', str(v)) + self.assertIn('Download error', str(v)) # issue #160 url = server.full_address