]> git.ipfire.org Git - thirdparty/pdns.git/commitdiff
Call super().tearDownClass() if possible
authorOtto Moerbeek <otto.moerbeek@open-xchange.com>
Tue, 10 Feb 2026 14:23:39 +0000 (15:23 +0100)
committerOtto Moerbeek <otto.moerbeek@open-xchange.com>
Tue, 10 Feb 2026 14:23:39 +0000 (15:23 +0100)
Signed-off-by: Otto Moerbeek <otto.moerbeek@open-xchange.com>
regression-tests.recursor-dnssec/test_Cookies.py
regression-tests.recursor-dnssec/test_RecDnstap.py
regression-tests.recursor-dnssec/test_RoutingTag.py

index 2f1b0544c6ae2f599ec7b11a11d2436910147010..fdd6c8cf2c3f1ead2f2e9d0242bd5cf6304d206b 100644 (file)
@@ -47,10 +47,6 @@ packetcache:
 
         print("Launching tests..")
 
-    @classmethod
-    def tearDownClass(cls):
-        cls.tearDownRecursor()
-
     @classmethod
     def startResponders(cls):
         global cookieReactorRunning
index e67f944485846cedf94566f3b199a2452ec88171..82bf77a14aa09ca76c2fa2446600b93cea2e4e2f 100644 (file)
@@ -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:
index 34100114baa7ba524ae796954df55e8aa7b63e66..63d29211f516561e99c814ed0773862065c1fef2 100644 (file)
@@ -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'