mirror of
https://github.com/NLnetLabs/unbound.git
synced 2026-02-09 22:03:15 -05:00
- Fix unit test for python 3.7 new keyword 'async'.
git-svn-id: file:///svn/unbound/trunk@5069 be551aaa-1e26-0410-a405-d3ace91eadb9
This commit is contained in:
parent
299cc0c689
commit
37361a1d10
2 changed files with 6 additions and 5 deletions
|
|
@ -1,6 +1,7 @@
|
|||
24 January 2018: Wouter
|
||||
- Newer aclocal and libtoolize used for generating configure scripts,
|
||||
aclocal 1.16.1 and libtoolize 2.4.6.
|
||||
- Fix unit test for python 3.7 new keyword 'async'.
|
||||
|
||||
23 January 2018: Wouter
|
||||
- Patch from Manabu Sonoda with tls-ciphers and tls-ciphersuites
|
||||
|
|
|
|||
10
testdata/pylib.tdir/pylib.lookup.py
vendored
10
testdata/pylib.tdir/pylib.lookup.py
vendored
|
|
@ -12,7 +12,7 @@ qname = "www.example.com"
|
|||
qtype = unbound.RR_TYPE_A
|
||||
qclass = unbound.RR_CLASS_IN
|
||||
|
||||
def create_context(config_file="ub.lookup.conf", async=False):
|
||||
def create_context(config_file="ub.lookup.conf", asyncflag=False):
|
||||
"""
|
||||
Create an unbound context to use for testing.
|
||||
|
||||
|
|
@ -22,7 +22,7 @@ def create_context(config_file="ub.lookup.conf", async=False):
|
|||
if status != 0:
|
||||
print("read config failed with status: {}".format(status))
|
||||
sys.exit(1)
|
||||
ctx.set_async(async)
|
||||
ctx.set_async(asyncflag)
|
||||
return ctx
|
||||
|
||||
|
||||
|
|
@ -132,10 +132,10 @@ def test_ratelimit_bg_off(ctx):
|
|||
|
||||
|
||||
test_resolve(create_context())
|
||||
test_async_resolve(create_context(async=True))
|
||||
test_async_resolve(create_context(asyncflag=True))
|
||||
test_ratelimit_fg_on(create_context())
|
||||
test_ratelimit_fg_off(create_context())
|
||||
test_ratelimit_bg_on(create_context(async=True))
|
||||
test_ratelimit_bg_off(create_context(async=True))
|
||||
test_ratelimit_bg_on(create_context(asyncflag=True))
|
||||
test_ratelimit_bg_off(create_context(asyncflag=True))
|
||||
|
||||
sys.exit(0)
|
||||
|
|
|
|||
Loading…
Reference in a new issue