Skip to content

Commit

Permalink
Add workaround for pytest-dev/pluggy#358. Fixes #596.
Browse files Browse the repository at this point in the history
  • Loading branch information
jaraco committed Sep 17, 2022
1 parent 845e739 commit 1dc13e5
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 0 deletions.
5 changes: 5 additions & 0 deletions CHANGES.rst
@@ -1,3 +1,8 @@
v23.9.3
-------

* #596: Add workaround for devpi_client hook with wrapped implementation.

v23.9.2
-------

Expand Down
9 changes: 9 additions & 0 deletions keyring/devpi_client.py
Expand Up @@ -13,7 +13,16 @@
suppress = type('suppress', (contextlib.suppress, contextlib.ContextDecorator), {})


def restore_signature(func):
# workaround for pytest-dev/pluggy#358
def wrapper(url, username):
return func(url, username)

return wrapper


@hookimpl()
@restore_signature
@suppress(KeyringError)
def devpiclient_get_password(url, username):
"""
Expand Down

0 comments on commit 1dc13e5

Please sign in to comment.