Skip to content

Commit 63f941d

Browse files
committed
Fix test on Python 2
1 parent 7623052 commit 63f941d

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

tests/test_config.py

+3-3
Original file line numberDiff line numberDiff line change
@@ -179,14 +179,14 @@ def test_toml_parse_errors(self):
179179
# ("timid = 1\n", r"timid = 1"),
180180
("[tool.coverage.run\n", r"Key group"),
181181
('[tool.coverage.report]\nexclude_lines = ["foo("]\n',
182-
r"Invalid \[report\].exclude_lines value 'foo\(': "
182+
r"Invalid \[report\].exclude_lines value u?'foo\(': "
183183
r"(unbalanced parenthesis|missing \))"),
184184
('[tool.coverage.report]\npartial_branches = ["foo["]\n',
185-
r"Invalid \[report\].partial_branches value 'foo\[': "
185+
r"Invalid \[report\].partial_branches value u?'foo\[': "
186186
r"(unexpected end of regular expression|unterminated character set)"),
187187
('[tool.coverage.report]\npartial_branches_always = ["foo***"]\n',
188188
r"Invalid \[report\].partial_branches_always value "
189-
r"'foo\*\*\*': "
189+
r"u?'foo\*\*\*': "
190190
r"multiple repeat"),
191191
('[tool.coverage.run]\nconcurrency="foo"', "not a list"),
192192
("[tool.coverage.report]\nprecision=1.23", "not an integer"),

0 commit comments

Comments
 (0)