mirror of
https://github.com/pre-commit/pre-commit.git
synced 2026-02-17 08:14:42 +04:00
Fix filenames with spaces in them.
This commit is contained in:
parent
061ac81682
commit
2ec7a34035
8 changed files with 25 additions and 7 deletions
|
|
@ -9,8 +9,8 @@ def test_file_args_to_stdin_empty():
|
|||
|
||||
|
||||
def test_file_args_to_stdin_some():
|
||||
assert file_args_to_stdin(['foo', 'bar']) == 'foo\nbar\n'
|
||||
assert file_args_to_stdin(['foo', 'bar']) == 'foo\0bar\0'
|
||||
|
||||
|
||||
def test_file_args_to_stdin_tuple():
|
||||
assert file_args_to_stdin(('foo', 'bar')) == 'foo\nbar\n'
|
||||
assert file_args_to_stdin(('foo', 'bar')) == 'foo\0bar\0'
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue