From 0220ff5e294ffbf2802c5db36f0150bb2eaba2ba80166551baa69405271a91c8 Mon Sep 17 00:00:00 2001 From: Dirk Mueller Date: Tue, 2 Jan 2024 12:15:19 +0000 Subject: [PATCH] - 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. #642 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python:pytest/python-pytest-asyncio?expand=0&rev=36 --- pytest-asyncio-0.21.1.tar.gz | 3 --- pytest-asyncio-0.23.3.tar.gz | 3 +++ python-pytest-asyncio.changes | 37 +++++++++++++++++++++++++++++++++++ python-pytest-asyncio.spec | 12 ++++-------- 4 files changed, 44 insertions(+), 11 deletions(-) delete mode 100644 pytest-asyncio-0.21.1.tar.gz create mode 100644 pytest-asyncio-0.23.3.tar.gz diff --git a/pytest-asyncio-0.21.1.tar.gz b/pytest-asyncio-0.21.1.tar.gz deleted file mode 100644 index 599e53f..0000000 --- a/pytest-asyncio-0.21.1.tar.gz +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:94ab6dc6daba9317682e912686e1570fc500ca6758093ee17d20808cae2a1dbc -size 29240 diff --git a/pytest-asyncio-0.23.3.tar.gz b/pytest-asyncio-0.23.3.tar.gz new file mode 100644 index 0000000..cdf3145 --- /dev/null +++ b/pytest-asyncio-0.23.3.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:c6d3ff22ea5ef19845a411898d8acf00459b2718228d53e04fe2fa8541c78cb2 +size 42685 diff --git a/python-pytest-asyncio.changes b/python-pytest-asyncio.changes index afcf690..05bc87e 100644 --- a/python-pytest-asyncio.changes +++ b/python-pytest-asyncio.changes @@ -1,3 +1,40 @@ +------------------------------------------------------------------- +Tue Jan 2 12:01:57 UTC 2024 - Dirk Müller + +- 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. + #642 + * Remove support for Python 3.7 + * Declare support for Python 3.12 +- drop hypothesis-health-check.patch (upstream) + ------------------------------------------------------------------- Tue Nov 7 19:34:40 UTC 2023 - Dirk Müller diff --git a/python-pytest-asyncio.spec b/python-pytest-asyncio.spec index 6f529e6..3113d87 100644 --- a/python-pytest-asyncio.spec +++ b/python-pytest-asyncio.spec @@ -1,7 +1,7 @@ # # spec file # -# Copyright (c) 2023 SUSE LLC +# Copyright (c) 2024 SUSE LLC # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed @@ -26,15 +26,13 @@ %endif %{?sle15_python_module_pythons} Name: python-pytest-asyncio%{psuffix} -Version: 0.21.1 +Version: 0.23.3 Release: 0 Summary: Pytest support for asyncio License: Apache-2.0 URL: https://github.com/pytest-dev/pytest-asyncio Source: https://github.com/pytest-dev/pytest-asyncio/archive/v%{version}.tar.gz#/pytest-asyncio-%{version}.tar.gz -# PATCH-FIX-UPSTREAM https://github.com/pytest-dev/pytest-asyncio/commit/fd57e55db1170c029324a7a9c56f86f14468217e [test] Addresses a Hypothesis health check that leads to failing tests. -Patch: hypothesis-health-check.patch -BuildRequires: %{python_module base >= 3.7} +BuildRequires: %{python_module base >= 3.8} BuildRequires: %{python_module pip} BuildRequires: %{python_module setuptools_scm} BuildRequires: %{python_module setuptools} @@ -47,11 +45,9 @@ Requires: python-typing-extensions >= 3.7.2 %endif BuildArch: noarch %if %{with test} -BuildRequires: %{python_module flaky >= 3.5.0} BuildRequires: %{python_module hypothesis >= 5.7.1} BuildRequires: %{python_module pytest >= 7.0.0} BuildRequires: %{python_module pytest-asyncio = %{version}} -BuildRequires: %{python_module pytest-trio >= 0.7} %endif %python_subpackages @@ -86,7 +82,7 @@ export SETUPTOOLS_SCM_PRETEND_VERSION=%{version} %doc README.rst %license LICENSE %{python_sitelib}/pytest_asyncio -%{python_sitelib}/pytest_asyncio-%{version}*-info +%{python_sitelib}/pytest_asyncio-%{version}.dist-info %endif %changelog