Skip to content

Commit 189fada

Browse files
committed
Replace removed getfuncargvalue by getfixturevalue
1 parent d62f6a3 commit 189fada

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

testing/conftest.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -133,7 +133,7 @@ def anypython(request):
133133
executable = None
134134
py.test.skip("no {} found".format(name))
135135
if "execmodel" in request.fixturenames and name != 'sys.executable':
136-
backend = request.getfuncargvalue("execmodel").backend
136+
backend = request.getfixturevalue("execmodel").backend
137137
if backend != "thread":
138138
pytest.xfail(
139139
"cannot run {!r} execmodel with bare {}".format(backend, name))
@@ -169,7 +169,7 @@ def gw(request, execmodel, group):
169169
gw.proxygw = proxygw
170170
assert pname in group
171171
elif request.param == "ssh":
172-
sshhost = request.getfuncargvalue('specssh').ssh
172+
sshhost = request.getfixturevalue('specssh').ssh
173173
# we don't use execmodel.backend here
174174
# but you can set it when specifying the ssh spec
175175
gw = group.makegateway("ssh={}//id=ssh".format(sshhost))

testing/test_serializer.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -116,12 +116,12 @@ def py3(request):
116116

117117
@pytest.fixture(params=['py2', 'py3'])
118118
def dump(request):
119-
return request.getfuncargvalue(request.param).dump
119+
return request.getfixturevalue(request.param).dump
120120

121121

122122
@pytest.fixture(params=['py2', 'py3'])
123123
def load(request):
124-
return request.getfuncargvalue(request.param).load
124+
return request.getfixturevalue(request.param).load
125125

126126

127127
simple_tests = [

0 commit comments

Comments
 (0)