diff --git a/dependencies/default/constraints.txt b/dependencies/default/constraints.txt index 92272c7d..5876750d 100644 --- a/dependencies/default/constraints.txt +++ b/dependencies/default/constraints.txt @@ -1,11 +1,8 @@ attrs==23.1.0 coverage==7.3.2 exceptiongroup==1.1.3 -flaky==3.7.0 hypothesis==6.90.0 iniconfig==2.0.0 -mypy==1.7.0 -mypy-extensions==1.0.0 packaging==23.2 pluggy==1.3.0 pytest==7.4.3 diff --git a/dependencies/pytest-min/constraints.txt b/dependencies/pytest-min/constraints.txt index 133398b3..65e3addb 100644 --- a/dependencies/pytest-min/constraints.txt +++ b/dependencies/pytest-min/constraints.txt @@ -5,13 +5,10 @@ charset-normalizer==3.3.1 coverage==7.3.2 elementpath==4.1.5 exceptiongroup==1.1.3 -flaky==3.7.0 hypothesis==6.88.3 idna==3.4 iniconfig==2.0.0 mock==5.1.0 -mypy==1.6.1 -mypy-extensions==1.0.0 nose==1.3.7 packaging==23.2 pluggy==1.3.0 @@ -21,6 +18,5 @@ pytest==7.0.0 requests==2.31.0 sortedcontainers==2.4.0 tomli==2.0.1 -typing_extensions==4.8.0 urllib3==2.0.7 xmlschema==2.5.0 diff --git a/docs/source/reference/changelog.rst b/docs/source/reference/changelog.rst index 504c58f7..1c577af5 100644 --- a/docs/source/reference/changelog.rst +++ b/docs/source/reference/changelog.rst @@ -10,7 +10,7 @@ Changes are non-breaking, unless you upgrade from v0.22. - BREAKING: The *asyncio_event_loop* mark has been removed. Event loops with class, module, package, and session scopes can be requested via the *scope* keyword argument to the _asyncio_ mark. - Introduces the *event_loop_policy* fixture which allows testing with non-default or multiple event loops `#662 `_ - Introduces ``pytest_asyncio.is_async_test`` which returns whether a test item is managed by pytest-asyncio `#376 `_ -- Removes pytest-trio from the test dependencies `#620 `_ +- Removes and *pytest-trio,* *mypy,* and *flaky* from the test dependencies `#620 `_, `#674 `_, `#678 `_, 0.22.0 (2023-10-31) =================== diff --git a/setup.cfg b/setup.cfg index fcd7477b..fdbaf625 100644 --- a/setup.cfg +++ b/setup.cfg @@ -46,8 +46,6 @@ install_requires = testing = coverage >= 6.2 hypothesis >= 5.7.1 - flaky >= 3.5.0 - mypy >= 0.931 docs = sphinx >= 5.3 sphinx-rtd-theme >= 1.0 diff --git a/tests/test_flaky_integration.py b/tests/test_flaky_integration.py deleted file mode 100644 index 54c9d2ea..00000000 --- a/tests/test_flaky_integration.py +++ /dev/null @@ -1,43 +0,0 @@ -"""Tests for the Flaky integration, which retries failed tests. -""" -from textwrap import dedent - - -def test_auto_mode_cmdline(testdir): - testdir.makepyfile( - dedent( - """\ - import asyncio - import flaky - import pytest - - _threshold = -1 - - @flaky.flaky(3, 2) - @pytest.mark.asyncio - async def test_asyncio_flaky_thing_that_fails_then_succeeds(): - global _threshold - await asyncio.sleep(0.1) - _threshold += 1 - assert _threshold != 1 - """ - ) - ) - # runpytest_subprocess() is required to don't pollute the output - # with flaky restart information - result = testdir.runpytest_subprocess("--asyncio-mode=strict") - result.assert_outcomes(passed=1) - result.stdout.fnmatch_lines( - [ - "===Flaky Test Report===", - "test_asyncio_flaky_thing_that_fails_then_succeeds passed 1 " - "out of the required 2 times. Running test again until it passes 2 times.", - "test_asyncio_flaky_thing_that_fails_then_succeeds failed " - "(1 runs remaining out of 3).", - " ", - " assert 1 != 1", - "test_asyncio_flaky_thing_that_fails_then_succeeds passed 2 " - "out of the required 2 times. Success!", - "===End Flaky Test Report===", - ] - )