Skip to content

Commit cad1b94

Browse files
authored
fix: Add positional arguments to the synchronous test function wrapper. (#303)
This fixes a compatibility issue with Hypothesis 6.39.0. Closes #302 Signed-off-by: Michael Seifert <m.seifert@digitalernachschub.de>
1 parent 357cddb commit cad1b94

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

README.rst

Lines changed: 1 addition & 0 deletions
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

Lines changed: 2 additions & 2 deletions
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)