mirror of
https://github.com/pre-commit/pre-commit.git
synced 2026-04-25 08:29:21 -05:00
04de6a2e57
python 3.6 reached end of life on 2021-12-23
12 lines
224 B
Python
12 lines
224 B
Python
from __future__ import annotations
|
|
|
|
import io
|
|
|
|
from pre_commit import output
|
|
|
|
|
|
def test_output_write_writes():
|
|
stream = io.BytesIO()
|
|
output.write('hello world', stream)
|
|
assert stream.getvalue() == b'hello world'
|