Skip to content
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

--pdb drops you into pdb if you have an xfail #262

Closed
pytestbot opened this issue Feb 11, 2013 · 2 comments
Closed

--pdb drops you into pdb if you have an xfail #262

pytestbot opened this issue Feb 11, 2013 · 2 comments
Labels
type: proposal proposal for a new feature, often to gather opinions or design the API around the new feature

Comments

@pytestbot
Copy link
Contributor

Originally reported by: Ronny Pfannschmidt (BitBucket: RonnyPfannschmidt, GitHub: RonnyPfannschmidt)


as reported by fijal

i also think xfails shouldnt trigger the debugger unless requested


@pytestbot
Copy link
Contributor Author

Original comment by Jurko Gospodnetić (BitBucket: jurko, GitHub: jurko):


Just tested this with:

import pytest
@pytest.mark.xfail(reason="bad test")
def test_example():
    assert False

and running it I get the following output:

D:\Example>py3 -m pytest --pdb
============================= test session starts =============================
platform win32 -- Python 3.3.3 -- pytest-2.5.2.dev1
collected 1 items

test_xxx.py x

========================== 1 xfailed in 0.03 seconds ==========================

So I think this issue has already been resolved.

This has been tested on Windows 7 x64 SP1 with full updates. Python and pytest versions may be seen in the output quoted above.

Hope this helps.

Best regards,
Jurko Gospodnetić

@pytestbot
Copy link
Contributor Author

Original comment by holger krekel (BitBucket: hpk42, GitHub: hpk42):


Thanks, Jurko. I vaguely remember this has been fixed some time ago, indeed.

@pytestbot pytestbot added the type: proposal proposal for a new feature, often to gather opinions or design the API around the new feature label Jun 15, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type: proposal proposal for a new feature, often to gather opinions or design the API around the new feature
Projects
None yet
Development

No branches or pull requests

1 participant