File tree Expand file tree Collapse file tree 2 files changed +3
-14
lines changed Expand file tree Collapse file tree 2 files changed +3
-14
lines changed Original file line number Diff line number Diff line change @@ -49,7 +49,7 @@ def article(author):
49
49
StepError ,
50
50
)
51
51
from .parsers import get_parser
52
- from .utils import get_args , get_request_fixture_names
52
+ from .utils import get_args
53
53
54
54
55
55
def get_step_fixture_name (name , type_ , encoding = None ):
@@ -312,7 +312,7 @@ def fin():
312
312
request ._fixture_defs [arg ] = old_fd
313
313
314
314
if add_fixturename :
315
- get_request_fixture_names ( request ) .remove (arg )
315
+ request . _pyfuncitem . _fixtureinfo . names_closure .remove (arg )
316
316
317
317
request .addfinalizer (fin )
318
318
@@ -321,4 +321,4 @@ def fin():
321
321
# inject fixture value in request cache
322
322
request ._fixture_defs [arg ] = fd
323
323
if add_fixturename :
324
- get_request_fixture_names ( request ) .append (arg )
324
+ request . _pyfuncitem . _fixtureinfo . names_closure .append (arg )
Original file line number Diff line number Diff line change @@ -25,17 +25,6 @@ def get_args(func):
25
25
return inspect .getargspec (func ).args
26
26
27
27
28
- def get_request_fixture_names (request ):
29
- """Get list of fixture names for the given FixtureRequest.
30
-
31
- Get the internal and mutable list of fixture names in the enclosing scope of
32
- the given request object.
33
-
34
- Compatibility with pytest 3.0.
35
- """
36
- return request ._pyfuncitem ._fixtureinfo .names_closure
37
-
38
-
39
28
def get_parametrize_markers_args (node ):
40
29
"""In pytest 3.6 new API to access markers has been introduced and it deprecated
41
30
MarkInfo objects.
You can’t perform that action at this time.
0 commit comments