From: Ishai Date: Fri, 14 Jan 2022 05:45:15 +0000 (-0800) Subject: Try to appease older unittest X-Git-Tag: v2.3.0rc1~157^2 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=refs%2Fpull%2F749%2Fhead;p=thirdparty%2Fdnspython.git Try to appease older unittest --- diff --git a/tests/test_resolver.py b/tests/test_resolver.py index 4a6bbb92..0f6a6384 100644 --- a/tests/test_resolver.py +++ b/tests/test_resolver.py @@ -653,7 +653,7 @@ class LiveResolverTests(unittest.TestCase): options = [dns.edns.ECSOption('1.1.1.1')] resolver.use_edns(True, options=options) resolver.resolve('dns.google.', 'A') - assert message_use_edns_mock.call_args.kwargs == {'options': options} + assert {'options': options} in message_use_edns_mock.call_args def testResolveNodataException(self): def bad():