Skip to content

Commit

Permalink
Translate line separators for doctests
Browse files Browse the repository at this point in the history
  • Loading branch information
cjwatson committed Jan 1, 2018
1 parent 777fbcc commit cf87a1b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/zope/testrunner/tests/test_doctest.py
Original file line number Diff line number Diff line change
Expand Up @@ -206,7 +206,7 @@ def getvalue(self):
# that a trailing newline is missing.
if result and not result.endswith("\n"):
result += "\n"
return result
return result.replace('\n', os.linesep)

def truncate(self, size=None):
self.seek(size)
Expand Down

0 comments on commit cf87a1b

Please sign in to comment.