@@ -140,7 +140,9 @@ def get_credential(system, username):
140140 assert auth .Resolver (config , auth .CredentialInput ()).username == "entered user"
141141
142142 assert re .search (
143- r"Error from keyring.+Traceback.+RuntimeError: fail!" , caplog .text , re .DOTALL
143+ r"Error getting username from keyring.+Traceback.+RuntimeError: fail!" ,
144+ caplog .text ,
145+ re .DOTALL ,
144146 )
145147
146148
@@ -159,7 +161,9 @@ def get_password(system, username):
159161 assert auth .Resolver (config , auth .CredentialInput ()).password == "entered pw"
160162
161163 assert re .search (
162- r"Error from keyring.+Traceback.+RuntimeError: fail!" , caplog .text , re .DOTALL
164+ r"Error getting password from keyring.+Traceback.+RuntimeError: fail!" ,
165+ caplog .text ,
166+ re .DOTALL ,
163167 )
164168
165169
@@ -184,7 +188,7 @@ def get_credential(system, username):
184188 assert auth .Resolver (config , auth .CredentialInput ()).username == "entered user"
185189
186190 assert re .search (
187- r"Error from keyring"
191+ r"Error getting username from keyring"
188192 r".+Traceback"
189193 r".+KeyError: 'HOME'"
190194 r".+KeyError: 'uid not found: 999'" ,
@@ -206,7 +210,7 @@ def get_password(system, username):
206210 assert auth .Resolver (config , auth .CredentialInput ()).password == "entered pw"
207211
208212 assert re .search (
209- r"Error from keyring"
213+ r"Error getting password from keyring"
210214 r".+Traceback"
211215 r".+KeyError: 'HOME'"
212216 r".+KeyError: 'uid not found: 999'" ,
0 commit comments