mirror of
https://github.com/pre-commit/pre-commit.git
synced 2026-01-14 13:00:10 -06:00
minor py2 cleanup for sys.stderr.buffer
This commit is contained in:
@@ -72,8 +72,8 @@ def test_basic_healthy():
|
||||
def test_failed_setup_command_does_not_unicode_error():
|
||||
script = (
|
||||
'import sys\n'
|
||||
"getattr(sys.stderr, 'buffer', sys.stderr).write(b'\\x81\\xfe')\n"
|
||||
'exit(1)\n'
|
||||
"sys.stderr.buffer.write(b'\\x81\\xfe')\n"
|
||||
'raise SystemExit(1)\n'
|
||||
)
|
||||
|
||||
# an assertion that this does not raise `UnicodeError`
|
||||
|
||||
Reference in New Issue
Block a user