summaryrefslogtreecommitdiff
path: root/src/_pytest/debugging.py
diff options
context:
space:
mode:
authorDaniel Hahler <git@thequod.de>2019-04-08 01:59:30 +0200
committerDaniel Hahler <git@thequod.de>2019-04-08 03:48:42 +0200
commitff5e98c654e618d4ed56b86879ddb5e26253031e (patch)
treea1a6c56e7e8f53683f04260731d468f49a791d6d /src/_pytest/debugging.py
parentb54943842363c261730b2fce8edbe92d1b9ba84a (diff)
downloadpytest-ff5e98c654e618d4ed56b86879ddb5e26253031e.tar.gz
Change noqa comment to pragma
Diffstat (limited to 'src/_pytest/debugging.py')
-rw-r--r--src/_pytest/debugging.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/_pytest/debugging.py b/src/_pytest/debugging.py
index 76ec072dc..a5b9e9c86 100644
--- a/src/_pytest/debugging.py
+++ b/src/_pytest/debugging.py
@@ -256,7 +256,7 @@ def _test_pytest_function(pyfuncitem):
_pdb = pytestPDB._init_pdb()
testfunction = pyfuncitem.obj
pyfuncitem.obj = _pdb.runcall
- if "func" in pyfuncitem._fixtureinfo.argnames: # noqa
+ if "func" in pyfuncitem._fixtureinfo.argnames: # pragma: no branch
raise ValueError("--trace can't be used with a fixture named func!")
pyfuncitem.funcargs["func"] = testfunction
new_list = list(pyfuncitem._fixtureinfo.argnames)