Skip to content

Commit 2397867

Browse files
authored
Use fixturenames instead of funcargnames (#98)
Use fixturenames instead of funcargnames
2 parents 078d68d + 9bc5ecc commit 2397867

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

testing/conftest.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -83,16 +83,16 @@ def getsocketspec(config=None):
8383

8484

8585
def pytest_generate_tests(metafunc):
86-
if 'gw' in metafunc.funcargnames:
87-
assert 'anypython' not in metafunc.funcargnames, "need combine?"
86+
if 'gw' in metafunc.fixturenames:
87+
assert 'anypython' not in metafunc.fixturenames, "need combine?"
8888
if hasattr(metafunc.function, 'gwtypes'):
8989
gwtypes = metafunc.function.gwtypes
9090
elif hasattr(metafunc.cls, 'gwtype'):
9191
gwtypes = [metafunc.cls.gwtype]
9292
else:
9393
gwtypes = ['popen', 'socket', 'ssh', 'proxy']
9494
metafunc.parametrize("gw", gwtypes, indirect=True)
95-
elif 'anypython' in metafunc.funcargnames:
95+
elif 'anypython' in metafunc.fixturenames:
9696
metafunc.parametrize(
9797
"anypython", indirect=True, argvalues=(
9898
'sys.executable', 'python2.7', 'pypy', 'jython',

0 commit comments

Comments
 (0)