more compat issues (Logger.warn -> Logger.warning)

test-3.13.0-alpha.2
sebres 2023-12-12 14:27:24 +01:00
parent 337a519cb2
commit 7e88c9be8d
1 changed files with 2 additions and 2 deletions

View File

@ -296,7 +296,7 @@ def initTests(opts):
# precache all invalid ip's (TEST-NET-1, ..., TEST-NET-3 according to RFC 5737):
c = DNSUtils.CACHE_ipToName
c.clear = lambda: logSys.warn('clear CACHE_ipToName is disabled in test suite')
c.clear = lambda: logSys.warning('clear CACHE_ipToName is disabled in test suite')
# increase max count and max time (too many entries, long time testing):
c.setOptions(maxCount=10000, maxTime=5*60)
for i in range(256):
@ -314,7 +314,7 @@ def initTests(opts):
c.set('8.8.4.4', 'dns.google')
# precache all dns to ip's used in test cases:
c = DNSUtils.CACHE_nameToIp
c.clear = lambda: logSys.warn('clear CACHE_nameToIp is disabled in test suite')
c.clear = lambda: logSys.warning('clear CACHE_nameToIp is disabled in test suite')
for i in (
('999.999.999.999', set()),
('abcdef.abcdef', set()),