mirror of
https://github.com/PyCQA/flake8.git
synced 2026-04-06 13:06:53 +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")
|
||||
|
||||
with mock.patch("sys.stdout", spec=stdout_spec) as mock_stdout:
|
||||
|
||||
def _stdout_write_effect(value):
|
||||
if value is mock_line:
|
||||
raise UnicodeEncodeError("unittest-codec", "", 42, 43, "NOPE")
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue