From b3d77007f4e682c77c0c11439fc9d333a23d7f8b Mon Sep 17 00:00:00 2001 From: Antoine Pitrou Date: Sun, 31 Jan 2010 23:12:29 +0000 Subject: [PATCH] r77895 broke doctest. --- Lib/doctest.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Lib/doctest.py b/Lib/doctest.py index e80e74d5cea..d6fb504eeaa 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):