]> granicus.if.org Git - python/commit
This started as a spelling and whitespace cleanup. The comment for
authorTim Peters <tim.peters@gmail.com>
Mon, 9 Aug 2004 15:43:47 +0000 (15:43 +0000)
committerTim Peters <tim.peters@gmail.com>
Mon, 9 Aug 2004 15:43:47 +0000 (15:43 +0000)
commit413ced6c226b5a89c45cf2f4da79126f75cb200b
treefa16fdd9798163303b639e008cef6b84766248e1
parent0d2a75c7b867fca895ac420db3585297c51864c7
This started as a spelling and whitespace cleanup.  The comment for
the set_trace fiddling didn't make sense to me, and I ended up reworking
that part of the code.  We really do want to save and restore
pdb.set_trace, so that each dynamically nested level of doctest gets
sys.stdout fiddled to what's appropriate for *it*.  The only "trick"
really needed is that these layers of set_trace wrappers each call the
original pdb.set_trace (instead of the current pdb.set_trace).
Lib/doctest.py
Lib/test/test_doctest.py