|
18 | 18 | from types import ModuleType |
19 | 19 | from collections.abc import Iterable |
20 | 20 |
|
21 | | -from flaky import flaky |
22 | 21 | import pytest |
23 | 22 |
|
24 | 23 | import coverage |
|
30 | 29 |
|
31 | 30 | from tests import testenv |
32 | 31 | from tests.coveragetest import CoverageTest |
33 | | -from tests.helpers import flaky_method |
34 | 32 |
|
35 | 33 |
|
36 | 34 | # These libraries aren't always available, we'll skip tests if they aren't. |
@@ -318,7 +316,7 @@ def do(): |
318 | 316 | """ |
319 | 317 | self.try_some_code(BUG_330, "eventlet", eventlet, "0\n") |
320 | 318 |
|
321 | | - @flaky_method(max_runs=3) # Sometimes a test fails due to inherent randomness. Try more times. |
| 319 | + @pytest.mark.flaky(max_runs=3) # Sometimes a test fails due to inherent randomness. Try more times. |
322 | 320 | def test_threads_with_gevent(self) -> None: |
323 | 321 | self.make_file("both.py", """\ |
324 | 322 | import queue |
@@ -452,7 +450,7 @@ def start_method_fixture(request: pytest.FixtureRequest) -> str: |
452 | 450 | return start_method |
453 | 451 |
|
454 | 452 |
|
455 | | -#@flaky(max_runs=30) # Sometimes a test fails due to inherent randomness. Try more times. |
| 453 | +#@pytest.mark.flaky(max_runs=30) # Sometimes a test fails due to inherent randomness. Try more times. |
456 | 454 | class MultiprocessingTest(CoverageTest): |
457 | 455 | """Test support of the multiprocessing module.""" |
458 | 456 |
|
@@ -705,7 +703,7 @@ def random_load() -> None: # pragma: nested |
705 | 703 |
|
706 | 704 |
|
707 | 705 | @pytest.mark.skipif(env.WINDOWS, reason="SIGTERM doesn't work the same on Windows") |
708 | | -@flaky(max_runs=3) # Sometimes a test fails due to inherent randomness. Try more times. |
| 706 | +@pytest.mark.flaky(max_runs=3) # Sometimes a test fails due to inherent randomness. Try more times. |
709 | 707 | class SigtermTest(CoverageTest): |
710 | 708 | """Tests of our handling of SIGTERM.""" |
711 | 709 |
|
|
0 commit comments