mirror of
https://github.com/Hopiu/linkchecker.git
synced 2026-03-28 19:50:29 +00:00
fix dns test on windows systems
git-svn-id: https://linkchecker.svn.sourceforge.net/svnroot/linkchecker/trunk/linkchecker@1932 e7d03fd6-7b0d-0410-9947-9c21f3af8025
This commit is contained in:
parent
d238920739
commit
6a5fdb57c1
1 changed files with 8 additions and 3 deletions
|
|
@ -26,9 +26,14 @@ import linkcheck.dns.rdatatype
|
|||
import linkcheck.dns.rrset
|
||||
import linkcheck.dns.zone
|
||||
|
||||
_paths = ["linkcheck", "dns", "tests"]
|
||||
|
||||
def fname (name):
|
||||
return os.path.join("linkcheck", "dns", "tests", name)
|
||||
def fname (name, sep=None):
|
||||
args = tuple(_paths + [name])
|
||||
if sep is not None:
|
||||
return sep.join(args)
|
||||
else:
|
||||
return os.path.join(*args)
|
||||
|
||||
|
||||
example_text = """$TTL 3600
|
||||
|
|
@ -90,7 +95,7 @@ $ORIGIN example.
|
|||
"""
|
||||
|
||||
include_text = """$INCLUDE "%s"
|
||||
""" % fname("example")
|
||||
""" % fname("example", sep="/")
|
||||
|
||||
bad_directive_text = """$FOO bar
|
||||
$ORIGIN example.
|
||||
|
|
|
|||
Loading…
Reference in a new issue