wrap long pygrep test line

This commit is contained in:
Sharmila Jesupaul 2026-02-18 18:14:59 -08:00
parent 635912514d
commit 9581ffc148

View file

@ -143,7 +143,9 @@ def test_grep_hook_matching(some_files, tmp_path):
@pytest.mark.usefixtures('some_files') @pytest.mark.usefixtures('some_files')
def test_main_reads_nul_delimited_filenames_from_stdin(cap_out): def test_main_reads_nul_delimited_filenames_from_stdin(cap_out):
with mock.patch.object(sys.stdin.buffer, 'read', return_value=b'f1\x00f2\x00'): with mock.patch.object(
sys.stdin.buffer, 'read', return_value=b'f1\x00f2\x00',
):
ret = pygrep.main(('foo',)) ret = pygrep.main(('foo',))
out = cap_out.get() out = cap_out.get()