@@ -207,7 +207,7 @@ def test_central(pytester, testdir, prop):
207
207
208
208
result = testdir .runpytest ('-v' , f'--cov={ script .dirpath ()} ' , '--cov-report=term-missing' , script , * prop .args )
209
209
210
- result .stdout .fnmatch_lines (['*- coverage: platform *, python * - *' , f'test_central* { prop .result } *' , '*10 passed*' ])
210
+ result .stdout .fnmatch_lines (['*_ coverage: platform *, python * _ *' , f'test_central* { prop .result } *' , '*10 passed*' ])
211
211
assert result .ret == 0
212
212
213
213
@@ -218,7 +218,7 @@ def test_annotate(testdir):
218
218
219
219
result .stdout .fnmatch_lines (
220
220
[
221
- '*- coverage: platform *, python * - *' ,
221
+ '*_ coverage: platform *, python * _ *' ,
222
222
'Coverage annotated source written next to source' ,
223
223
'*10 passed*' ,
224
224
]
@@ -233,7 +233,7 @@ def test_annotate_output_dir(testdir):
233
233
234
234
result .stdout .fnmatch_lines (
235
235
[
236
- '*- coverage: platform *, python * - *' ,
236
+ '*_ coverage: platform *, python * _ *' ,
237
237
'Coverage annotated source written to dir ' + DEST_DIR ,
238
238
'*10 passed*' ,
239
239
]
@@ -251,7 +251,7 @@ def test_html(testdir):
251
251
252
252
result .stdout .fnmatch_lines (
253
253
[
254
- '*- coverage: platform *, python * - *' ,
254
+ '*_ coverage: platform *, python * _ *' ,
255
255
'Coverage HTML written to dir htmlcov' ,
256
256
'*10 passed*' ,
257
257
]
@@ -269,7 +269,7 @@ def test_html_output_dir(testdir):
269
269
270
270
result .stdout .fnmatch_lines (
271
271
[
272
- '*- coverage: platform *, python * - *' ,
272
+ '*_ coverage: platform *, python * _ *' ,
273
273
'Coverage HTML written to dir ' + DEST_DIR ,
274
274
'*10 passed*' ,
275
275
]
@@ -289,7 +289,7 @@ def test_term_report_does_not_interact_with_html_output(testdir):
289
289
290
290
result .stdout .fnmatch_lines (
291
291
[
292
- '*- coverage: platform *, python * - *' ,
292
+ '*_ coverage: platform *, python * _ *' ,
293
293
'Coverage HTML written to dir ' + DEST_DIR ,
294
294
'*1 passed*' ,
295
295
]
@@ -317,7 +317,7 @@ def test_html_configured_output_dir(testdir):
317
317
318
318
result .stdout .fnmatch_lines (
319
319
[
320
- '*- coverage: platform *, python * - *' ,
320
+ '*_ coverage: platform *, python * _ *' ,
321
321
'Coverage HTML written to dir somewhere' ,
322
322
'*10 passed*' ,
323
323
]
@@ -335,7 +335,7 @@ def test_xml_output_dir(testdir):
335
335
336
336
result .stdout .fnmatch_lines (
337
337
[
338
- '*- coverage: platform *, python * - *' ,
338
+ '*_ coverage: platform *, python * _ *' ,
339
339
'Coverage XML written to file ' + XML_REPORT_NAME ,
340
340
'*10 passed*' ,
341
341
]
@@ -351,7 +351,7 @@ def test_json_output_dir(testdir):
351
351
352
352
result .stdout .fnmatch_lines (
353
353
[
354
- '*- coverage: platform *, python * - *' ,
354
+ '*_ coverage: platform *, python * _ *' ,
355
355
'Coverage JSON written to file ' + JSON_REPORT_NAME ,
356
356
'*10 passed*' ,
357
357
]
@@ -368,7 +368,7 @@ def test_lcov_output_dir(testdir):
368
368
369
369
result .stdout .fnmatch_lines (
370
370
[
371
- '*- coverage: platform *, python * - *' ,
371
+ '*_ coverage: platform *, python * _ *' ,
372
372
'Coverage LCOV written to file ' + LCOV_REPORT_NAME ,
373
373
'*10 passed*' ,
374
374
]
@@ -490,7 +490,7 @@ def test_central_nonspecific(pytester, testdir, prop):
490
490
testdir .tmpdir .join ('.coveragerc' ).write (prop .fullconf )
491
491
result = testdir .runpytest ('-v' , '--cov' , '--cov-report=term-missing' , script , * prop .args )
492
492
493
- result .stdout .fnmatch_lines (['*- coverage: platform *, python * - *' , f'test_central_nonspecific* { prop .result } *' , '*10 passed*' ])
493
+ result .stdout .fnmatch_lines (['*_ coverage: platform *, python * _ *' , f'test_central_nonspecific* { prop .result } *' , '*10 passed*' ])
494
494
495
495
# multi-module coverage report
496
496
assert any (line .startswith ('TOTAL ' ) for line in result .stdout .lines )
@@ -520,7 +520,7 @@ def test_central_coveragerc(pytester, testdir, prop):
520
520
521
521
result .stdout .fnmatch_lines (
522
522
[
523
- '*- coverage: platform *, python * - *' ,
523
+ '*_ coverage: platform *, python * _ *' ,
524
524
f'test_central_coveragerc* { prop .result } *' ,
525
525
'*10 passed*' ,
526
526
]
@@ -557,7 +557,7 @@ def test_central_with_path_aliasing(pytester, testdir, monkeypatch, opts, prop):
557
557
558
558
result .stdout .fnmatch_lines (
559
559
[
560
- '*- coverage: platform *, python * - *' ,
560
+ '*_ coverage: platform *, python * _ *' ,
561
561
f'src[\\ /]mod* { prop .result } *' ,
562
562
'*10 passed*' ,
563
563
]
@@ -599,7 +599,7 @@ def test_foobar(bad):
599
599
600
600
result .stdout .fnmatch_lines (
601
601
[
602
- '*- coverage: platform *, python * - *' ,
602
+ '*_ coverage: platform *, python * _ *' ,
603
603
'*mod* 100%' ,
604
604
'*1 passed*' ,
605
605
]
@@ -636,7 +636,7 @@ def test_subprocess_with_path_aliasing(pytester, testdir, monkeypatch):
636
636
637
637
result .stdout .fnmatch_lines (
638
638
[
639
- '*- coverage: platform *, python * - *' ,
639
+ '*_ coverage: platform *, python * _ *' ,
640
640
f'src[\\ /]child_script* { CHILD_SCRIPT_RESULT } *' ,
641
641
f'src[\\ /]parent_script* { PARENT_SCRIPT_RESULT } *' ,
642
642
]
@@ -661,7 +661,7 @@ def test_show_missing_coveragerc(pytester, testdir, prop):
661
661
662
662
result .stdout .fnmatch_lines (
663
663
[
664
- '*- coverage: platform *, python * - *' ,
664
+ '*_ coverage: platform *, python * _ *' ,
665
665
'Name * Stmts * Miss * Cover * Missing' ,
666
666
f'test_show_missing_coveragerc* { prop .result } * 11*' ,
667
667
'*10 passed*' ,
@@ -767,7 +767,7 @@ def test_dist_collocated(pytester, testdir, prop):
767
767
* prop .args ,
768
768
)
769
769
770
- result .stdout .fnmatch_lines (['*- coverage: platform *, python * - *' , f'test_dist_collocated* { prop .result } *' , '*10 passed*' ])
770
+ result .stdout .fnmatch_lines (['*_ coverage: platform *, python * _ *' , f'test_dist_collocated* { prop .result } *' , '*10 passed*' ])
771
771
assert result .ret == 0
772
772
773
773
@@ -802,7 +802,7 @@ def test_dist_not_collocated(pytester, testdir, prop):
802
802
* prop .args ,
803
803
)
804
804
805
- result .stdout .fnmatch_lines (['*- coverage: platform *, python * - *' , f'test_dist_not_collocated* { prop .result } *' , '*10 passed*' ])
805
+ result .stdout .fnmatch_lines (['*_ coverage: platform *, python * _ *' , f'test_dist_not_collocated* { prop .result } *' , '*10 passed*' ])
806
806
assert result .ret == 0
807
807
808
808
@@ -838,7 +838,7 @@ def test_dist_not_collocated_coveragerc_source(pytester, testdir, prop):
838
838
* prop .args ,
839
839
)
840
840
841
- result .stdout .fnmatch_lines (['*- coverage: platform *, python * - *' , f'test_dist_not_collocated* { prop .result } *' , '*10 passed*' ])
841
+ result .stdout .fnmatch_lines (['*_ coverage: platform *, python * _ *' , f'test_dist_not_collocated* { prop .result } *' , '*10 passed*' ])
842
842
assert result .ret == 0
843
843
844
844
@@ -850,7 +850,7 @@ def test_central_subprocess(testdir):
850
850
851
851
result .stdout .fnmatch_lines (
852
852
[
853
- '*- coverage: platform *, python * - *' ,
853
+ '*_ coverage: platform *, python * _ *' ,
854
854
f'child_script* { CHILD_SCRIPT_RESULT } *' ,
855
855
f'parent_script* { PARENT_SCRIPT_RESULT } *' ,
856
856
]
@@ -876,7 +876,7 @@ def test_central_subprocess_change_cwd(testdir):
876
876
877
877
result .stdout .fnmatch_lines (
878
878
[
879
- '*- coverage: platform *, python * - *' ,
879
+ '*_ coverage: platform *, python * _ *' ,
880
880
f'*child_script* { CHILD_SCRIPT_RESULT } *' ,
881
881
'*parent_script* 100%*' ,
882
882
]
@@ -904,7 +904,7 @@ def test_central_subprocess_change_cwd_with_pythonpath(pytester, testdir, monkey
904
904
905
905
result .stdout .fnmatch_lines (
906
906
[
907
- '*- coverage: platform *, python * - *' ,
907
+ '*_ coverage: platform *, python * _ *' ,
908
908
f'*child_script* { CHILD_SCRIPT_RESULT } *' ,
909
909
]
910
910
)
@@ -930,7 +930,7 @@ def test_foo():
930
930
result = testdir .runpytest ('-v' , '--cov-config=coveragerc' , f'--cov={ script .dirpath ()} ' , '--cov-branch' , script )
931
931
result .stdout .fnmatch_lines (
932
932
[
933
- '*- coverage: platform *, python * - *' ,
933
+ '*_ coverage: platform *, python * _ *' ,
934
934
'test_central_subprocess_no_subscript* * 3 * 0 * 100%*' ,
935
935
]
936
936
)
@@ -948,7 +948,7 @@ def test_dist_subprocess_collocated(testdir):
948
948
949
949
result .stdout .fnmatch_lines (
950
950
[
951
- '*- coverage: platform *, python * - *' ,
951
+ '*_ coverage: platform *, python * _ *' ,
952
952
f'child_script* { CHILD_SCRIPT_RESULT } *' ,
953
953
f'parent_script* { PARENT_SCRIPT_RESULT } *' ,
954
954
]
@@ -988,7 +988,7 @@ def test_dist_subprocess_not_collocated(pytester, testdir, tmpdir):
988
988
989
989
result .stdout .fnmatch_lines (
990
990
[
991
- '*- coverage: platform *, python * - *' ,
991
+ '*_ coverage: platform *, python * _ *' ,
992
992
f'child_script* { CHILD_SCRIPT_RESULT } *' ,
993
993
f'parent_script* { PARENT_SCRIPT_RESULT } *' ,
994
994
]
@@ -1061,7 +1061,7 @@ def test_funcarg(testdir):
1061
1061
1062
1062
result = testdir .runpytest ('-v' , f'--cov={ script .dirpath ()} ' , '--cov-report=term-missing' , script )
1063
1063
1064
- result .stdout .fnmatch_lines (['*- coverage: platform *, python * - *' , 'test_funcarg* 3 * 100%*' , '*1 passed*' ])
1064
+ result .stdout .fnmatch_lines (['*_ coverage: platform *, python * _ *' , 'test_funcarg* 3 * 100%*' , '*1 passed*' ])
1065
1065
assert result .ret == 0
1066
1066
1067
1067
@@ -1111,7 +1111,7 @@ def test_run():
1111
1111
1112
1112
result = testdir .runpytest ('-vv' , f'--cov={ script .dirpath ()} ' , '--cov-report=term-missing' , script )
1113
1113
1114
- result .stdout .fnmatch_lines (['*- coverage: platform *, python * - *' , 'test_cleanup_on_sigterm* 26-27' , '*1 passed*' ])
1114
+ result .stdout .fnmatch_lines (['*_ coverage: platform *, python * _ *' , 'test_cleanup_on_sigterm* 26-27' , '*1 passed*' ])
1115
1115
assert result .ret == 0
1116
1116
1117
1117
@@ -1157,7 +1157,7 @@ def test_run():
1157
1157
1158
1158
result = testdir .runpytest ('-vv' , f'--cov={ script .dirpath ()} ' , '--cov-report=term-missing' , script )
1159
1159
1160
- result .stdout .fnmatch_lines (['*- coverage: platform *, python * - *' , f'test_cleanup_on_sigterm* { setup [1 ]} ' , '*1 passed*' ])
1160
+ result .stdout .fnmatch_lines (['*_ coverage: platform *, python * _ *' , f'test_cleanup_on_sigterm* { setup [1 ]} ' , '*1 passed*' ])
1161
1161
assert result .ret == 0
1162
1162
1163
1163
@@ -1201,7 +1201,7 @@ def test_run():
1201
1201
1202
1202
result = testdir .runpytest ('-vv' , '--assert=plain' , f'--cov={ script .dirpath ()} ' , '--cov-report=term-missing' , script )
1203
1203
1204
- result .stdout .fnmatch_lines (['*- coverage: platform *, python * - *' , f'test_cleanup_on_sigterm* { setup [1 ]} ' , '*1 passed*' ])
1204
+ result .stdout .fnmatch_lines (['*_ coverage: platform *, python * _ *' , f'test_cleanup_on_sigterm* { setup [1 ]} ' , '*1 passed*' ])
1205
1205
assert result .ret == 0
1206
1206
1207
1207
@@ -1236,7 +1236,7 @@ def test_run():
1236
1236
1237
1237
result = testdir .runpytest ('-vv' , '--assert=plain' , f'--cov={ script .dirpath ()} ' , '--cov-report=term-missing' , script )
1238
1238
1239
- result .stdout .fnmatch_lines (['*- coverage: platform *, python * - *' , 'test_cleanup_on_sigterm* 88% 19-20' , '*1 passed*' ])
1239
+ result .stdout .fnmatch_lines (['*_ coverage: platform *, python * _ *' , 'test_cleanup_on_sigterm* 88% 19-20' , '*1 passed*' ])
1240
1240
assert result .ret == 0
1241
1241
1242
1242
@@ -1273,7 +1273,7 @@ def test_run():
1273
1273
1274
1274
result = testdir .runpytest ('-vv' , '--assert=plain' , f'--cov={ script .dirpath ()} ' , '--cov-report=term-missing' , script )
1275
1275
1276
- result .stdout .fnmatch_lines (['*- coverage: platform *, python * - *' , 'test_cleanup_on_sigterm* 89% 22-23' , '*1 passed*' ])
1276
+ result .stdout .fnmatch_lines (['*_ coverage: platform *, python * _ *' , 'test_cleanup_on_sigterm* 89% 22-23' , '*1 passed*' ])
1277
1277
assert result .ret == 0
1278
1278
1279
1279
@@ -1505,7 +1505,7 @@ def test_dist_boxed(testdir):
1505
1505
1506
1506
result = testdir .runpytest ('-v' , '--assert=plain' , f'--cov={ script .dirpath ()} ' , '--boxed' , script )
1507
1507
1508
- result .stdout .fnmatch_lines (['*- coverage: platform *, python * - *' , f'test_dist_boxed* { SCRIPT_SIMPLE_RESULT } *' , '*1 passed*' ])
1508
+ result .stdout .fnmatch_lines (['*_ coverage: platform *, python * _ *' , f'test_dist_boxed* { SCRIPT_SIMPLE_RESULT } *' , '*1 passed*' ])
1509
1509
assert result .ret == 0
1510
1510
1511
1511
@@ -1516,7 +1516,7 @@ def test_dist_bare_cov(testdir):
1516
1516
1517
1517
result = testdir .runpytest ('-v' , '--cov' , '-n' , '1' , script )
1518
1518
1519
- result .stdout .fnmatch_lines (['*- coverage: platform *, python * - *' , f'test_dist_bare_cov* { SCRIPT_SIMPLE_RESULT } *' , '*1 passed*' ])
1519
+ result .stdout .fnmatch_lines (['*_ coverage: platform *, python * _ *' , f'test_dist_bare_cov* { SCRIPT_SIMPLE_RESULT } *' , '*1 passed*' ])
1520
1520
assert result .ret == 0
1521
1521
1522
1522
@@ -1747,7 +1747,7 @@ def test_append_coverage_subprocess(testdir):
1747
1747
1748
1748
result .stdout .fnmatch_lines (
1749
1749
[
1750
- '*- coverage: platform *, python * - *' ,
1750
+ '*_ coverage: platform *, python * _ *' ,
1751
1751
f'child_script* { CHILD_SCRIPT_RESULT } *' ,
1752
1752
f'parent_script* { PARENT_SCRIPT_RESULT } *' ,
1753
1753
]
@@ -1781,15 +1781,15 @@ def test_double_cov(testdir):
1781
1781
script = testdir .makepyfile (SCRIPT_SIMPLE )
1782
1782
result = testdir .runpytest ('-v' , '--assert=plain' , '--cov' , f'--cov={ script .dirpath ()} ' , script )
1783
1783
1784
- result .stdout .fnmatch_lines (['*- coverage: platform *, python * - *' , f'test_double_cov* { SCRIPT_SIMPLE_RESULT } *' , '*1 passed*' ])
1784
+ result .stdout .fnmatch_lines (['*_ coverage: platform *, python * _ *' , f'test_double_cov* { SCRIPT_SIMPLE_RESULT } *' , '*1 passed*' ])
1785
1785
assert result .ret == 0
1786
1786
1787
1787
1788
1788
def test_double_cov2 (testdir ):
1789
1789
script = testdir .makepyfile (SCRIPT_SIMPLE )
1790
1790
result = testdir .runpytest ('-v' , '--assert=plain' , '--cov' , '--cov' , script )
1791
1791
1792
- result .stdout .fnmatch_lines (['*- coverage: platform *, python * - *' , f'test_double_cov2* { SCRIPT_SIMPLE_RESULT } *' , '*1 passed*' ])
1792
+ result .stdout .fnmatch_lines (['*_ coverage: platform *, python * _ *' , f'test_double_cov2* { SCRIPT_SIMPLE_RESULT } *' , '*1 passed*' ])
1793
1793
assert result .ret == 0
1794
1794
1795
1795
@@ -1804,7 +1804,7 @@ def test_cov_reset_then_set(testdir):
1804
1804
script = testdir .makepyfile (SCRIPT_SIMPLE )
1805
1805
result = testdir .runpytest ('-v' , '--assert=plain' , f'--cov={ script .dirpath ()} ' , '--cov-reset' , f'--cov={ script .dirpath ()} ' , script )
1806
1806
1807
- result .stdout .fnmatch_lines (['*- coverage: platform *, python * - *' , f'test_cov_reset_then_set* { SCRIPT_SIMPLE_RESULT } *' , '*1 passed*' ])
1807
+ result .stdout .fnmatch_lines (['*_ coverage: platform *, python * _ *' , f'test_cov_reset_then_set* { SCRIPT_SIMPLE_RESULT } *' , '*1 passed*' ])
1808
1808
1809
1809
1810
1810
@pytest .mark .skipif ('sys.platform == "win32" and platform.python_implementation() == "PyPy"' )
0 commit comments