diff options
Diffstat (limited to 'Lib/doctest.py')
| -rw-r--r-- | Lib/doctest.py | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/Lib/doctest.py b/Lib/doctest.py index 9accb81..af0d042 100644 --- a/Lib/doctest.py +++ b/Lib/doctest.py @@ -263,6 +263,9 @@ class _SpoofOut(StringIO): StringIO.truncate(self, size) if hasattr(self, "softspace"): del self.softspace + if not self.buf: + # Reset it to an empty string, to make sure it's not unicode. + self.buf = '' # Worst-case linear-time ellipsis matching. def _ellipsis_match(want, got): |
