Skip to content

Commit

Permalink
Fix coverage after race condition fix
Browse files Browse the repository at this point in the history
  • Loading branch information
ronf committed Nov 18, 2023
1 parent e7ba87c commit dd00628
Showing 1 changed file with 1 addition and 7 deletions.
8 changes: 1 addition & 7 deletions asyncssh/connection.py
Original file line number Diff line number Diff line change
Expand Up @@ -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"""

Expand Down Expand Up @@ -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:
Expand Down

0 comments on commit dd00628

Please sign in to comment.