Use `pytest.set_trace` to set a breakpoint in py.test

May 10, 2016

Use `pytest.set_trace` to set a breakpoint in py.test

To set a breakpoint in py.test, use:

import pytest

pytest.set_trace()

source