Skip to content

Commit 74b152a

Browse files
committed
fixes for py2
1 parent fe21efc commit 74b152a

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

pytest_twisted.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -256,7 +256,7 @@ def _pytest_fixture_setup(fixturedef, request, wrapper):
256256

257257
fixturedef.cached_result = (arg_value, request.param_index, None)
258258

259-
return arg_value
259+
defer.returnValue(arg_value)
260260

261261
# async_generator_deferreds = [
262262
# (arg, defer.ensureDeferred(g.coroutine.__anext__()))
@@ -388,8 +388,6 @@ def in_reactor(d, f, *args):
388388
# _instances.reactor, tear_it_down, deferred
389389
# )
390390

391-
return None
392-
393391

394392
@defer.inlineCallbacks
395393
def _pytest_pyfunc_call(pyfuncitem):

0 commit comments

Comments
 (0)