diff options
author | Sanyam Khurana <8039608+CuriousLearner@users.noreply.github.com> | 2019-01-09 19:08:38 +0530 |
---|---|---|
committer | Senthil Kumaran <skumaran@gatech.edu> | 2019-01-09 05:38:38 -0800 |
commit | cbb16459934eaf29c7c7d362939cd05550b2f21f (patch) | |
tree | 7a75c9b2b3d818fd8c2dec0cdcfc025ae1c01a59 /Lib/doctest.py | |
parent | bpo-32710: Fix leak in Overlapped_WSASend() (GH-11469) (diff) | |
download | cpython-cbb16459934eaf29c7c7d362939cd05550b2f21f.tar.gz cpython-cbb16459934eaf29c7c7d362939cd05550b2f21f.tar.bz2 cpython-cbb16459934eaf29c7c7d362939cd05550b2f21f.zip |
bpo-24746: Avoid stripping trailing whitespace in doctest fancy diff (#10639)
Diffstat (limited to 'Lib/doctest.py')
-rw-r--r-- | Lib/doctest.py | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/Lib/doctest.py b/Lib/doctest.py index c1d8a1db111..79d91a040c2 100644 --- a/Lib/doctest.py +++ b/Lib/doctest.py @@ -1690,8 +1690,6 @@ class OutputChecker: kind = 'ndiff with -expected +actual' else: assert 0, 'Bad diff option' - # Remove trailing whitespace on diff output. - diff = [line.rstrip() + '\n' for line in diff] return 'Differences (%s):\n' % kind + _indent(''.join(diff)) # If we're not using diff, then simply list the expected |