Skip to content

Commit b3aa805

Browse files
committed
test: remove version-specfic skips we no longer need
1 parent 6697d04 commit b3aa805

File tree

4 files changed

+0
-33
lines changed

4 files changed

+0
-33
lines changed

coverage/sqldata.py

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -501,9 +501,6 @@ def add_arcs(self, arc_data):
501501
self._set_context_id()
502502
for filename, arcs in arc_data.items():
503503
file_id = self._file_id(filename, add=True)
504-
from coverage import env
505-
if env.PYVERSION == (3, 11, 0, "alpha", 4, 0):
506-
arcs = [(a, b) for a, b in arcs if a is not None and b is not None]
507504
data = [(file_id, self._current_context_id, fromno, tono) for fromno, tono in arcs]
508505
con.executemany(
509506
"insert or ignore into arc " +

lab/extract_code.py

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -11,10 +11,6 @@
1111
1212
If tests/test_arcs.py has this (partial) content::
1313
14-
1626 @pytest.mark.skipif(
15-
1627 (3, 11, 0, "alpha", 4) <= env.PYVERSION,
16-
1628 reason="avoid a 3.11 bug: https://bugs.python.org/issue46389",
17-
1629 )
1814
1630 def test_partial_generators(self):
1915
1631 # https://github.com/nedbat/coveragepy/issues/475
2016
1632 # Line 2 is executed completely.

tests/test_arcs.py

Lines changed: 0 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -280,10 +280,6 @@ def test_continue_through_with(self):
280280
arcz=arcz,
281281
)
282282

283-
@pytest.mark.xfail(
284-
(3, 11) <= env.PYVERSION <= (3, 11, 0, 'alpha', 2, 0),
285-
reason="avoid a 3.11 bug: 45709"
286-
)
287283
# https://github.com/nedbat/coveragepy/issues/1270
288284
def test_raise_through_with(self):
289285
if env.PYBEHAVIOR.exit_through_with:
@@ -1206,11 +1202,6 @@ def gen(inp):
12061202
arcz=".1 19 9. .2 23 34 45 56 63 37 7.",
12071203
)
12081204

1209-
# https://bugs.python.org/issue46225
1210-
@pytest.mark.xfail(
1211-
env.PYVERSION[:5] == (3, 11, 0, 'alpha', 3),
1212-
reason="avoid 3.11 bug: bpo46225",
1213-
)
12141205
@skip_cpython_92236
12151206
def test_bug_308(self):
12161207
self.check_coverage("""\
@@ -1319,7 +1310,6 @@ def gen():
13191310
)
13201311

13211312

1322-
@pytest.mark.xfail(env.PYVERSION <= (3, 10, 0, 'beta', 4, 0), reason="3.10.0b4 had bugs")
13231313
@pytest.mark.skipif(not env.PYBEHAVIOR.match_case, reason="Match-case is new in 3.10")
13241314
class MatchCaseTest(CoverageTest):
13251315
"""Tests of match-case."""
@@ -1950,7 +1940,6 @@ async def go():
19501940
# https://github.com/nedbat/coveragepy/issues/1158
19511941
# https://bugs.python.org/issue44621
19521942
@pytest.mark.skipif(env.PYVERSION[:2] == (3, 9), reason="avoid a 3.9 bug: 44621")
1953-
@pytest.mark.skipif(env.PYVERSION < (3, 7), reason="need asyncio.run")
19541943
@skip_cpython_92236
19551944
def test_bug_1158(self):
19561945
self.check_coverage("""\
@@ -1976,12 +1965,7 @@ async def async_test():
19761965

19771966
# https://github.com/nedbat/coveragepy/issues/1176
19781967
# https://bugs.python.org/issue44622
1979-
@pytest.mark.xfail(
1980-
(3, 10, 0, "alpha", 0, 0) <= env.PYVERSION <= (3, 10, 0, "beta", 4, 0),
1981-
reason="avoid a 3.10 bug fixed after beta 4: 44622"
1982-
)
19831968
@xfail_eventlet_670
1984-
@pytest.mark.skipif(env.PYVERSION < (3, 7), reason="need asyncio.run")
19851969
@skip_cpython_92236
19861970
def test_bug_1176(self):
19871971
self.check_coverage("""\
@@ -2001,11 +1985,6 @@ async def async_test():
20011985
assert self.stdout() == "12\n"
20021986

20031987
# https://github.com/nedbat/coveragepy/issues/1205
2004-
# https://bugs.python.org/issue44840
2005-
@pytest.mark.xfail(
2006-
(3, 10, 0, "alpha", 0, 0) <= env.PYVERSION <= (3, 10, 0, "candidate", 1, 0),
2007-
reason="avoid a 3.10 bug fixed after rc1: 44840"
2008-
)
20091988
def test_bug_1205(self):
20101989
self.check_coverage("""\
20111990
def func():

tests/test_coverage.py

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1213,11 +1213,6 @@ def foo(
12131213
""",
12141214
[1,10,12,13], "")
12151215

1216-
@pytest.mark.xfail(
1217-
(3, 11, 0, "alpha", 3, 0) <= env.PYVERSION < (3, 11, 0, "alpha", 4, 0),
1218-
reason="avoid class docstring bug: bpo 46331",
1219-
# https://bugs.python.org/issue46331
1220-
)
12211216
def test_class_def(self):
12221217
arcz="-22 2D DE E-2 23 36 6A A-2 -68 8-6 -AB B-A"
12231218
self.check_coverage("""\

0 commit comments

Comments
 (0)