From: Otto Moerbeek Date: Tue, 10 Feb 2026 14:23:39 +0000 (+0100) Subject: Call super().tearDownClass() if possible X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=29051013c5aae88690d68deec70cd0105b8f63b8;p=thirdparty%2Fpdns.git Call super().tearDownClass() if possible Signed-off-by: Otto Moerbeek --- diff --git a/regression-tests.recursor-dnssec/test_Cookies.py b/regression-tests.recursor-dnssec/test_Cookies.py index 2f1b0544c6..fdd6c8cf2c 100644 --- a/regression-tests.recursor-dnssec/test_Cookies.py +++ b/regression-tests.recursor-dnssec/test_Cookies.py @@ -47,10 +47,6 @@ packetcache: print("Launching tests..") - @classmethod - def tearDownClass(cls): - cls.tearDownRecursor() - @classmethod def startResponders(cls): global cookieReactorRunning diff --git a/regression-tests.recursor-dnssec/test_RecDnstap.py b/regression-tests.recursor-dnssec/test_RecDnstap.py index e67f944485..82bf77a14a 100644 --- a/regression-tests.recursor-dnssec/test_RecDnstap.py +++ b/regression-tests.recursor-dnssec/test_RecDnstap.py @@ -266,9 +266,9 @@ cname 3600 IN CNAME a.example. @classmethod def tearDownClass(cls): - cls.tearDownRecursor() for listerner in DNSTapListeners: listerner.close() + super().tearDownClass() def getFirstDnstap(self): try: diff --git a/regression-tests.recursor-dnssec/test_RoutingTag.py b/regression-tests.recursor-dnssec/test_RoutingTag.py index 34100114ba..63d29211f5 100644 --- a/regression-tests.recursor-dnssec/test_RoutingTag.py +++ b/regression-tests.recursor-dnssec/test_RoutingTag.py @@ -83,8 +83,8 @@ ecs-add-for=0.0.0.0/0 @classmethod def tearDownClass(cls): - cls.tearDownRecursor() os.unlink('tagfile') + super().tearDownClass() class RoutingTagTest(RoutingTagTest): _confdir = 'RoutingTag'