Use `pytest.set_trace` to set a breakpoint in py.test May 10, 2016 To set a breakpoint in py.test, use: import pytest pytest.set_trace() source