#8473: Add tests that doctest uses universal newlines in testfile.

Python3 does not have the bug covered by the issue.