diff options
author | Ned Batchelder <ned@nedbatchelder.com> | 2021-11-24 07:41:33 -0500 |
---|---|---|
committer | Ned Batchelder <ned@nedbatchelder.com> | 2021-11-24 07:41:33 -0500 |
commit | f0c8797846290e3fc466793aa0930eb79e1eeffc (patch) | |
tree | 1914be360198062f1021efc5c57bc891438e2ab9 /tests/test_arcs.py | |
parent | 3dfa4498abf5885307f921862f7d367166af76a6 (diff) | |
download | python-coveragepy-git-f0c8797846290e3fc466793aa0930eb79e1eeffc.tar.gz |
test(fix): skip tests that trip a specific Mac 3.9 eventlet bug
Diffstat (limited to 'tests/test_arcs.py')
-rw-r--r-- | tests/test_arcs.py | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/tests/test_arcs.py b/tests/test_arcs.py index 82bf88fe..46c66938 100644 --- a/tests/test_arcs.py +++ b/tests/test_arcs.py @@ -1830,9 +1830,17 @@ class LambdaArcTest(CoverageTest): ) +skip_eventlet_670 = pytest.mark.skipif( + env.PYVERSION[:2] == (3, 9) and env.OSX, + reason="Avoid an eventlet bug on Mac 3.9: eventlet#670", + # https://github.com/eventlet/eventlet/issues/670 +) + + class AsyncTest(CoverageTest): """Tests of the new async and await keywords in Python 3.5""" + @skip_eventlet_670 def test_async(self): self.check_coverage("""\ import asyncio @@ -1860,6 +1868,7 @@ class AsyncTest(CoverageTest): ) assert self.stdout() == "Compute 1 + 2 ...\n1 + 2 = 3\n" + @skip_eventlet_670 def test_async_for(self): self.check_coverage("""\ import asyncio @@ -1962,6 +1971,7 @@ class AsyncTest(CoverageTest): (3, 10, 0, "alpha", 0, 0) <= env.PYVERSION[:6] <= (3, 10, 0, "beta", 4, 0), reason="avoid a 3.10 bug fixed after beta 4: 44622" ) + @skip_eventlet_670 @pytest.mark.skipif(env.PYVERSION < (3, 7), reason="need asyncio.run") def test_bug1176(self): self.check_coverage("""\ |