Skip to content

Commit

Permalink
Remove superfluous error messages in tests.
Browse files Browse the repository at this point in the history
  • Loading branch information
jaraco committed Mar 23, 2024
1 parent cd6df9a commit 400f9dd
Showing 1 changed file with 2 additions and 9 deletions.
11 changes: 2 additions & 9 deletions tests/backends/test_kwallet.py
Original file line number Diff line number Diff line change
Expand Up @@ -56,16 +56,9 @@ def check_set_get(self, service, username, password):
# re-init keyring to force migration
self.keyring = keyring = self.init_keyring()
ret_password = keyring.get_password(service, username)
assert ret_password == "", (
f"Incorrect password for username: {username!r} "
f"on service: {service!r}. {ret_password!r} != ''",
)
assert ret_password == ""
ret_password = keyring.get_password('Python', username + '@' + service)
assert ret_password is None, (
f"Not 'None' password returned for username: {username!r} "
f"on service: {service!r}. {ret_password!r} is not None. Passwords from old "
"folder should be deleted during migration.",
)
assert ret_password is None


@pytest.mark.skipif(
Expand Down

0 comments on commit 400f9dd

Please sign in to comment.