TIL: 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