Skip to content

Commit 0dcce0a

Browse files
committed
Test assumptions
1 parent 3d3f198 commit 0dcce0a

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

pylint/config/config_initialization.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -107,7 +107,6 @@ def _config_initialization( # pylint: disable=too-many-statements
107107
# with all disables, it is safe to emit messages
108108
if unrecognized_options_message is not None:
109109
linter.set_current_module(str(config_file) if config_file else "")
110-
raise ValueError(unrecognized_options_message)
111110
linter.add_message(
112111
"unrecognized-option", args=unrecognized_options_message, line=0
113112
)

tests/test_self.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1528,6 +1528,8 @@ def test_generate_rcfile(tmp_path: Path) -> None:
15281528
)
15291529
assert process.stdout == process_two.stdout
15301530

1531+
assert "suggestion-mode" not in process.stdout
1532+
15311533
# Check that the generated file is valid
15321534
with tempfile.NamedTemporaryFile(mode="w", delete=False) as temp:
15331535
filename = temp.name
@@ -1536,7 +1538,6 @@ def test_generate_rcfile(tmp_path: Path) -> None:
15361538
[join(HERE, "regrtest_data", "empty.py"), f"--rcfile={filename}"],
15371539
exit=False,
15381540
)
1539-
assert not runner.linter.stats.by_msg
15401541
assert not runner.linter.msg_status
15411542
os.remove(filename)
15421543

0 commit comments

Comments
 (0)