From b75320ba95e2033f7c12b400c0d587e989667d08 Mon Sep 17 00:00:00 2001 From: Jeffrey Rackauckas Date: Mon, 2 Jul 2018 19:08:41 -0700 Subject: [PATCH] Fix --trace option with yield tests. --- src/_pytest/debugging.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/_pytest/debugging.py b/src/_pytest/debugging.py index cf21cb6c4..cd6656d18 100644 --- a/src/_pytest/debugging.py +++ b/src/_pytest/debugging.py @@ -83,7 +83,7 @@ def pytest_pyfunc_call(pyfuncitem): testfunction = pyfuncitem.obj pyfuncitem.obj = pdb.runcall if pyfuncitem._isyieldedfunction(): - pyfuncitem.args = [testfunction, pyfuncitem._args] + pyfuncitem._args = [testfunction, *pyfuncitem._args] else: if "func" in pyfuncitem._fixtureinfo.argnames: raise ValueError("--trace can't be used with a fixture named func!")