mirror of
https://github.com/pre-commit/pre-commit.git
synced 2026-02-17 00:04:42 +04:00
Normalize crlf in tests
This commit is contained in:
parent
517c3145f4
commit
4941ed58d5
7 changed files with 46 additions and 58 deletions
|
|
@ -249,7 +249,7 @@ class Fixture(object):
|
|||
data = self._stream.data.getvalue()
|
||||
self._stream.data.seek(0)
|
||||
self._stream.data.truncate()
|
||||
return data
|
||||
return data.replace(b'\r\n', b'\n')
|
||||
|
||||
def get(self):
|
||||
"""Get the output assuming it was written as UTF-8 bytes"""
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue