From: Michał Kępień Date: Thu, 21 May 2026 09:52:56 +0000 (+0200) Subject: Remove workarounds for dnspython < 2.7.0 X-Git-Url: http://git.ipfire.org/gitweb/index.cgi?a=commitdiff_plain;h=fb4fc513c96a88f0e9e102c2124d2a1f820a09c2;p=thirdparty%2Fbind9.git Remove workarounds for dnspython < 2.7.0 dnspython 2.7.0 is now required to run the BIND 9 system test suite. Drop the workarounds for older dnspython versions as they are now redundant. (cherry picked from commit c9ceb191e8e45c461b8f03e853bef0d9f0eb403f) --- diff --git a/bin/tests/system/resend_loop/ans3/ans.py b/bin/tests/system/resend_loop/ans3/ans.py index 94f986c8e79..1378dd7ea52 100644 --- a/bin/tests/system/resend_loop/ans3/ans.py +++ b/bin/tests/system/resend_loop/ans3/ans.py @@ -32,12 +32,8 @@ def _get_cookie(qctx: QueryContext): for o in qctx.query.options: if o.otype == dns.edns.OptionType.COOKIE: cookie = o - try: - if len(cookie.server) == 0: - cookie.server = b"\x11\x22\x33\x44\x55\x66\x77\x88" - except AttributeError: # dnspython<2.7.0 compat - if len(o.data) == 8: - cookie.data *= 2 + if len(cookie.server) == 0: + cookie.server = b"\x11\x22\x33\x44\x55\x66\x77\x88" return cookie