From dd00628bfb08ca02851bbe1698eb18fcdccb6682 Mon Sep 17 00:00:00 2001 From: Ron Frederick Date: Sat, 18 Nov 2023 06:33:55 -0800 Subject: [PATCH] Fix coverage after race condition fix --- asyncssh/connection.py | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/asyncssh/connection.py b/asyncssh/connection.py index 4cf9517..2f814e9 100644 --- a/asyncssh/connection.py +++ b/asyncssh/connection.py @@ -318,12 +318,6 @@ def pipe_connection_lost(self, fd: int, self._conn.connection_lost(exc) - def is_closing(self) -> bool: - """Return whether the transport is closing or not""" - - assert self._transport is not None - return self._transport.is_closing() - def write(self, data: bytes) -> None: """Write data to this tunnel""" @@ -1415,7 +1409,7 @@ def _send(self, data: bytes) -> None: if self._transport: try: self._transport.write(data) - except BrokenPipeError: + except BrokenPipeError: # pragma: no cover pass def _send_version(self) -> None: