Remove the grave accent (`) from the default word regex (#2983)

This commit is contained in:
Dimitri Papadopoulos Orfanos
2023-08-07 15:45:56 +02:00
committed by GitHub
parent 0d9c92b079
commit 44f22e2436
3 changed files with 14 additions and 4 deletions

View File

@ -159,6 +159,16 @@ def test_basic(
assert cs.main(tmp_path) == 0
def test_default_word_parsing(
tmp_path: Path,
capsys: pytest.CaptureFixture[str],
) -> None:
fname = tmp_path / "backtick"
with fname.open("a") as f:
f.write("`abandonned`\n")
assert cs.main(fname) == 1, "bad"
def test_bad_glob(
tmp_path: Path,
capsys: pytest.CaptureFixture[str],