@@ -136,7 +136,7 @@ def sign(self, data: bytes) -> bytes:
136
136
137
137
try :
138
138
return self ._ctx .sign (data )
139
- except SSPIError as exc :
139
+ except SSPIError as exc : # pragna: no cover
140
140
raise GSSError (details = exc .strerror ) from None
141
141
142
142
def verify (self , data : bytes , sig : bytes ) -> bool :
@@ -159,7 +159,7 @@ class GSSClient(GSSBase):
159
159
160
160
def __init__ (self , host : str , store : Optional [BytesOrStrDict ],
161
161
delegate_creds : bool ):
162
- if store is not None :
162
+ if store is not None : # pragna: no cover
163
163
raise GSSError (details = 'GSS store not supported on Windows' )
164
164
165
165
super ().__init__ (host )
@@ -172,7 +172,7 @@ def __init__(self, host: str, store: Optional[BytesOrStrDict],
172
172
try :
173
173
self ._ctx = ClientAuth ('Kerberos' , targetspn = self ._host ,
174
174
scflags = flags )
175
- except SSPIError as exc :
175
+ except SSPIError as exc : # pragna: no cover
176
176
raise GSSError (1 , 1 , details = exc .strerror ) from None
177
177
178
178
self ._init_token = self .step (None )
@@ -185,7 +185,7 @@ class GSSServer(GSSBase):
185
185
_integrity_flag = ASC_RET_INTEGRITY
186
186
187
187
def __init__ (self , host : str , store : Optional [BytesOrStrDict ]):
188
- if store is not None :
188
+ if store is not None : # pragna: no cover
189
189
raise GSSError (details = 'GSS store not supported on Windows' )
190
190
191
191
super ().__init__ (host )
0 commit comments