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.
This commit is contained in:
Łukasz Langa 2011-10-19 02:40:48 +02:00
parent 6c4e1aed4b
commit 318909b297
1 changed files with 1 additions and 1 deletions

View File

@ -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