Skip to content

Commit ff5e98c

Browse files
committed
Change noqa comment to pragma
1 parent b549438 commit ff5e98c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/_pytest/debugging.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -256,7 +256,7 @@ def _test_pytest_function(pyfuncitem):
256256
_pdb = pytestPDB._init_pdb()
257257
testfunction = pyfuncitem.obj
258258
pyfuncitem.obj = _pdb.runcall
259-
if "func" in pyfuncitem._fixtureinfo.argnames: # noqa
259+
if "func" in pyfuncitem._fixtureinfo.argnames: # pragma: no branch
260260
raise ValueError("--trace can't be used with a fixture named func!")
261261
pyfuncitem.funcargs["func"] = testfunction
262262
new_list = list(pyfuncitem._fixtureinfo.argnames)

0 commit comments

Comments
 (0)