mirror of
https://github.com/pre-commit/pre-commit.git
synced 2026-05-11 19:10:22 -05:00
Fix resetting of FakeStream
This commit is contained in:
+1
-1
@@ -170,7 +170,7 @@ class Fixture(object):
|
||||
def get_bytes(self):
|
||||
"""Get the output as-if no encoding occurred"""
|
||||
data = self._stream.data.getvalue()
|
||||
self._stream = io.BytesIO()
|
||||
self._stream.data.truncate(0)
|
||||
return data
|
||||
|
||||
def get(self):
|
||||
|
||||
Reference in New Issue
Block a user