I am no longer supporting this tool. Please see pdb++ as a far more capable alternative that doesn't require plugins or special imports.
pdb++: https://pypi.python.org/pypi/pdbpp/
Provides ipdb on failures for py.test.
To install
pip install git+git://github.com/mverteuil/pytest-ipdb.git
To use: run pytest with --ipdb
instead of --pdb
.