Fix coverage slipups in SSH agent socket provider implementations
Marco Ricci

Marco Ricci commited on 2026-01-24 22:18:05
Zeige 2 geänderte Dateien mit 4 Einfügungen und 2 Löschungen.

... ...
@@ -857,7 +857,7 @@ class Feature(str, enum.Enum):
857 857
 
858 858
     @_feature_test_function
859 859
     @staticmethod
860
-    def _test_ssh_key() -> bool:
860
+    def _test_ssh_key() -> bool:  # pragma: no cover [external]
861 861
         """Return true if [`_types.Feature.SSH_KEY`][] is currently supported.
862 862
 
863 863
         We test this by attempting to construct an SSH agent client,
... ...
@@ -522,7 +522,9 @@ class WindowsNamedPipeHandle:
522 522
         finally:
523 523
             CloseHandle(wait_event)
524 524
 
525
-    def named_pipe_name(self) -> str:
525
+    def named_pipe_name(
526
+        self,
527
+    ) -> str:  # pragma: unless the-annoying-os no cover
526 528
         """Return the named pipe name this socket is connected to."""
527 529
         return self._name
528 530
 
529 531