Your message dated Sat, 01 Jun 2024 11:40:48 +0000
with message-id <e1sdn6o-00dphr...@fasolo.debian.org>
and subject line Bug#1072057: fixed in python-pytest-asyncio 0.20.3-1.3
has caused the Debian Bug report #1072057,
regarding python3-pytest-asyncio: AttributeError: 'FixtureDef' object has no 
attribute 'unittest'
to be marked as done.

This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.

(NB: If you are a system administrator and have no idea what this
message is talking about, this may indicate a serious mail system
misconfiguration somewhere. Please contact ow...@bugs.debian.org
immediately.)


-- 
1072057: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1072057
Debian Bug Tracking System
Contact ow...@bugs.debian.org with problems
--- Begin Message ---
Package: python3-pytest-ayncio
Version: 0.20.3-1.2
Severity: serious
Tags: patch

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA512

Dear maintainer,

pytest-asyncio has a regression with pytest 8.2. For your convenience, find 
attached a backported patch that will resolve the issue. Alternatively, you 
may want to upgrade to upstream version 0.21.2.


Cheers
Timo


-----BEGIN PGP SIGNATURE-----

iQIzBAEBCgAdFiEEmwPruYMA35fCsSO/zIxr3RQD9MoFAmZU+SAACgkQzIxr3RQD
9Mp8pBAAq+PAf003L28cueSvIx2gqn4NN6gCTT4KVWalorjf1x5pMreMjQnbaX/I
sj/4QaVyLzpUzkL6tVdRqqA0Sb4Ck+ylBdgxYxXgcSEA47bkEWPvNNjBQJuD0CQI
W/zLnVDeVPyXg/x8SfZ4MzbHgbuzfG6+bUzd5uLHo1s0Sp9sfOks/HC4jLnTuT+N
K2N4R3hUeTE2YpCHvWxMedaCSBvIS8xVvR/6MydX1pY10jWCl/h+G+jP/fT7FeZT
1220Oy9TbaWfJ+RNB81fJnRORjza8PkJ+bEuy6ZnOuR3V3vNdinLgY7h9D2v8+HP
fQc/hOlOGZQoCfXIaEnQJd/P02xhpl7Hl/hAO3ycwB2ExsbkP2wpIQ0Wuc4lIppc
AevPCWaJR9tlswS2wL0Sw3ysyI9ieEWhIiZ0lT48ySI/dOyADVcP5MNkzrwC+yeN
3K4Oefh6EUM9MMLq3S33dQoR7uu1MZ+KqVxdXdATjnQ5mvVtAytKCSdgxcUB2fwN
rhhOPzG+NgtAuUF0HIq9qG9TxCC5QAs61iOssFCXyyjXtrmyntqOLTO0MuE3CCmH
9H8qu7xa+OxKeSPMnZZ5xlFLmONOezLH6S6MoicqRQafjaqD/4ZrV6F99vbtr57L
1Hn8Pi6upWrfHq9xTyld7HY+3W3Hwn4vvDngbY96jCokauwp0n4=
=SLRf
-----END PGP SIGNATURE-----
diff --git a/pytest_asyncio/plugin.py b/pytest_asyncio/plugin.py
index 403d814..b29b755 100644
--- a/pytest_asyncio/plugin.py
+++ b/pytest_asyncio/plugin.py
@@ -272,9 +272,8 @@ def _wrap_asyncgen_fixture(fixturedef: FixtureDef) -> None:
     def _asyncgen_fixture_wrapper(
         event_loop: asyncio.AbstractEventLoop, request: SubRequest, **kwargs: 
Any
     ):
-        func = _perhaps_rebind_fixture_func(
-            fixture, request.instance, fixturedef.unittest
-        )
+        unittest = False if pytest.version_tuple >= (8, 2) else 
fixturedef.unittest
+        func = _perhaps_rebind_fixture_func(fixture, request.instance, 
unittest)
         gen_obj = func(**_add_kwargs(func, kwargs, event_loop, request))
 
         async def setup():
@@ -310,9 +309,8 @@ def _wrap_async_fixture(fixturedef: FixtureDef) -> None:
     def _async_fixture_wrapper(
         event_loop: asyncio.AbstractEventLoop, request: SubRequest, **kwargs: 
Any
     ):
-        func = _perhaps_rebind_fixture_func(
-            fixture, request.instance, fixturedef.unittest
-        )
+        unittest = False if pytest.version_tuple >= (8, 2) else 
fixturedef.unittest
+        func = _perhaps_rebind_fixture_func(fixture, request.instance, 
unittest)
 
         async def setup():
             res = await func(**_add_kwargs(func, kwargs, event_loop, request))

--- End Message ---
--- Begin Message ---
Source: python-pytest-asyncio
Source-Version: 0.20.3-1.3
Done: Alexandre Detiste <tc...@debian.org>

