From 79998c5fa535981a079feda430509c413310cd2f Mon Sep 17 00:00:00 2001 From: Michael Seifert Date: Wed, 14 May 2025 06:45:11 +0200 Subject: [PATCH 1/2] docs: Disassemble v1.0.0a1 changelog into fragments. This allows adding fragments to further pre-releases. --- changelog.d/1025.added.rst | 1 + changelog.d/1106.removed.rst | 1 + changelog.d/1107.changed.rst | 1 + changelog.d/1112.changed.rst | 1 + docs/reference/changelog.rst | 22 ---------------------- 5 files changed, 4 insertions(+), 22 deletions(-) create mode 100644 changelog.d/1025.added.rst create mode 100644 changelog.d/1106.removed.rst create mode 100644 changelog.d/1107.changed.rst create mode 100644 changelog.d/1112.changed.rst diff --git a/changelog.d/1025.added.rst b/changelog.d/1025.added.rst new file mode 100644 index 00000000..24977eda --- /dev/null +++ b/changelog.d/1025.added.rst @@ -0,0 +1 @@ +Prelimiary support for Python 3.14 diff --git a/changelog.d/1106.removed.rst b/changelog.d/1106.removed.rst new file mode 100644 index 00000000..75cec456 --- /dev/null +++ b/changelog.d/1106.removed.rst @@ -0,0 +1 @@ +The deprecated *event_loop* fixture. diff --git a/changelog.d/1107.changed.rst b/changelog.d/1107.changed.rst new file mode 100644 index 00000000..94a97c08 --- /dev/null +++ b/changelog.d/1107.changed.rst @@ -0,0 +1 @@ +Scoped event loops (e.g. module-scoped loops) are created once rather than per scope (e.g. per module). This reduces the number of fixtures and speeds up collection time, especially for large test suites. diff --git a/changelog.d/1112.changed.rst b/changelog.d/1112.changed.rst new file mode 100644 index 00000000..3a4976e3 --- /dev/null +++ b/changelog.d/1112.changed.rst @@ -0,0 +1 @@ +The *loop_scope* argument to ``pytest.mark.asyncio`` no longer forces that a pytest Collector exists at the level of the specified scope. For example, a test function marked with ``pytest.mark.asyncio(loop_scope="class")`` no longer requires a class surrounding the test. This is consistent with the behavior of the *scope* argument to ``pytest_asyncio.fixture``. diff --git a/docs/reference/changelog.rst b/docs/reference/changelog.rst index ed396717..8b2317bb 100644 --- a/docs/reference/changelog.rst +++ b/docs/reference/changelog.rst @@ -10,28 +10,6 @@ This project uses `towncrier `__ for changlog .. towncrier release notes start -`1.0.0a1 `_ - 2025-05-09 -=================================================================================== - -Removed -------- - -- The deprecated *event_loop* fixture. (`#1106 `_) - - -Added ------ - -- Prelimiary support for Python 3.14 (`#1025 `_) - - -Changed -------- - -- Scoped event loops (e.g. module-scoped loops) are created once rather than per scope (e.g. per module). This reduces the number of fixtures and speeds up collection time, especially for large test suites. (`#1107 `_) -- The *loop_scope* argument to ``pytest.mark.asyncio`` no longer forces that a pytest Collector exists at the level of the specified scope. For example, a test function marked with ``pytest.mark.asyncio(loop_scope="class")`` no longer requires a class surrounding the test. This is consistent with the behavior of the *scope* argument to ``pytest_asyncio.fixture``. (`#1112 `_) - - 0.26.0 (2025-03-25) =================== - Adds configuration option that sets default event loop scope for all tests `#793 `_ From 8c332a9593240b7bca97cd62d9927829263ec3a1 Mon Sep 17 00:00:00 2001 From: Michael Seifert Date: Wed, 14 May 2025 06:49:09 +0200 Subject: [PATCH 2/2] docs: Mention issue 630 as fixed in release notes. --- changelog.d/630.fixed.rst | 1 + 1 file changed, 1 insertion(+) create mode 100644 changelog.d/630.fixed.rst diff --git a/changelog.d/630.fixed.rst b/changelog.d/630.fixed.rst new file mode 100644 index 00000000..2208005d --- /dev/null +++ b/changelog.d/630.fixed.rst @@ -0,0 +1 @@ +An error caused when using pytest's `--setup-plan` option.