mirror of
https://github.com/Hopiu/linkchecker.git
synced 2026-03-17 06:20:27 +00:00
Without this patch, tests would fail on IPv6 hosts with this
mysterious error:
```
_______________________________________________________________________ TestHttpMisc.test_html ________________________________________________________________________
tests/checker/test_http_misc.py:30: in test_html
self.obfuscate_test()
tests/checker/test_http_misc.py:51: in obfuscate_test
url = u"http://%s/" % iputil.obfuscate_ip(ip)
linkcheck/network/iputil.py:290: in obfuscate_ip
raise ValueError('Invalid IP value %r' % ip)
E ValueError: Invalid IP value '2a02:2e0:3fe:1001:7777:772e:2:85'
```
As it turns out, the test host (`www.heise.de`) does have an IPv6
record and our tests pass on Travis only because they do not have a
working IPv6 stack. I happen to have IPv6 at home and tests are broken
here, so add a quick workaround so tests pass again.
Ideally, we would not have to deal with this hack and would handle
"obfuscation" correctly, but I have yet to figure out what that test
actually does before fixing it properly.
|
||
|---|---|---|
| .. | ||
| cache | ||
| checker | ||
| configuration | ||
| logger | ||
| __init__.py | ||
| cookies.txt | ||
| test_cgi.py | ||
| test_clamav.py | ||
| test_console.py | ||
| test_containers.py | ||
| test_cookies.py | ||
| test_decorators.py | ||
| test_dummy.py | ||
| test_filenames.py | ||
| test_fileutil.py | ||
| test_ftpparse.py | ||
| test_linkchecker.py | ||
| test_linkname.py | ||
| test_linkparser.py | ||
| test_mimeutil.py | ||
| test_network.py | ||
| test_parser.py | ||
| test_po.py | ||
| test_robotparser.py | ||
| test_robotstxt.py | ||
| test_strformat.py | ||
| test_updater.py | ||
| test_url.py | ||
| test_urlbuild.py | ||