Skip to content

Commit 9e07b59

Browse files
Add test
1 parent cb8707e commit 9e07b59

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

tests/test_self.py

+9
Original file line numberDiff line numberDiff line change
@@ -768,6 +768,15 @@ def test_fail_on(self, fu_score: int, fo_msgs: str, fname: str, out: int) -> Non
768768
(["--disable=C0116", "--fail-on=C0116"], 16),
769769
# Ensure order does not matter
770770
(["--fail-on=C0116", "--disable=C0116"], 16),
771+
# Message emitted by PyLinter itself
772+
(
773+
[
774+
"--fail-on=unknown-option-value",
775+
"--disable=all",
776+
"--enable=unknown-option-value, trigger",
777+
],
778+
4,
779+
),
771780
],
772781
)
773782
def test_fail_on_edge_case(self, opts: list[str], out: int) -> None:

0 commit comments

Comments
 (0)