]> git.ipfire.org Git - thirdparty/bind9.git/commitdiff
Accommodate black 24.2.0
authorMichal Nowak <mnowak@isc.org>
Tue, 13 Feb 2024 15:48:31 +0000 (16:48 +0100)
committerMichal Nowak <mnowak@isc.org>
Wed, 14 Feb 2024 09:49:21 +0000 (10:49 +0100)
bin/tests/system/checkds/tests_checkds.py
bin/tests/system/isctest/instance.py
bin/tests/system/isctest/log.py
bin/tests/system/isctest/rndc.py

index b411282d361c1e87a8236230b8e3589a56b2082f..f369f2e3fb1a6d4ddbfb8a48e6e9aa2c6ba3600b 100755 (executable)
@@ -312,9 +312,11 @@ def dspublished_tests(checkds, addr):
         CheckDSTest(
             zone=f"bad.{checkds}.dspublish.ns6",
             logs_to_wait_for=(
-                "bad DS response from 10.53.0.6"
-                if checkds == "explicit"
-                else "error during parental-agents processing",
+                (
+                    "bad DS response from 10.53.0.6"
+                    if checkds == "explicit"
+                    else "error during parental-agents processing"
+                ),
             ),
             expected_parent_state="!DSPublish",
         ),
@@ -394,9 +396,11 @@ def dswithdrawn_tests(checkds, addr):
         CheckDSTest(
             zone=f"bad.{checkds}.dsremoved.ns6",
             logs_to_wait_for=(
-                "bad DS response from 10.53.0.6"
-                if checkds == "explicit"
-                else "error during parental-agents processing",
+                (
+                    "bad DS response from 10.53.0.6"
+                    if checkds == "explicit"
+                    else "error during parental-agents processing"
+                ),
             ),
             expected_parent_state="!DSRemoved",
         ),
index ede48c095c531e570e4530a3c50d23703d76ee9f..c559b0a6054981a20daf400744133debbbbe0297 100644 (file)
@@ -27,7 +27,6 @@ class NamedPorts(NamedTuple):
 
 
 class NamedInstance:
-
     """
     A class representing a `named` instance used in a system test.
 
index 8a382626c0baa3ed6d0222032f901a52f430b0c3..9f1b90ba25b24a8190025694348ca4d64c5390bd 100644 (file)
@@ -57,7 +57,6 @@ class LogFile:
 
 
 class WatchLog(abc.ABC):
-
     """
     Wait for a log message to appear in a text file.
 
@@ -294,19 +293,18 @@ class WatchLogFromHere(WatchLog):
 
 # pylint: disable=too-few-public-methods
 class RNDCExecutor(abc.ABC):
-
     """
     An interface which RNDC executors have to implement in order for the
     `NamedInstance` class to be able to use them.
     """
 
     @overload
-    def call(self, ip: str, port: int, command: str, timeout: int = 10) -> str:
-        ...
+    def call(self, ip: str, port: int, command: str, timeout: int = 10) -> str: ...
 
     @overload
-    def call(self, ip: str, port: int, command: List[str], timeout: int = 10) -> str:
-        ...
+    def call(
+        self, ip: str, port: int, command: List[str], timeout: int = 10
+    ) -> str: ...
 
     @abc.abstractmethod
     def call(
@@ -326,7 +324,6 @@ class RNDCException(Exception):
 
 
 class RNDCBinaryExecutor(RNDCExecutor):
-
     """
     An `RNDCExecutor` which sends RNDC commands to servers using the `rndc`
     binary.
@@ -342,12 +339,12 @@ class RNDCBinaryExecutor(RNDCExecutor):
         self._base_cmdline = [rndc_path, "-c", rndc_conf]
 
     @overload
-    def call(self, ip: str, port: int, command: str, timeout: int = 10) -> str:
-        ...
+    def call(self, ip: str, port: int, command: str, timeout: int = 10) -> str: ...
 
     @overload
-    def call(self, ip: str, port: int, command: List[str], timeout: int = 10) -> str:
-        ...
+    def call(
+        self, ip: str, port: int, command: List[str], timeout: int = 10
+    ) -> str: ...
 
     def call(
         self, ip: str, port: int, command: Union[str, List[str]], timeout: int = 10
index 3accc369dc0a6192d51aa92c5ba457ae119ab6c9..6e869ab316d63751e7155e74ff63983b3727dad8 100644 (file)
@@ -16,7 +16,6 @@ import subprocess
 
 # pylint: disable=too-few-public-methods
 class RNDCExecutor(abc.ABC):
-
     """
     An interface which RNDC executors have to implement in order for the
     `NamedInstance` class to be able to use them.
@@ -38,7 +37,6 @@ class RNDCException(Exception):
 
 
 class RNDCBinaryExecutor(RNDCExecutor):
-
     """
     An `RNDCExecutor` which sends RNDC commands to servers using the `rndc`
     binary.