--pdb does not work with import error

Create issue
Issue #107 wontfix
Maciej Fijalkowski created an issue

When import fails, --pdb does not enter pdb (and instead exits py.test)

Comments (1)

  1. Holger Krekel repo owner

    i asked on py-dev and nobody cared for this feature. I then tried to implement it which is a bit tricky - and then i realised that on ImportErrors locals/globals are not initialized so PDB is of very limited use. So i am closing this issue. If you encounter a concrete case where you think it would still help to have --pdb on collection errors despite the locals/globals issue, let me know.

  2. Log in to comment