summaryrefslogtreecommitdiffstats
path: root/Lib
diff options
context:
space:
mode:
authorAntoine Pitrou <solipsis@pitrou.net>2010-01-31 23:12:29 (GMT)
committerAntoine Pitrou <solipsis@pitrou.net>2010-01-31 23:12:29 (GMT)
commitb3d77007f4e682c77c0c11439fc9d333a23d7f8b (patch)
tree16aa657d20de23f2af1aa505b232936e7b7acfe5 /Lib
parent905a2ffe3e5445925a669ab433521ddb66cf1043 (diff)
downloadcpython-b3d77007f4e682c77c0c11439fc9d333a23d7f8b.zip
cpython-b3d77007f4e682c77c0c11439fc9d333a23d7f8b.tar.gz
cpython-b3d77007f4e682c77c0c11439fc9d333a23d7f8b.tar.bz2
r77895 broke doctest.
Diffstat (limited to 'Lib')
-rw-r--r--Lib/doctest.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/Lib/doctest.py b/Lib/doctest.py
index e80e74d..d6fb504 100644
--- a/Lib/doctest.py
+++ b/Lib/doctest.py
@@ -247,7 +247,8 @@ class _SpoofOut(StringIO):
return result
def truncate(self, size=None):
- StringIO.truncate(self, size)
+ self.seek(size)
+ StringIO.truncate(self)
# Worst-case linear-time ellipsis matching.
def _ellipsis_match(want, got):