mirror of
https://github.com/pre-commit/pre-commit.git
synced 2026-02-17 08:14:42 +04:00
Fix xargs.partion: win32 test
This commit is contained in:
parent
c9e297ddb6
commit
3d573d8736
1 changed files with 2 additions and 1 deletions
|
|
@ -55,7 +55,8 @@ def test_partition_limits():
|
|||
|
||||
def test_partition_limit_win32(sys_win32_mock):
|
||||
cmd = ('ninechars',)
|
||||
varargs = ('😑' * 10,)
|
||||
# counted as half because of utf-16 encode
|
||||
varargs = ('😑' * 5,)
|
||||
with mock.patch('pre_commit.xargs.sys', sys_win32_mock):
|
||||
ret = xargs.partition(cmd, varargs, _max_length=20)
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue