Skip to content

Commit 724be81

Browse files
committed
fix: Add positional arguments to the synchronous test function wrapper.
This fixes a compatibility issue with Hypothesis 6.39.0. Closes #302 Signed-off-by: Michael Seifert <[email protected]>
1 parent 357cddb commit 724be81

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

README.rst

+1
Original file line numberDiff line numberDiff line change
@@ -260,6 +260,7 @@ Changelog
260260
0.18.2 (Unreleased)
261261
~~~~~~~~~~~~~~~~~~~
262262
- Fix asyncio auto mode not marking static methods. `#295 <https://github.com/pytest-dev/pytest-asyncio/issues/295>`_
263+
- Fix a compatibility issue with Hypothesis 6.39.0. `#302 <https://github.com/pytest-dev/pytest-asyncio/issues/302>`_
263264

264265

265266
0.18.1 (22-02-10)

pytest_asyncio/plugin.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -432,8 +432,8 @@ def wrap_in_sync(
432432
func = raw_func
433433

434434
@functools.wraps(func)
435-
def inner(**kwargs):
436-
coro = func(**kwargs)
435+
def inner(*args, **kwargs):
436+
coro = func(*args, **kwargs)
437437
if not inspect.isawaitable(coro):
438438
pyfuncitem.warn(
439439
pytest.PytestWarning(

0 commit comments

Comments
 (0)