[issue4938] Pdb cannot access doctest source in postmortem

2010-07-30 Thread Georg Brandl
Georg Brandl added the comment: I think this is just too complicated to implement in a sane way. doctest+pdb is just a bit too hacky to be fully supported. -- nosy: +georg.brandl resolution: -> wont fix status: open -> closed ___ Python tracker <

[issue4938] Pdb cannot access doctest source in postmortem

2010-07-18 Thread Alexander Belopolsky
Changes by Alexander Belopolsky : -- assignee: -> belopolsky stage: -> needs patch type: -> behavior versions: +Python 3.2 ___ Python tracker ___ __

[issue4938] Pdb cannot access doctest source in postmortem

2009-05-09 Thread Jonathan
Jonathan added the comment: #!/usr/bin/env python # Slight mistake in last post import pydb import doctest import sys sys.excepthook = pydb.exception_hook try: doctest.testfile("story.txt",verbose=False,raise_on_error=True) except doctest.UnexpectedException, failure: exc_info = failure.

[issue4938] Pdb cannot access doctest source in postmortem

2009-05-09 Thread Jonathan
Jonathan added the comment: #!/usr/bin/env python # This does what you want. Change pydb for pdb if you prefer it. import pydb import doctest import sys sys.excepthook = pydb.exception_hook try: doctest.testfile("story.txt",verbose=False,raise_on_error=True) except doctest.UnexpectedExceptio

[issue4938] Pdb cannot access doctest source in postmortem

2009-01-13 Thread Alexander Belopolsky
New submission from Alexander Belopolsky : With attached x.py: $ cat x.py """ >>> foo() """ def foo(): 1/0 if __name__ == '__main__': import doctest, pdb try: doctest.testmod(raise_on_error=True) except doctest.UnexpectedException, e: pdb.post_mortem(e.exc_info[2