diff options
author | Bruno Oliveira <nicoddemus@gmail.com> | 2019-02-25 19:37:27 -0300 |
---|---|---|
committer | Bruno Oliveira <nicoddemus@gmail.com> | 2019-03-12 20:10:59 -0300 |
commit | 47bd1688ed0da460fc6b1885e82bb9aa5bd1c3e0 (patch) | |
tree | 02d89a3f377b0557c17df3781ad9fb3599119779 /src/_pytest/debugging.py | |
parent | 936f725b8109920dec63a0d0d1ce183799bdd4e9 (diff) | |
download | pytest-47bd1688ed0da460fc6b1885e82bb9aa5bd1c3e0.tar.gz |
Remove dead-code related to yield tests
Just noticed some code that no longer is needed when we removed yield-tests
Diffstat (limited to 'src/_pytest/debugging.py')
-rw-r--r-- | src/_pytest/debugging.py | 17 |
1 files changed, 6 insertions, 11 deletions
diff --git a/src/_pytest/debugging.py b/src/_pytest/debugging.py index 271a590a1..6dbc0499a 100644 --- a/src/_pytest/debugging.py +++ b/src/_pytest/debugging.py @@ -209,17 +209,12 @@ def _test_pytest_function(pyfuncitem): _pdb = pytestPDB._init_pdb() testfunction = pyfuncitem.obj pyfuncitem.obj = _pdb.runcall - if pyfuncitem._isyieldedfunction(): - arg_list = list(pyfuncitem._args) - arg_list.insert(0, testfunction) - pyfuncitem._args = tuple(arg_list) - else: - if "func" in pyfuncitem._fixtureinfo.argnames: - raise ValueError("--trace can't be used with a fixture named func!") - pyfuncitem.funcargs["func"] = testfunction - new_list = list(pyfuncitem._fixtureinfo.argnames) - new_list.append("func") - pyfuncitem._fixtureinfo.argnames = tuple(new_list) + if "func" in pyfuncitem._fixtureinfo.argnames: + raise ValueError("--trace can't be used with a fixture named func!") + pyfuncitem.funcargs["func"] = testfunction + new_list = list(pyfuncitem._fixtureinfo.argnames) + new_list.append("func") + pyfuncitem._fixtureinfo.argnames = tuple(new_list) def _enter_pdb(node, excinfo, rep): |