diff options
author | Antoine Pitrou <solipsis@pitrou.net> | 2010-01-31 23:12:29 (GMT) |
---|---|---|
committer | Antoine Pitrou <solipsis@pitrou.net> | 2010-01-31 23:12:29 (GMT) |
commit | b3d77007f4e682c77c0c11439fc9d333a23d7f8b (patch) | |
tree | 16aa657d20de23f2af1aa505b232936e7b7acfe5 /Lib/doctest.py | |
parent | 905a2ffe3e5445925a669ab433521ddb66cf1043 (diff) | |
download | cpython-b3d77007f4e682c77c0c11439fc9d333a23d7f8b.zip cpython-b3d77007f4e682c77c0c11439fc9d333a23d7f8b.tar.gz cpython-b3d77007f4e682c77c0c11439fc9d333a23d7f8b.tar.bz2 |
r77895 broke doctest.
Diffstat (limited to 'Lib/doctest.py')
-rw-r--r-- | Lib/doctest.py | 3 |
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): |