29aa58b7fb
- update to 1.2.0: * --asyncio-debug CLI option and asyncio_debug configuration option to enable asyncio debug mode for the default event loop. * A pytest.UsageError for invalid configuration values of asyncio_default_fixture_loop_scope and asyncio_default_test_loop_scope. * Compatibility with the Pyright type checker * RuntimeError: There is no current event loop in thread 'MainThread' when any test unsets the event loop (such as when using asyncio.run and asyncio.Runner). * Deprecation warning when decorating an asynchronous fixture with @pytest.fixture in strict mode. The warning message now refers to the correct package. * Bump the minimum required version of tox to v4.28. This change is only relevant if you use the tox.ini file provided by pytest-asyncio to run tests. * Extend dependency on typing-extensions>=4.12 from Python<3.10 to Python<3.13. * Propagation of ContextVars from async fixtures to other fixtures and tests on Python 3.10 and older * Cancellation of tasks when the loop_scope ends * Warning when the current event loop is closed by a test * Error about missing loop when calling functions requiring a loop in the finally clause of a task * An error that could cause duplicate warnings to be issued * Added runtime dependency on backports.asyncio.runner for use with Python 3.10 and older - drop pytest84.patch (upstream) * Deprecates the optional scope keyword argument to pytest.mark.asyncio
Dirk Mueller2025-09-13 09:47:58 +00:00
c9b0864e42
- Add upstream pytest84.patch for compatibility with pytest 8.4.0
Dirk Mueller2025-06-23 05:46:05 +00:00
12db308fe3
- update to 0.26.0: * Adds configuration option that sets default event loop scope for all tests #793 * Improved type annotations for pytest_asyncio.fixture #1045 * Added typing-extensions as additional dependency for Python <3.10 #1045Dirk Mueller2025-04-28 14:19:50 +00:00
d937cf86bd
- update to 0.26.0: * Adds configuration option that sets default event loop scope for all tests #793 * Improved type annotations for pytest_asyncio.fixture #1045 * Added typing-extensions as additional dependency for Python <3.10 #1045Dirk Mueller2025-04-28 14:19:50 +00:00
0d097c0969
Accepting request 1250596 from devel:languages:python:pytest
Ana Guerrero2025-03-06 13:48:07 +00:00
9e01ca835b
Accepting request 1250409 from home:ojkastl_buildservice:Branch_devel_languages_python_pytest
Markéta Machová2025-03-06 10:01:49 +00:00
24efb77e1a
Accepting request 1227110 from devel:languages:python:pytest
Ana Guerrero2024-11-28 21:42:35 +00:00
add431a608
Accepting request 1206345 from home:mcalabkova:branches:devel:languages:python
Dirk Mueller2024-10-09 05:30:01 +00:00
b1d5daabf2
Accepting request 1206345 from home:mcalabkova:branches:devel:languages:python
Dirk Mueller2024-10-09 05:30:01 +00:00
47fc0b7465
Accepting request 1186442 from devel:languages:python:pytest
Ana Guerrero2024-07-10 14:48:00 +00:00
c911410f7f
Accepting request 1186416 from home:mcalabkova:branches:devel:languages:python:numeric
Matej Cepl2024-07-09 15:33:36 +00:00
4ad6649829
- Add duplicated-markers.patch to fix some testsuites broken by that issue.
Matej Cepl2024-07-09 15:33:36 +00:00
5e476c6c7c
Accepting request 1179085 from devel:languages:python:pytest
Ana Guerrero2024-06-07 13:01:51 +00:00
aeb873394b
- update to 0.23.7: * Silence deprecation warnings about unclosed event loops that occurred with certain CPython patch releases
Dirk Mueller2024-06-06 20:27:05 +00:00
48d227f89e
Accepting request 1160433 from devel:languages:python:pytest
Ana Guerrero2024-03-26 18:24:21 +00:00
93c6c9b047
- update to 0.23.6: * compatibiltiy with pytest 8.2
Dirk Mueller2024-03-21 17:04:54 +00:00
4f724d43ca
Accepting request 1158427 from devel:languages:python:pytest
Ana Guerrero2024-03-18 15:44:07 +00:00
b90a05e029
- update to 0.23.5.post1: * Declare compatibility with pytest 8 * Fix typing errors with recent versions of mypy #769 * Prevent DeprecationWarning about internal use of asyncio.get_event_loop() from affecting test cases #757Dirk Mueller2024-03-16 09:46:58 +00:00
0220ff5e29
- update to 0.23.3: * Fixes a bug that caused event loops to be closed prematurely when using async generator fixtures with class scope or wider in a function-scoped test #706 * Fixes various bugs that caused an internal pytest error during test collection #711#713#719 * Fixes a bug that caused an internal pytest error when collecting .txt files * Fixes a bug that caused an internal pytest error when using module-level skips #701 This release is backwards-compatible with v0.21. 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 * Introduces pytest_asyncio.is_async_test which returns whether a test item is managed by pytest-asyncio * Removes and pytest trio, mypy, and flaky from the test dependencies * Deprecate redefinition of the event_loop fixture. #587 Users requiring a class-scoped or module-scoped asyncio event loop for their tests should mark the corresponding class or module with asyncio_event_loop. * Test items based on asynchronous generators always exit with xfail status and emit a warning during the collection phase. This behavior is consistent with synchronous yield tests. #642Dirk Mueller2024-01-02 12:15:19 +00:00
06a166d79c
Accepting request 1124081 from devel:languages:python:pytest
Ana Guerrero2023-11-08 21:17:08 +00:00
de06afb400
- remove unnecessary dependency on async_generator * Prevent DeprecationWarning to bubble up on CPython 3.10.9 and 3.11.1. #460 - Inject multibuild to defeat a build loop - Initial release of python-pytest-asyncio 0.8.0
Dirk Mueller2023-11-07 19:34:54 +00:00
25b861864f
Accepting request 1118228 from devel:languages:python:pytest
Ana Guerrero2023-10-19 20:47:10 +00:00
c473b19c6d
Accepting request 1118224 from home:mcalabkova:branches:devel:languages:python:pytest
Markéta Machová2023-10-17 08:39:29 +00:00
5fba09db8b
Accepting request 1100438 from devel:languages:python:pytest
Ana Guerrero2023-07-26 11:21:39 +00:00
ccb9fb7558
- update to 0.21.1: * Output a proper error message when an invalid `asyncio_mode` is selected. * Extend warning message about unclosed event loops with additional possible cause. * Previously, some tests reported "skipped" or "xfailed" as a result. Now all tests report a "success" result.
Dirk Mueller2023-07-24 18:40:37 +00:00
1aeefd231a
- update to 0.21.0: * Drop compatibility with pytest 6.1. Pytest-asyncio now depends on pytest 7.0 or newer. * pytest-asyncio cleans up any stale event loops when setting up and tearing down the event_loop fixture.
Dirk Mueller2023-05-04 22:37:45 +00:00
9d1155bcb0
- Update to 0.20.3: * Prevent DeprecationWarning to bubble up on CPython 3.10.9 and 3.11.1. #460Daniel Garcia2022-12-09 11:11:54 +00:00
e0498efb8d
- Update to 0.20.2: * Fixes an issue with async fixtures that are defined as methods on a test class not being rebound to the actual test instance. #197 * Replaced usage of deprecated @pytest.mark.tryfirst with @pytest.hookimpl(tryfirst=True) #438 - 0.20.1 (22-10-21) * Fixes an issue that warned about using an old version of pytest, even though the most recent version was installed. #430 - 0.20.0 (22-10-21) * BREAKING: Removed legacy mode. If you're upgrading from v0.19 and you haven't configured asyncio_mode = legacy, you can upgrade without taking any additional action. If you're upgrading from an earlier version or you have explicitly enabled legacy mode, you need to switch to auto or strict mode before upgrading to this version. * Deprecate use of pytest v6. * Fixed an issue which prevented fixture setup from being cached. #404Daniel Garcia2022-11-30 07:15:50 +00:00