Skip to content

Commit 42b02a1

Browse files
committed
Non-magic string concatenation
1 parent 8bf5006 commit 42b02a1

File tree

5 files changed

+11
-11
lines changed

5 files changed

+11
-11
lines changed

tests/test_api.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -304,7 +304,7 @@ def test_empty_reporting(self) -> None:
304304
NoDataError,
305305
match=(
306306
r"^The data file or directory '(.+?)' could not be found\. Perhaps 'coverage "
307-
r"combine' must be run first\.$"
307+
+ r"combine' must be run first\.$"
308308
)
309309
):
310310
cov.report()
@@ -456,7 +456,7 @@ def test_combining_twice(self) -> None:
456456
NoDataError,
457457
match=(
458458
r"^The data directory '(.+?)' does not contain any data files. Perhaps 'coverage "
459-
r"combine' must be run first.$"
459+
+ r"combine' must be run first.$"
460460
)
461461
):
462462
cov2.combine(strict=True, keep=False)
@@ -1392,7 +1392,7 @@ def test_combine_no_usable_files(self) -> None:
13921392
NoDataError,
13931393
match=(
13941394
r"^The following data files are unusable, perhaps because they do not contain "
1395-
r"valid coverage information:\n- '(.+?)'\n- '(.+?)'$"
1395+
+ r"valid coverage information:\n- '(.+?)'\n- '(.+?)'$"
13961396
)
13971397
):
13981398
cov.combine(strict=True)

tests/test_coverage.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1639,7 +1639,7 @@ def test_no_data_to_report_on_annotate(self) -> None:
16391639
NoDataError,
16401640
match=(
16411641
r"^The data file or directory '(.+?)' could not be found\. Perhaps 'coverage "
1642-
r"combine' must be run first\.$"
1642+
+ r"combine' must be run first\.$"
16431643
)
16441644
):
16451645
self.command_line("annotate -d ann")
@@ -1652,7 +1652,7 @@ def test_no_data_to_report_on_html(self) -> None:
16521652
NoDataError,
16531653
match=(
16541654
r"^The data file or directory '(.+?)' could not be found\. Perhaps 'coverage "
1655-
r"combine' must be run first\.$"
1655+
+ r"combine' must be run first\.$"
16561656
)
16571657
):
16581658
self.command_line("html -d htmlcov")
@@ -1664,7 +1664,7 @@ def test_no_data_to_report_on_xml(self) -> None:
16641664
NoDataError,
16651665
match=(
16661666
r"^The data file or directory '(.+?)' could not be found\. Perhaps 'coverage "
1667-
r"combine' must be run first\.$"
1667+
+ r"combine' must be run first\.$"
16681668
)
16691669
):
16701670
self.command_line("xml")

tests/test_html.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -430,7 +430,7 @@ def test_dothtml_not_python(self) -> None:
430430
NoDataError,
431431
match=(
432432
r"^The data file or directory '(.+?)' could not be found\. Perhaps 'coverage "
433-
r"combine' must be run first\.$"
433+
+ r"combine' must be run first\.$"
434434
)
435435
):
436436
cov.html_report()

tests/test_report.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -555,7 +555,7 @@ def test_report_skip_covered_no_data(self) -> None:
555555
NoDataError,
556556
match=(
557557
r"^The data file or directory '(.+?)' could not be found\. Perhaps 'coverage "
558-
r"combine' must be run first\.$"
558+
+ r"combine' must be run first\.$"
559559
)
560560
):
561561
self.get_report(cov, skip_covered=True)
@@ -754,7 +754,7 @@ def test_dotpy_not_python_ignored(self) -> None:
754754
NoDataError,
755755
match=(
756756
r"^The data file or directory '(.+?)' could not be found\. Perhaps 'coverage "
757-
r"combine' must be run first\.$"
757+
+ r"combine' must be run first\.$"
758758
)
759759
):
760760
with pytest.warns(Warning) as warns:
@@ -777,7 +777,7 @@ def test_dothtml_not_python(self) -> None:
777777
NoDataError,
778778
match=(
779779
r"^The data file or directory '(.+?)' could not be found\. Perhaps 'coverage "
780-
r"combine' must be run first\.$"
780+
+ r"combine' must be run first\.$"
781781
)
782782
):
783783
self.get_report(cov, morfs=["mycode.html"])

tests/test_xml.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -149,7 +149,7 @@ def test_no_data(self) -> None:
149149
NoDataError,
150150
match=(
151151
r"^The data file or directory '(.+?)' could not be found\. Perhaps 'coverage "
152-
r"combine' must be run first\.$"
152+
+ r"combine' must be run first\.$"
153153
)
154154
):
155155
self.run_xml_report()

0 commit comments

Comments
 (0)