Skip to content

Commit ee97014

Browse files
committed
return not defer.returnValue()
1 parent 23ba220 commit ee97014

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

pytest_twisted.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -335,7 +335,7 @@ def _async_pytest_fixture_setup(fixturedef, request, mark):
335335

336336
fixturedef.cached_result = (arg_value, fixturedef.cache_key(request), None)
337337

338-
defer.returnValue(arg_value)
338+
return arg_value
339339

340340

341341
@defer.inlineCallbacks
@@ -421,7 +421,7 @@ def _async_pytest_pyfunc_call(pyfuncitem, f, kwargs):
421421
# TODO: maybe deprecate this
422422
result = yield f(**kwargs)
423423

424-
defer.returnValue(result)
424+
return result
425425

426426

427427
@pytest.fixture(scope="session", autouse=True)

0 commit comments

Comments
 (0)