3
3
import platform
4
4
import subprocess
5
5
import sys
6
- from distutils .version import StrictVersion
7
6
from itertools import chain
8
7
9
8
import coverage
25
24
import pytest_cov .plugin
26
25
from pytest_cov import compat
27
26
28
- coverage , platform , StrictVersion # required for skipif mark on test_cov_min_from_coveragerc
27
+ coverage , platform # required for skipif mark on test_cov_min_from_coveragerc
29
28
30
29
max_worker_restart_0 = "--max-" + compat .worker + "-restart=0"
31
30
@@ -468,7 +467,6 @@ def test_central_nonspecific(testdir, prop):
468
467
assert result .ret == 0
469
468
470
469
471
- @pytest .mark .skipif ('StrictVersion(coverage.__version__) <= StrictVersion("3.8")' )
472
470
def test_cov_min_from_coveragerc (testdir ):
473
471
script = testdir .makepyfile (SCRIPT )
474
472
testdir .tmpdir .join ('.coveragerc' ).write ("""
@@ -1636,7 +1634,6 @@ def test_basic():
1636
1634
SKIP_COVERED_RESULT = '1 file skipped due to complete coverage.'
1637
1635
1638
1636
1639
- @pytest .mark .skipif ('StrictVersion(coverage.__version__) < StrictVersion("4.0")' )
1640
1637
@pytest .mark .parametrize ('report_option' , [
1641
1638
'term-missing:skip-covered' ,
1642
1639
'term:skip-covered' ])
@@ -1651,7 +1648,6 @@ def test_skip_covered_cli(testdir, report_option):
1651
1648
result .stdout .fnmatch_lines ([SKIP_COVERED_RESULT ])
1652
1649
1653
1650
1654
- @pytest .mark .skipif ('StrictVersion(coverage.__version__) < StrictVersion("4.0")' )
1655
1651
def test_skip_covered_coveragerc_config (testdir ):
1656
1652
testdir .makefile ('' , coveragerc = SKIP_COVERED_COVERAGERC )
1657
1653
script = testdir .makepyfile (SKIP_COVERED_TEST )
0 commit comments