diff options
author | Jason R. Coombs <jaraco@jaraco.com> | 2018-07-13 15:26:03 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-07-13 15:26:03 (GMT) |
commit | cafaf0447b950fd4f59edd8cbde040c61ae528f8 (patch) | |
tree | 16bc635ab64861d1714134a6dafa810fb2b9b45a /Lib/lib2to3/tests | |
parent | 379e9d639a52766f79c7a206c5096c8333d1896f (diff) | |
download | cpython-cafaf0447b950fd4f59edd8cbde040c61ae528f8.zip cpython-cafaf0447b950fd4f59edd8cbde040c61ae528f8.tar.gz cpython-cafaf0447b950fd4f59edd8cbde040c61ae528f8.tar.bz2 |
bpo-34108: Fix double carriage return in 2to3 on Windows (#8271)
* Add test capturing failure.
* Honor newlines as present in the original file.
Diffstat (limited to 'Lib/lib2to3/tests')
-rw-r--r-- | Lib/lib2to3/tests/test_refactor.py | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/Lib/lib2to3/tests/test_refactor.py b/Lib/lib2to3/tests/test_refactor.py index f3059a9..9e3b8fb 100644 --- a/Lib/lib2to3/tests/test_refactor.py +++ b/Lib/lib2to3/tests/test_refactor.py @@ -300,6 +300,7 @@ from __future__ import print_function""" old, new = self.refactor_file(fn) self.assertIn(b"\r\n", old) self.assertIn(b"\r\n", new) + self.assertNotIn(b"\r\r\n", new) def test_refactor_docstring(self): rt = self.rt() |