Skip to content

Make Debugger.interaction match the signature of Pdb.interaction. - #224

Merged
inducer merged 1 commit into
inducer:masterfrom
anntzer:compatible-api
Feb 20, 2017
Merged

inducer merged 1 commit into
inducer:masterfrom
anntzer:compatible-api

Conversation

@anntzer

@anntzer anntzer commented Feb 20, 2017

Copy link
Copy Markdown
Contributor

This allows pudb to be used as debugger for pytest>=3.0, e.g.

$ cat test_foo.py
def test_1():
    assert False
$ pytest --pdbcls pudb.debugger:Debugger --pdb --capture=no

(starts pudb at the failed assertion site).

Note the need to pass --capture=no (or its synonym -s) as otherwise
pytest tries to manage the standard streams itself.

Backwards compatibility is preserved.

See #221.

This allows pudb to be used as debugger for pytest>=3.0, e.g.

```
$ cat test_foo.py
def test_1():
    assert False
$ pytest --pdbcls pudb.debugger:Debugger --pdb --capture=no
```
(starts pudb at the failed assertion site).

Note the need to pass `--capture=no` (or its synonym `-s`) as otherwise
pytest tries to manage the standard streams itself.

Backwards compatibility is preserved.
@inducer
inducer merged commit b8f670a into inducer:master Feb 20, 2017
@inducer

inducer commented Feb 20, 2017

Copy link
Copy Markdown
Owner

Thanks!

@inducer

inducer commented Feb 20, 2017

Copy link
Copy Markdown
Owner

I'll add a line to the README to make sure people know about how to run pytest.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants