diff options
author | Ned Batchelder <ned@nedbatchelder.com> | 2022-05-13 07:27:36 -0400 |
---|---|---|
committer | Ned Batchelder <ned@nedbatchelder.com> | 2022-05-13 07:27:36 -0400 |
commit | b3aa805c064f6c07d0780c815d92960484999afc (patch) | |
tree | 38f0af9f5aaa299927451a62cbca01142c4d656e | |
parent | 6697d044128d58c462b20867f4008225ff7ed9fc (diff) | |
download | python-coveragepy-git-b3aa805c064f6c07d0780c815d92960484999afc.tar.gz |
test: remove version-specfic skips we no longer need
-rw-r--r-- | coverage/sqldata.py | 3 | ||||
-rw-r--r-- | lab/extract_code.py | 4 | ||||
-rw-r--r-- | tests/test_arcs.py | 21 | ||||
-rw-r--r-- | tests/test_coverage.py | 5 |
4 files changed, 0 insertions, 33 deletions
diff --git a/coverage/sqldata.py b/coverage/sqldata.py index aa4002a7..5a2de838 100644 --- a/coverage/sqldata.py +++ b/coverage/sqldata.py @@ -501,9 +501,6 @@ class CoverageData(SimpleReprMixin): self._set_context_id() for filename, arcs in arc_data.items(): file_id = self._file_id(filename, add=True) - from coverage import env - if env.PYVERSION == (3, 11, 0, "alpha", 4, 0): - arcs = [(a, b) for a, b in arcs if a is not None and b is not None] data = [(file_id, self._current_context_id, fromno, tono) for fromno, tono in arcs] con.executemany( "insert or ignore into arc " + diff --git a/lab/extract_code.py b/lab/extract_code.py index c5a9df81..e9fc086f 100644 --- a/lab/extract_code.py +++ b/lab/extract_code.py @@ -11,10 +11,6 @@ contents of the string. If tests/test_arcs.py has this (partial) content:: - 1626 @pytest.mark.skipif( - 1627 (3, 11, 0, "alpha", 4) <= env.PYVERSION, - 1628 reason="avoid a 3.11 bug: https://bugs.python.org/issue46389", - 1629 ) 1630 def test_partial_generators(self): 1631 # https://github.com/nedbat/coveragepy/issues/475 1632 # Line 2 is executed completely. diff --git a/tests/test_arcs.py b/tests/test_arcs.py index fdd38bf8..f094cc90 100644 --- a/tests/test_arcs.py +++ b/tests/test_arcs.py @@ -280,10 +280,6 @@ class WithTest(CoverageTest): arcz=arcz, ) - @pytest.mark.xfail( - (3, 11) <= env.PYVERSION <= (3, 11, 0, 'alpha', 2, 0), - reason="avoid a 3.11 bug: 45709" - ) # https://github.com/nedbat/coveragepy/issues/1270 def test_raise_through_with(self): if env.PYBEHAVIOR.exit_through_with: @@ -1206,11 +1202,6 @@ class YieldTest(CoverageTest): arcz=".1 19 9. .2 23 34 45 56 63 37 7.", ) - # https://bugs.python.org/issue46225 - @pytest.mark.xfail( - env.PYVERSION[:5] == (3, 11, 0, 'alpha', 3), - reason="avoid 3.11 bug: bpo46225", - ) @skip_cpython_92236 def test_bug_308(self): self.check_coverage("""\ @@ -1319,7 +1310,6 @@ class YieldTest(CoverageTest): ) -@pytest.mark.xfail(env.PYVERSION <= (3, 10, 0, 'beta', 4, 0), reason="3.10.0b4 had bugs") @pytest.mark.skipif(not env.PYBEHAVIOR.match_case, reason="Match-case is new in 3.10") class MatchCaseTest(CoverageTest): """Tests of match-case.""" @@ -1950,7 +1940,6 @@ class AsyncTest(CoverageTest): # https://github.com/nedbat/coveragepy/issues/1158 # https://bugs.python.org/issue44621 @pytest.mark.skipif(env.PYVERSION[:2] == (3, 9), reason="avoid a 3.9 bug: 44621") - @pytest.mark.skipif(env.PYVERSION < (3, 7), reason="need asyncio.run") @skip_cpython_92236 def test_bug_1158(self): self.check_coverage("""\ @@ -1976,12 +1965,7 @@ class AsyncTest(CoverageTest): # https://github.com/nedbat/coveragepy/issues/1176 # https://bugs.python.org/issue44622 - @pytest.mark.xfail( - (3, 10, 0, "alpha", 0, 0) <= env.PYVERSION <= (3, 10, 0, "beta", 4, 0), - reason="avoid a 3.10 bug fixed after beta 4: 44622" - ) @xfail_eventlet_670 - @pytest.mark.skipif(env.PYVERSION < (3, 7), reason="need asyncio.run") @skip_cpython_92236 def test_bug_1176(self): self.check_coverage("""\ @@ -2001,11 +1985,6 @@ class AsyncTest(CoverageTest): assert self.stdout() == "12\n" # https://github.com/nedbat/coveragepy/issues/1205 - # https://bugs.python.org/issue44840 - @pytest.mark.xfail( - (3, 10, 0, "alpha", 0, 0) <= env.PYVERSION <= (3, 10, 0, "candidate", 1, 0), - reason="avoid a 3.10 bug fixed after rc1: 44840" - ) def test_bug_1205(self): self.check_coverage("""\ def func(): diff --git a/tests/test_coverage.py b/tests/test_coverage.py index 9164db0f..17da4f5e 100644 --- a/tests/test_coverage.py +++ b/tests/test_coverage.py @@ -1213,11 +1213,6 @@ class CompoundStatementTest(CoverageTest): """, [1,10,12,13], "") - @pytest.mark.xfail( - (3, 11, 0, "alpha", 3, 0) <= env.PYVERSION < (3, 11, 0, "alpha", 4, 0), - reason="avoid class docstring bug: bpo 46331", - # https://bugs.python.org/issue46331 - ) def test_class_def(self): arcz="-22 2D DE E-2 23 36 6A A-2 -68 8-6 -AB B-A" self.check_coverage("""\ |