• Edward Loper's avatar
    - Removed redundant call to expandtabs in DocTestParesr. · 4771cfe3
    Edward Loper authored
    - Improvements to interactive debugging support:
      - Changed the replacement pdb.set_trace to redirect stdout to the
        real stdout *only* during interactive debugging; stdout from code
        continues to go to the fake stdout.
      - When the interactive debugger gets to the end of an example,
        automatically continue.
      - Use a replacement linecache.getlines that will return source lines
        from doctest examples; this makes the source available to the
        debugger for interactive debugging.
    - In test_doctest, use a specialized _FakeOutput class instead of a
      temporary file to fake stdin for the interactive interpreter.
    4771cfe3
doctest.py 90.3 KB