@@ -194,9 +194,15 @@ def test_force_environment(self, force: bool) -> None:
194
194
("[report]\n exclude_lines = foo(\n " ,
195
195
r"Invalid \[report\].exclude_lines value 'foo\(': " +
196
196
r"(unbalanced parenthesis|missing \))" ),
197
+ ("[report]\n exclude_also = foo(\n " ,
198
+ r"Invalid \[report\].exclude_also value 'foo\(': " +
199
+ r"(unbalanced parenthesis|missing \))" ),
197
200
("[report]\n partial_branches = foo[\n " ,
198
201
r"Invalid \[report\].partial_branches value 'foo\[': " +
199
202
r"(unexpected end of regular expression|unterminated character set)" ),
203
+ ("[report]\n partial_also = foo[\n " ,
204
+ r"Invalid \[report\].partial_also value 'foo\[': " +
205
+ r"(unexpected end of regular expression|unterminated character set)" ),
200
206
("[report]\n partial_branches_always = foo***\n " ,
201
207
r"Invalid \[report\].partial_branches_always value " +
202
208
r"'foo\*\*\*': " +
@@ -214,9 +220,15 @@ def test_parse_errors(self, bad_config: str, msg: str) -> None:
214
220
('[tool.coverage.report]\n exclude_lines = ["foo("]\n ' ,
215
221
r"Invalid \[tool.coverage.report\].exclude_lines value 'foo\(': " +
216
222
r"(unbalanced parenthesis|missing \))" ),
223
+ ('[tool.coverage.report]\n exclude_also = ["foo("]\n ' ,
224
+ r"Invalid \[tool.coverage.report\].exclude_also value 'foo\(': " +
225
+ r"(unbalanced parenthesis|missing \))" ),
217
226
('[tool.coverage.report]\n partial_branches = ["foo["]\n ' ,
218
227
r"Invalid \[tool.coverage.report\].partial_branches value 'foo\[': " +
219
228
r"(unexpected end of regular expression|unterminated character set)" ),
229
+ ('[tool.coverage.report]\n partial_also = ["foo["]\n ' ,
230
+ r"Invalid \[tool.coverage.report\].partial_also value 'foo\[': " +
231
+ r"(unexpected end of regular expression|unterminated character set)" ),
220
232
('[tool.coverage.report]\n partial_branches_always = ["foo***"]\n ' ,
221
233
r"Invalid \[tool.coverage.report\].partial_branches_always value " +
222
234
r"'foo\*\*\*': " +
0 commit comments