Skip to content

Commit f1848c1

Browse files
committed
Minor coverage tweaks
1 parent 2fa354d commit f1848c1

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

asyncssh/crypto/cipher.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@
3535

3636
try:
3737
import cryptography.hazmat.decrepit.ciphers.algorithms as _decrepit_algs
38-
except ImportError:
38+
except ImportError: # pragma: no cover
3939
_decrepit_algs = None
4040

4141

asyncssh/gss_win32.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -136,7 +136,7 @@ def sign(self, data: bytes) -> bytes:
136136

137137
try:
138138
return self._ctx.sign(data)
139-
except SSPIError as exc:
139+
except SSPIError as exc: # pragna: no cover
140140
raise GSSError(details=exc.strerror) from None
141141

142142
def verify(self, data: bytes, sig: bytes) -> bool:
@@ -159,7 +159,7 @@ class GSSClient(GSSBase):
159159

160160
def __init__(self, host: str, store: Optional[BytesOrStrDict],
161161
delegate_creds: bool):
162-
if store is not None:
162+
if store is not None: # pragna: no cover
163163
raise GSSError(details='GSS store not supported on Windows')
164164

165165
super().__init__(host)
@@ -172,7 +172,7 @@ def __init__(self, host: str, store: Optional[BytesOrStrDict],
172172
try:
173173
self._ctx = ClientAuth('Kerberos', targetspn=self._host,
174174
scflags=flags)
175-
except SSPIError as exc:
175+
except SSPIError as exc: # pragna: no cover
176176
raise GSSError(1, 1, details=exc.strerror) from None
177177

178178
self._init_token = self.step(None)
@@ -185,7 +185,7 @@ class GSSServer(GSSBase):
185185
_integrity_flag = ASC_RET_INTEGRITY
186186

187187
def __init__(self, host: str, store: Optional[BytesOrStrDict]):
188-
if store is not None:
188+
if store is not None: # pragna: no cover
189189
raise GSSError(details='GSS store not supported on Windows')
190190

191191
super().__init__(host)

0 commit comments

Comments
 (0)