mirror of
https://github.com/PyCQA/flake8.git
synced 2026-04-12 07:44:16 +00:00
[pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
This commit is contained in:
parent
46dc6d501c
commit
f2de11180d
1 changed files with 1 additions and 0 deletions
|
|
@ -146,6 +146,7 @@ def test_write_hook_fallbacks(buffered_stdout):
|
||||||
stdout_spec.append("buffer")
|
stdout_spec.append("buffer")
|
||||||
|
|
||||||
with mock.patch("sys.stdout", spec=stdout_spec) as mock_stdout:
|
with mock.patch("sys.stdout", spec=stdout_spec) as mock_stdout:
|
||||||
|
|
||||||
def _stdout_write_effect(value):
|
def _stdout_write_effect(value):
|
||||||
if value is mock_line:
|
if value is mock_line:
|
||||||
raise UnicodeEncodeError("unittest-codec", "", 42, 43, "NOPE")
|
raise UnicodeEncodeError("unittest-codec", "", 42, 43, "NOPE")
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue