-
-
Notifications
You must be signed in to change notification settings - Fork 2.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
pytest --pdb execute test cases which otherwise are skipped #2137
Comments
Thanks for the report! This is a side effect of #1890, because now the skip machinery for def runtest(self):
if self.config.pluginmanager.get_plugin("pdbinvoke") is None:
self._testcase(result=self)
else:
# disables tearDown and cleanups for post mortem debugging (see #1890)
self._testcase.debug() Have to think about a proper fix for this, we probably need to handle other types of failures as well (such as |
Thanks for reporting - and yes, that's definitely a regression. @nicoddemus, sorry for being late. I looked into this and proposed a possible solution in #2225. |
Hi,
using pytest 3.0.5 (and xdist (1.15) + cov plugins (2.3.1)), under linux :
reproduce steps :
18:58 $ cat test_pytest_pdb_skip.py
this is ok :
pytest -xv test_pytest_pdb_skip.py
this is not ok : the test is executed and here obviously fail
pytest --pdb -xv test_pytest_pdb_skip.py
The text was updated successfully, but these errors were encountered: