mirror of
https://github.com/pre-commit/pre-commit.git
synced 2026-02-17 08:14:42 +04:00
Fix resetting of FakeStream
This commit is contained in:
parent
dd182fb42e
commit
a6a4762f0d
1 changed files with 1 additions and 1 deletions
|
|
@ -170,7 +170,7 @@ class Fixture(object):
|
||||||
def get_bytes(self):
|
def get_bytes(self):
|
||||||
"""Get the output as-if no encoding occurred"""
|
"""Get the output as-if no encoding occurred"""
|
||||||
data = self._stream.data.getvalue()
|
data = self._stream.data.getvalue()
|
||||||
self._stream = io.BytesIO()
|
self._stream.data.truncate(0)
|
||||||
return data
|
return data
|
||||||
|
|
||||||
def get(self):
|
def get(self):
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue