summaryrefslogtreecommitdiffstats
path: root/Lib/doctest.py
diff options
context:
space:
mode:
authorGeorg Brandl <georg@python.org>2006-05-10 17:13:20 (GMT)
committerGeorg Brandl <georg@python.org>2006-05-10 17:13:20 (GMT)
commit195648000cd704e9d50dee0e7f082f3eb74d3bd3 (patch)
treef973294083136b57fee18c3a441ab296774e05a7 /Lib/doctest.py
parent38c6a22f38a249d107691a79f2b16a62ba8c73be (diff)
downloadcpython-195648000cd704e9d50dee0e7f082f3eb74d3bd3.zip
cpython-195648000cd704e9d50dee0e7f082f3eb74d3bd3.tar.gz
cpython-195648000cd704e9d50dee0e7f082f3eb74d3bd3.tar.bz2
Patch #721464: pdb.Pdb instances can now be given explicit stdin and
stdout arguments, making it possible to redirect input and output for remote debugging.
Diffstat (limited to 'Lib/doctest.py')
-rw-r--r--Lib/doctest.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/doctest.py b/Lib/doctest.py
index 318b21d..857bc1a 100644
--- a/Lib/doctest.py
+++ b/Lib/doctest.py
@@ -352,7 +352,7 @@ class _OutputRedirectingPdb(pdb.Pdb):
"""
def __init__(self, out):
self.__out = out
- pdb.Pdb.__init__(self)
+ pdb.Pdb.__init__(self, stdout=out)
def trace_dispatch(self, *args):
# Redirect stdout to the given stream.