Improve coverage

This commit is contained in:
Bruno Oliveira 2019-03-06 19:01:27 -03:00
parent 47bd1688ed
commit 148e6a30c8
1 changed files with 1 additions and 1 deletions

View File

@ -209,7 +209,7 @@ def _test_pytest_function(pyfuncitem):
_pdb = pytestPDB._init_pdb()
testfunction = pyfuncitem.obj
pyfuncitem.obj = _pdb.runcall
if "func" in pyfuncitem._fixtureinfo.argnames:
if "func" in pyfuncitem._fixtureinfo.argnames: # noqa
raise ValueError("--trace can't be used with a fixture named func!")
pyfuncitem.funcargs["func"] = testfunction
new_list = list(pyfuncitem._fixtureinfo.argnames)