We believe that the bug you reported is fixed in the latest version of
python-pytest-asyncio, which is due to be installed in the Debian FTP archive.

A summary of the changes between this version and the previous one is
attached.

Thank you for reporting the bug, which will now be closed.  If you
have further comments please address them to 1072...@bugs.debian.org,
and the maintainer will reopen the bug report if appropriate.

Debian distribution maintenance software
pp.
Alexandre Detiste <tc...@debian.org> (supplier of updated python-pytest-asyncio 
package)

(This message was generated automatically at their request; if you
believe that there is a problem with it please contact the archive
administrators by mailing ftpmas...@ftp-master.debian.org)


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA512

Format: 1.8
Date: Sat, 01 Jun 2024 13:19:21 +0200
Source: python-pytest-asyncio
Architecture: source
Version: 0.20.3-1.3
Distribution: unstable
Urgency: medium
Maintainer: Jonas Smedegaard <d...@jones.dk>
Changed-By: Alexandre Detiste <tc...@debian.org>
Closes: 1072057
Changes:
 python-pytest-asyncio (0.20.3-1.3) unstable; urgency=medium
 .
   * Non-maintainer upload.
   * pytest-trio is now available, enable it
   * Add patch to make this compatible with Pytest 8.2 (Closes: #1072057)
Checksums-Sha1:
 74e5494b7fea812a1138d92f52d233fbdd8fa7a1 2467 
python-pytest-asyncio_0.20.3-1.3.dsc
 037170563bd7270085e95fc7d7783f01a8434a5b 5184 
python-pytest-asyncio_0.20.3-1.3.debian.tar.xz
 55a66b8e75f228acaf60811aef5547f94a87e1dc 7614 
python-pytest-asyncio_0.20.3-1.3_source.buildinfo
Checksums-Sha256:
 84e62a5e652e1bd3b18bbeecae783d025c8dc2c1ed3773bd9190141102bd7baa 2467 
python-pytest-asyncio_0.20.3-1.3.dsc
 c34880b10efe724dd20bcb39174b066dd738933ebf62008b7ac97d873395e086 5184 
python-pytest-asyncio_0.20.3-1.3.debian.tar.xz
 5929fa50333a2e1817bcc13328f3a21fc282731eea846ff45ab9c39667ff3fb7 7614 
python-pytest-asyncio_0.20.3-1.3_source.buildinfo
Files:
 9b7a5df4944689c2986c639bf7c63712 2467 python optional 
python-pytest-asyncio_0.20.3-1.3.dsc
 ac186979a2f34af8ae159b839e73c205 5184 python optional 
python-pytest-asyncio_0.20.3-1.3.debian.tar.xz
 46619542fe4522c388f0252be0b568d5 7614 python optional 
python-pytest-asyncio_0.20.3-1.3_source.buildinfo

-----BEGIN PGP SIGNATURE-----

iQJFBAEBCgAvFiEEj23hBDd/OxHnQXSHMfMURUShdBoFAmZbBIcRHHRjaGV0QGRl
Ymlhbi5vcmcACgkQMfMURUShdBqDhw//RnPJx+Ce8/3aEi6541zI5teCjrsI3mxg
Bvz7ZS2qWnRJr1EGP1B9iF1XiAf85rYIIRRg7Z9X2Xv4tmRNkHRZkTe8ixEb9kHH
gdBTQh6noVcQoKHa/IAUpXy8dsziunPysjM3lrr6+g6n4Mup7CQxfR62Xzn7tfx4
wQ/DXtNBQ1/z+SJWZrObbr6T9+VXDLicrSh9tG96jfDerLj8XAVpR17ajUkZhWY8
s164Ivc4CSR4U7C2iXYaXLrp3c5TVTWmwBvzYCbF6fJPQkuZS7BqbUnesaapKOmF
NTFmxRl/Y9itdL4vtMrjNHTSyufPrl3fKswTX0j024J7ww+DJT+yvsdrDClUAm+a
4W8Fnu8A7tXToWVtQ9kJEmDyBWUZOqnVDPXKMYlritd4BCcdRSZ8STHIoRphyDiS
/kZQD7fM4E6piziNWsm3eeJ5QDb76xcOL9qnQytPDBPYSqXwWXuV1Oi/053C9P3w
tiypTJpzKaduQBogU5Czkmu5aIp4SV4axjHhtWKl/WojbYfFUH3W+YRfI1Azd45b
eD1Xjw0KvTeGSyJJhEfEN3WrXTar19VNT2SM/k56HSRv3SGI/Omwdaep5TQdlPnW
EPMeABfU58E+w6BoqJDgkDxGNad8h9OEVCXa9YZqtGyGR7pKMeQE0mghlsl1UTRL
24doBxd+Syw=
=BeNR
-----END PGP SIGNATURE-----

Attachment: pgpVC90RLycAU.pgp
Description: PGP signature


--- End Message ---

Reply via email to