mirror of
https://github.com/Hopiu/linkchecker.git
synced 2026-04-26 00:54:43 +00:00
Obfuscated IPs are only working on POSIX systems.
This commit is contained in:
parent
5bb222b1df
commit
085eb6e77a
2 changed files with 4 additions and 0 deletions
|
|
@ -145,6 +145,9 @@ class TestHttp (HttpServerTest):
|
|||
self.direct(url, resultlines, recursionlevel=1)
|
||||
|
||||
def obfuscate_test (self):
|
||||
import os
|
||||
if os.name != "posix":
|
||||
return
|
||||
host = "www.golem.de"
|
||||
ip = iputil.resolve_host(host).pop()
|
||||
url = u"http://%s/" % iputil.obfuscate_ip(ip)
|
||||
|
|
|
|||
|
|
@ -37,6 +37,7 @@ class TestNetwork (unittest.TestCase):
|
|||
ifc.getInterfaceList()
|
||||
|
||||
@need_network
|
||||
@need_posix
|
||||
def test_iputils (self):
|
||||
host = "www.golem.de"
|
||||
ips = iputil.resolve_host(host)
|
||||
|
|
|
|||
Loading…
Reference in a new issue