File tree Expand file tree Collapse file tree 2 files changed +10
-13
lines changed Expand file tree Collapse file tree 2 files changed +10
-13
lines changed Original file line number Diff line number Diff line change @@ -107,17 +107,14 @@ def stop_twisted_greenlet():
107
107
108
108
def _pytest_pyfunc_call (pyfuncitem ):
109
109
testfunction = pyfuncitem .obj
110
- if pyfuncitem ._isyieldedfunction ():
111
- return testfunction (* pyfuncitem ._args )
110
+ funcargs = pyfuncitem .funcargs
111
+ if hasattr (pyfuncitem , "_fixtureinfo" ):
112
+ testargs = {}
113
+ for arg in pyfuncitem ._fixtureinfo .argnames :
114
+ testargs [arg ] = funcargs [arg ]
112
115
else :
113
- funcargs = pyfuncitem .funcargs
114
- if hasattr (pyfuncitem , "_fixtureinfo" ):
115
- testargs = {}
116
- for arg in pyfuncitem ._fixtureinfo .argnames :
117
- testargs [arg ] = funcargs [arg ]
118
- else :
119
- testargs = funcargs
120
- return testfunction (** testargs )
116
+ testargs = funcargs
117
+ return testfunction (** testargs )
121
118
122
119
123
120
def pytest_pyfunc_call (pyfuncitem ):
Original file line number Diff line number Diff line change 3
3
4
4
import pytest
5
5
6
- import pytest_twisted
7
-
8
6
9
7
ASYNC_AWAIT = sys .version_info >= (3 , 5 )
10
8
@@ -37,7 +35,9 @@ def format_run_result_output_for_assert(run_result):
37
35
def skip_if_reactor_not (request , expected_reactor ):
38
36
actual_reactor = request .config .getoption ("reactor" , "default" )
39
37
if actual_reactor != expected_reactor :
40
- pytest .skip ("reactor is {} not {}" .format (actual_reactor , expected_reactor ))
38
+ pytest .skip (
39
+ "reactor is {} not {}" .format (actual_reactor , expected_reactor ),
40
+ )
41
41
42
42
43
43
def skip_if_no_async_await ():
You can’t perform that action at this time.
0 commit comments