Skip to content

Commit

Permalink
fix: Add positional arguments to the synchronous test function wrapper.
Browse files Browse the repository at this point in the history
This fixes a compatibility issue with Hypothesis 6.39.0.

Closes pytest-dev#302

Signed-off-by: Michael Seifert <[email protected]>
  • Loading branch information
seifertm committed Mar 3, 2022
1 parent 357cddb commit 724be81
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
1 change: 1 addition & 0 deletions README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -260,6 +260,7 @@ Changelog
0.18.2 (Unreleased)
~~~~~~~~~~~~~~~~~~~
- Fix asyncio auto mode not marking static methods. `#295 <https://github.com/pytest-dev/pytest-asyncio/issues/295>`_
- Fix a compatibility issue with Hypothesis 6.39.0. `#302 <https://github.com/pytest-dev/pytest-asyncio/issues/302>`_


0.18.1 (22-02-10)
Expand Down
4 changes: 2 additions & 2 deletions pytest_asyncio/plugin.py
Original file line number Diff line number Diff line change
Expand Up @@ -432,8 +432,8 @@ def wrap_in_sync(
func = raw_func

@functools.wraps(func)
def inner(**kwargs):
coro = func(**kwargs)
def inner(*args, **kwargs):
coro = func(*args, **kwargs)
if not inspect.isawaitable(coro):
pyfuncitem.warn(
pytest.PytestWarning(
Expand Down

0 comments on commit 724be81

Please sign in to comment.