diff options
author | Ned Batchelder <ned@nedbatchelder.com> | 2022-12-23 21:56:16 -0500 |
---|---|---|
committer | Ned Batchelder <ned@nedbatchelder.com> | 2022-12-24 06:49:37 -0500 |
commit | 8854164c225e867bbdd794e2d39cbec104a67549 (patch) | |
tree | d0df011933295da633978b1ffeb81f735d2f59c9 /tests/test_arcs.py | |
parent | efbda9ece633d8a97f950bb09d3324b4f458ffec (diff) | |
download | python-coveragepy-git-8854164c225e867bbdd794e2d39cbec104a67549.tar.gz |
test: remove obsolete skips
Diffstat (limited to 'tests/test_arcs.py')
-rw-r--r-- | tests/test_arcs.py | 21 |
1 files changed, 0 insertions, 21 deletions
diff --git a/tests/test_arcs.py b/tests/test_arcs.py index 1f2e50d7..df7d0001 100644 --- a/tests/test_arcs.py +++ b/tests/test_arcs.py @@ -13,13 +13,6 @@ from coverage import env from coverage.files import abs_file -skip_cpython_92236 = pytest.mark.skipif( - env.PYVERSION == (3, 11, 0, "beta", 1, 0), - reason="Avoid a CPython bug: https://github.com/python/cpython/issues/92236", - # #92236 is fixed in https://github.com/python/cpython/pull/92722 - # and in https://github.com/python/cpython/pull/92772 -) - class SimpleArcTest(CoverageTest): """Tests for coverage.py's arc measurement.""" @@ -610,7 +603,6 @@ class LoopArcTest(CoverageTest): arcz_missing="26 3. 6.", ) - @skip_cpython_92236 def test_generator_expression(self): # Generator expression: self.check_coverage("""\ @@ -623,7 +615,6 @@ class LoopArcTest(CoverageTest): arcz=".1 -22 2-2 12 23 34 45 53 3.", ) - @skip_cpython_92236 def test_generator_expression_another_way(self): # https://bugs.python.org/issue44450 # Generator expression: @@ -1176,7 +1167,6 @@ class ExceptionArcTest(CoverageTest): class YieldTest(CoverageTest): """Arc tests for generators.""" - @skip_cpython_92236 def test_yield_in_loop(self): self.check_coverage("""\ def gen(inp): @@ -1188,7 +1178,6 @@ class YieldTest(CoverageTest): arcz=".1 .2 23 2. 32 15 5.", ) - @skip_cpython_92236 def test_padded_yield_in_loop(self): self.check_coverage("""\ def gen(inp): @@ -1204,7 +1193,6 @@ class YieldTest(CoverageTest): arcz=".1 19 9. .2 23 34 45 56 63 37 7.", ) - @skip_cpython_92236 def test_bug_308(self): self.check_coverage("""\ def run(): @@ -1239,7 +1227,6 @@ class YieldTest(CoverageTest): arcz=".1 14 45 54 4. .2 2. -22 2-2", ) - @skip_cpython_92236 def test_bug_324(self): # This code is tricky: the list() call pulls all the values from gen(), # but each of them is a generator itself that is never iterated. As a @@ -1258,7 +1245,6 @@ class YieldTest(CoverageTest): arcz_missing="-33 3-3", ) - @skip_cpython_92236 def test_coroutines(self): self.check_coverage("""\ def double_inputs(): @@ -1278,7 +1264,6 @@ class YieldTest(CoverageTest): ) assert self.stdout() == "20\n12\n" - @skip_cpython_92236 def test_yield_from(self): self.check_coverage("""\ def gen(inp): @@ -1294,7 +1279,6 @@ class YieldTest(CoverageTest): arcz=".1 19 9. .2 23 34 45 56 63 37 7.", ) - @skip_cpython_92236 def test_abandoned_yield(self): # https://github.com/nedbat/coveragepy/issues/440 self.check_coverage("""\ @@ -1635,7 +1619,6 @@ class MiscArcTest(CoverageTest): self.check_coverage(code, arcs=[(-1, 1), (1, 2*n+4), (2*n+4, -1)]) assert self.stdout() == f"{n}\n" - @skip_cpython_92236 def test_partial_generators(self): # https://github.com/nedbat/coveragepy/issues/475 # Line 2 is executed completely. @@ -1856,7 +1839,6 @@ class AsyncTest(CoverageTest): """Tests of the new async and await keywords in Python 3.5""" @xfail_eventlet_670 - @skip_cpython_92236 def test_async(self): self.check_coverage("""\ import asyncio @@ -1884,7 +1866,6 @@ class AsyncTest(CoverageTest): assert self.stdout() == "Compute 1 + 2 ...\n1 + 2 = 3\n" @xfail_eventlet_670 - @skip_cpython_92236 def test_async_for(self): self.check_coverage("""\ import asyncio @@ -1960,7 +1941,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") - @skip_cpython_92236 def test_bug_1158(self): self.check_coverage("""\ import asyncio @@ -1986,7 +1966,6 @@ class AsyncTest(CoverageTest): # https://github.com/nedbat/coveragepy/issues/1176 # https://bugs.python.org/issue44622 @xfail_eventlet_670 - @skip_cpython_92236 def test_bug_1176(self): self.check_coverage("""\ import asyncio |