From 7213b262b9c98fe6d522dbd23fd83bb9535b54c6 Mon Sep 17 00:00:00 2001 From: Tomas Illuminati Balbin Date: Mon, 20 Apr 2026 09:18:05 -0300 Subject: [PATCH] Update src/twisted/names/test/test_dns.py Co-authored-by: Adi Roiban CVE: CVE-2026-42304 Upstream-Status: Backport [https://github.com/twisted/twisted/commit/c75d44ed81b47f8086ed801cfcdb2568b0b32301] (cherry picked from commit c75d44ed81b47f8086ed801cfcdb2568b0b32301) Signed-off-by: Hetvi Thakar --- src/twisted/names/test/test_dns.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/twisted/names/test/test_dns.py b/src/twisted/names/test/test_dns.py index 9b27c4b3a..94aa4a802 100644 --- a/src/twisted/names/test/test_dns.py +++ b/src/twisted/names/test/test_dns.py @@ -389,9 +389,9 @@ class NameTests(unittest.TestCase): self.assertRaises( dns.DNSDecodeError, dns.Name().decode, - stream, - None, - context, + strio=stream, + length=None, + context=context, ) def test_decodeWithoutContextIsBackwardsCompatible(self):