Tue May 28 06:56:39 UTC 2024 I: starting to build aiorwlock/unstable/i386 on jenkins on '2024-05-28 06:56' Tue May 28 06:56:39 UTC 2024 I: The jenkins build log is/was available at https://jenkins.debian.net/userContent/reproducible/debian/build_service/i386_9/13223/console.log Tue May 28 06:56:39 UTC 2024 I: Downloading source for unstable/aiorwlock=1.0.0-0.2 --2024-05-28 06:56:39-- http://deb.debian.org/debian/pool/main/a/aiorwlock/aiorwlock_1.0.0-0.2.dsc Connecting to 46.16.76.132:3128... connected. Proxy request sent, awaiting response... 200 OK Length: 2000 (2.0K) [text/prs.lines.tag] Saving to: ‘aiorwlock_1.0.0-0.2.dsc’ 0K . 100% 209M=0s 2024-05-28 06:56:39 (209 MB/s) - ‘aiorwlock_1.0.0-0.2.dsc’ saved [2000/2000] Tue May 28 06:56:39 UTC 2024 I: aiorwlock_1.0.0-0.2.dsc -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA512 Format: 3.0 (quilt) Source: aiorwlock Binary: python3-aiorwlock Architecture: all Version: 1.0.0-0.2 Maintainer: William Grzybowski Homepage: https://github.com/aio-libs/aiorwlock Standards-Version: 4.4.0 Vcs-Browser: https://salsa.debian.org/wg-guest/aiorwlock Vcs-Git: https://salsa.debian.org/wg-guest/aiorwlock.git Testsuite: autopkgtest-pkg-python Build-Depends: debhelper-compat (= 12), dh-python, python3-all, python3-setuptools, python3-pytest, python3-pytest-asyncio, python3-uvloop Package-List: python3-aiorwlock deb python optional arch=all Checksums-Sha1: 915b0c419a0436ec19fa572a29fb8748f62ffd64 14514 aiorwlock_1.0.0.orig.tar.gz 9c7d7e1462fd41ea7633436dac63436ad311e277 2096 aiorwlock_1.0.0-0.2.debian.tar.xz Checksums-Sha256: 04ba304d2126014f79efad64f33744c1c43785fc06043af044a40513843e219c 14514 aiorwlock_1.0.0.orig.tar.gz 65b5994229796889a23d6a2e8ac34e53bf3052518bf035fc8b4ad95fdcf2aaad 2096 aiorwlock_1.0.0-0.2.debian.tar.xz Files: 0c88ff2c46f3bda60b56d081b56cd57f 14514 aiorwlock_1.0.0.orig.tar.gz f7d157e974d4832a906f13a95c200bf6 2096 aiorwlock_1.0.0-0.2.debian.tar.xz -----BEGIN PGP SIGNATURE----- iQIzBAEBCgAdFiEEOvp1f6xuoR0v9F3wiNJCh6LYmLEFAmAjwo4ACgkQiNJCh6LY mLEVeA//eQsH3BUKUpvWzdIXPbLAUIpN15pbuJrX7F+QmSzk4f65GXV3xlyl+8RA T+K5Qij2UMHqmZaERMmliK243W58NfSsnzx84RjLxXmMhusuZI8WImE3NREiyk55 B6x/SdM3zVoYBEbxHTpRMcDIh7eoQW1/8jwYvLNKvsIcXiolaMEpgFSKfHQFqiHl X0D4ISxYJiChihjDLMxbewm54LoYtBn0xc2RPRbeTkNrALZHgNqw9IsSJCOdn2br 2UMJ7EQT8JkNY/FzuohXUz8HPVOOaIo+sSR2nPM18NvYxBuVzlloT9XpK9j0fJAN 1zVKUli4J6T+K3eLVY7XHeQsDJjLgNFaCoB01egDTRpsTwCaJtDjjygdHpA16Xrr Qwl87slbq6tFvaHj69DbUYpd8ftE/yJcM71+5NlQzlVZVSR3JnnUoBHZlVSahZf1 K1MUvg2L5fLk/EZU1ja6w8TGXlKwVPrHLL+YcnJcxNfJTUuBxPPdaalh2BHR/Ytf TPYiherZaC7MiKVTj2UfF2+chVVqVICEoHNkruY13eNnKlvbFxUV/Icoy55KBJze DsvB9rfrP0YFZES0MbF6SXCeAo3+abK/f1NopeXJCzyZnToBzsBUMxlQX8uE2gzN sE8aYXYsDvZguKMM3sieu+l+iBJ6+DMjthpwML8tJnLQMr5gF6s= =IEz/ -----END PGP SIGNATURE----- Tue May 28 06:56:39 UTC 2024 I: Checking whether the package is not for us Tue May 28 06:56:39 UTC 2024 I: Starting 1st build on remote node ionos2-i386.debian.net. Tue May 28 06:56:39 UTC 2024 I: Preparing to do remote build '1' on ionos2-i386.debian.net. Tue May 28 06:58:19 UTC 2024 I: Deleting $TMPDIR on ionos2-i386.debian.net. I: pbuilder: network access will be disabled during build I: Current time: Mon May 27 18:56:41 -12 2024 I: pbuilder-time-stamp: 1716879401 I: Building the build Environment I: extracting base tarball [/var/cache/pbuilder/unstable-reproducible-base.tgz] I: copying local configuration W: --override-config is not set; not updating apt.conf Read the manpage for details. I: mounting /proc filesystem I: mounting /sys filesystem I: creating /{dev,run}/shm I: mounting /dev/pts filesystem I: redirecting /dev/ptmx to /dev/pts/ptmx I: policy-rc.d already exists I: using eatmydata during job I: Copying source file I: copying [aiorwlock_1.0.0-0.2.dsc] I: copying [./aiorwlock_1.0.0.orig.tar.gz] I: copying [./aiorwlock_1.0.0-0.2.debian.tar.xz] I: Extracting source gpgv: Signature made Wed Feb 10 11:25:02 2021 gpgv: using RSA key 3AFA757FAC6EA11D2FF45DF088D24287A2D898B1 gpgv: Can't check signature: No public key dpkg-source: warning: cannot verify inline signature for ./aiorwlock_1.0.0-0.2.dsc: no acceptable signature found dpkg-source: info: extracting aiorwlock in aiorwlock-1.0.0 dpkg-source: info: unpacking aiorwlock_1.0.0.orig.tar.gz dpkg-source: info: unpacking aiorwlock_1.0.0-0.2.debian.tar.xz I: using fakeroot in build. I: Installing the build-deps I: user script /srv/workspace/pbuilder/7504/tmp/hooks/D02_print_environment starting I: set BUILDDIR='/build/reproducible-path' BUILDUSERGECOS='first user,first room,first work-phone,first home-phone,first other' BUILDUSERNAME='pbuilder1' BUILD_ARCH='i386' DEBIAN_FRONTEND='noninteractive' DEB_BUILD_OPTIONS='buildinfo=+all reproducible=+all parallel=11 ' DISTRIBUTION='unstable' HOME='/root' HOST_ARCH='i386' IFS=' ' INVOCATION_ID='b10fee67b0844064a82e53f7598707ab' LANG='C' LANGUAGE='en_US:en' LC_ALL='C' LD_LIBRARY_PATH='/usr/lib/libeatmydata' LD_PRELOAD='libeatmydata.so' MAIL='/var/mail/root' OPTIND='1' PATH='/usr/sbin:/usr/bin:/sbin:/bin:/usr/games' PBCURRENTCOMMANDLINEOPERATION='build' PBUILDER_OPERATION='build' PBUILDER_PKGDATADIR='/usr/share/pbuilder' PBUILDER_PKGLIBDIR='/usr/lib/pbuilder' PBUILDER_SYSCONFDIR='/etc' PPID='7504' PS1='# ' PS2='> ' PS4='+ ' PWD='/' SHELL='/bin/bash' SHLVL='2' SUDO_COMMAND='/usr/bin/timeout -k 18.1h 18h /usr/bin/ionice -c 3 /usr/bin/nice /usr/sbin/pbuilder --build --configfile /srv/reproducible-results/rbuild-debian/r-b-build.MvI0PIJn/pbuilderrc_aiti --distribution unstable --hookdir /etc/pbuilder/first-build-hooks --debbuildopts -b --basetgz /var/cache/pbuilder/unstable-reproducible-base.tgz --buildresult /srv/reproducible-results/rbuild-debian/r-b-build.MvI0PIJn/b1 --logfile b1/build.log aiorwlock_1.0.0-0.2.dsc' SUDO_GID='112' SUDO_UID='107' SUDO_USER='jenkins' TERM='unknown' TZ='/usr/share/zoneinfo/Etc/GMT+12' USER='root' _='/usr/bin/systemd-run' http_proxy='http://46.16.76.132:3128' I: uname -a Linux ionos2-i386 6.1.0-21-amd64 #1 SMP PREEMPT_DYNAMIC Debian 6.1.90-1 (2024-05-03) x86_64 GNU/Linux I: ls -l /bin lrwxrwxrwx 1 root root 7 May 26 07:43 /bin -> usr/bin I: user script /srv/workspace/pbuilder/7504/tmp/hooks/D02_print_environment finished -> Attempting to satisfy build-dependencies -> Creating pbuilder-satisfydepends-dummy package Package: pbuilder-satisfydepends-dummy Version: 0.invalid.0 Architecture: i386 Maintainer: Debian Pbuilder Team Description: Dummy package to satisfy dependencies with aptitude - created by pbuilder This package was created automatically by pbuilder to satisfy the build-dependencies of the package being currently built. Depends: debhelper-compat (= 12), dh-python, python3-all, python3-setuptools, python3-pytest, python3-pytest-asyncio, python3-uvloop dpkg-deb: building package 'pbuilder-satisfydepends-dummy' in '/tmp/satisfydepends-aptitude/pbuilder-satisfydepends-dummy.deb'. Selecting previously unselected package pbuilder-satisfydepends-dummy. (Reading database ... 19702 files and directories currently installed.) Preparing to unpack .../pbuilder-satisfydepends-dummy.deb ... Unpacking pbuilder-satisfydepends-dummy (0.invalid.0) ... dpkg: pbuilder-satisfydepends-dummy: dependency problems, but configuring anyway as you requested: pbuilder-satisfydepends-dummy depends on debhelper-compat (= 12); however: Package debhelper-compat is not installed. pbuilder-satisfydepends-dummy depends on dh-python; however: Package dh-python is not installed. pbuilder-satisfydepends-dummy depends on python3-all; however: Package python3-all is not installed. pbuilder-satisfydepends-dummy depends on python3-setuptools; however: Package python3-setuptools is not installed. pbuilder-satisfydepends-dummy depends on python3-pytest; however: Package python3-pytest is not installed. pbuilder-satisfydepends-dummy depends on python3-pytest-asyncio; however: Package python3-pytest-asyncio is not installed. pbuilder-satisfydepends-dummy depends on python3-uvloop; however: Package python3-uvloop is not installed. Setting up pbuilder-satisfydepends-dummy (0.invalid.0) ... Reading package lists... Building dependency tree... Reading state information... Initializing package states... Writing extended state information... Building tag database... pbuilder-satisfydepends-dummy is already installed at the requested version (0.invalid.0) pbuilder-satisfydepends-dummy is already installed at the requested version (0.invalid.0) The following NEW packages will be installed: autoconf{a} automake{a} autopoint{a} autotools-dev{a} bsdextrautils{a} debhelper{a} dh-autoreconf{a} dh-python{a} dh-strip-nondeterminism{a} dwz{a} file{a} gettext{a} gettext-base{a} groff-base{a} intltool-debian{a} libarchive-zip-perl{a} libdebhelper-perl{a} libelf1t64{a} libexpat1{a} libfile-stripnondeterminism-perl{a} libicu72{a} libmagic-mgc{a} libmagic1t64{a} libpipeline1{a} libpython3-stdlib{a} libpython3.11-minimal{a} libpython3.11-stdlib{a} libpython3.12-minimal{a} libpython3.12-stdlib{a} libreadline8t64{a} libtool{a} libuchardet0{a} libuv1t64{a} libxml2{a} m4{a} man-db{a} media-types{a} netbase{a} po-debconf{a} python3{a} python3-all{a} python3-async-generator{a} python3-distutils{a} python3-iniconfig{a} python3-lib2to3{a} python3-minimal{a} python3-packaging{a} python3-pkg-resources{a} python3-pluggy{a} python3-pytest{a} python3-pytest-asyncio{a} python3-setuptools{a} python3-uvloop{a} python3.11{a} python3.11-minimal{a} python3.12{a} python3.12-minimal{a} readline-common{a} sensible-utils{a} tzdata{a} The following packages are RECOMMENDED but will NOT be installed: ca-certificates curl libarchive-cpio-perl libltdl-dev libmail-sendmail-perl lynx python3-pygments wget 0 packages upgraded, 60 newly installed, 0 to remove and 0 not upgraded. Need to get 33.2 MB of archives. After unpacking 131 MB will be used. Writing extended state information... Get: 1 http://deb.debian.org/debian unstable/main i386 libpython3.11-minimal i386 3.11.9-1 [817 kB] Get: 2 http://deb.debian.org/debian unstable/main i386 libexpat1 i386 2.6.2-1 [107 kB] Get: 3 http://deb.debian.org/debian unstable/main i386 python3.11-minimal i386 3.11.9-1 [1918 kB] Get: 4 http://deb.debian.org/debian unstable/main i386 python3-minimal i386 3.11.8-1 [26.3 kB] Get: 5 http://deb.debian.org/debian unstable/main i386 media-types all 10.1.0 [26.9 kB] Get: 6 http://deb.debian.org/debian unstable/main i386 netbase all 6.4 [12.8 kB] Get: 7 http://deb.debian.org/debian unstable/main i386 tzdata all 2024a-4 [255 kB] Get: 8 http://deb.debian.org/debian unstable/main i386 readline-common all 8.2-4 [69.3 kB] Get: 9 http://deb.debian.org/debian unstable/main i386 libreadline8t64 i386 8.2-4 [171 kB] Get: 10 http://deb.debian.org/debian unstable/main i386 libpython3.11-stdlib i386 3.11.9-1 [1795 kB] Get: 11 http://deb.debian.org/debian unstable/main i386 python3.11 i386 3.11.9-1 [602 kB] Get: 12 http://deb.debian.org/debian unstable/main i386 libpython3-stdlib i386 3.11.8-1 [9336 B] Get: 13 http://deb.debian.org/debian unstable/main i386 python3 i386 3.11.8-1 [27.4 kB] Get: 14 http://deb.debian.org/debian unstable/main i386 libpython3.12-minimal i386 3.12.3-1 [809 kB] Get: 15 http://deb.debian.org/debian unstable/main i386 python3.12-minimal i386 3.12.3-1 [2224 kB] Get: 16 http://deb.debian.org/debian unstable/main i386 sensible-utils all 0.0.22 [22.4 kB] Get: 17 http://deb.debian.org/debian unstable/main i386 libmagic-mgc i386 1:5.45-3 [314 kB] Get: 18 http://deb.debian.org/debian unstable/main i386 libmagic1t64 i386 1:5.45-3 [114 kB] Get: 19 http://deb.debian.org/debian unstable/main i386 file i386 1:5.45-3 [42.9 kB] Get: 20 http://deb.debian.org/debian unstable/main i386 gettext-base i386 0.21-14+b1 [162 kB] Get: 21 http://deb.debian.org/debian unstable/main i386 libuchardet0 i386 0.0.8-1+b1 [69.1 kB] Get: 22 http://deb.debian.org/debian unstable/main i386 groff-base i386 1.23.0-4 [1194 kB] Get: 23 http://deb.debian.org/debian unstable/main i386 bsdextrautils i386 2.40.1-2 [98.5 kB] Get: 24 http://deb.debian.org/debian unstable/main i386 libpipeline1 i386 1.5.7-2 [39.7 kB] Get: 25 http://deb.debian.org/debian unstable/main i386 man-db i386 2.12.1-1 [1421 kB] Get: 26 http://deb.debian.org/debian unstable/main i386 m4 i386 1.4.19-4 [293 kB] Get: 27 http://deb.debian.org/debian unstable/main i386 autoconf all 2.71-3 [332 kB] Get: 28 http://deb.debian.org/debian unstable/main i386 autotools-dev all 20220109.1 [51.6 kB] Get: 29 http://deb.debian.org/debian unstable/main i386 automake all 1:1.16.5-1.3 [823 kB] Get: 30 http://deb.debian.org/debian unstable/main i386 autopoint all 0.21-14 [496 kB] Get: 31 http://deb.debian.org/debian unstable/main i386 libdebhelper-perl all 13.15.3 [88.0 kB] Get: 32 http://deb.debian.org/debian unstable/main i386 libtool all 2.4.7-7 [517 kB] Get: 33 http://deb.debian.org/debian unstable/main i386 dh-autoreconf all 20 [17.1 kB] Get: 34 http://deb.debian.org/debian unstable/main i386 libarchive-zip-perl all 1.68-1 [104 kB] Get: 35 http://deb.debian.org/debian unstable/main i386 libfile-stripnondeterminism-perl all 1.14.0-1 [19.5 kB] Get: 36 http://deb.debian.org/debian unstable/main i386 dh-strip-nondeterminism all 1.14.0-1 [8448 B] Get: 37 http://deb.debian.org/debian unstable/main i386 libelf1t64 i386 0.191-1+b1 [194 kB] Get: 38 http://deb.debian.org/debian unstable/main i386 dwz i386 0.15-1+b1 [116 kB] Get: 39 http://deb.debian.org/debian unstable/main i386 libicu72 i386 72.1-4+b1 [9549 kB] Get: 40 http://deb.debian.org/debian unstable/main i386 libxml2 i386 2.12.7+dfsg-2 [704 kB] Get: 41 http://deb.debian.org/debian unstable/main i386 gettext i386 0.21-14+b1 [1311 kB] Get: 42 http://deb.debian.org/debian unstable/main i386 intltool-debian all 0.35.0+20060710.6 [22.9 kB] Get: 43 http://deb.debian.org/debian unstable/main i386 po-debconf all 1.0.21+nmu1 [248 kB] Get: 44 http://deb.debian.org/debian unstable/main i386 debhelper all 13.15.3 [901 kB] Get: 45 http://deb.debian.org/debian unstable/main i386 python3-pkg-resources all 68.1.2-2 [241 kB] Get: 46 http://deb.debian.org/debian unstable/main i386 python3-lib2to3 all 3.12.3-3.1 [77.7 kB] Get: 47 http://deb.debian.org/debian unstable/main i386 python3-distutils all 3.12.3-3.1 [131 kB] Get: 48 http://deb.debian.org/debian unstable/main i386 python3-setuptools all 68.1.2-2 [468 kB] Get: 49 http://deb.debian.org/debian unstable/main i386 dh-python all 6.20240422 [107 kB] Get: 50 http://deb.debian.org/debian unstable/main i386 libpython3.12-stdlib i386 3.12.3-1 [1945 kB] Get: 51 http://deb.debian.org/debian unstable/main i386 libuv1t64 i386 1.48.0-4 [156 kB] Get: 52 http://deb.debian.org/debian unstable/main i386 python3.12 i386 3.12.3-1 [659 kB] Get: 53 http://deb.debian.org/debian unstable/main i386 python3-all i386 3.11.8-1 [1056 B] Get: 54 http://deb.debian.org/debian unstable/main i386 python3-async-generator all 1.10-4 [17.4 kB] Get: 55 http://deb.debian.org/debian unstable/main i386 python3-iniconfig all 1.1.1-2 [6396 B] Get: 56 http://deb.debian.org/debian unstable/main i386 python3-packaging all 24.0-1 [45.5 kB] Get: 57 http://deb.debian.org/debian unstable/main i386 python3-pluggy all 1.5.0-1 [26.9 kB] Get: 58 http://deb.debian.org/debian unstable/main i386 python3-pytest all 8.2.1-2 [247 kB] Get: 59 http://deb.debian.org/debian unstable/main i386 python3-pytest-asyncio all 0.20.3-1.2 [13.3 kB] Get: 60 http://deb.debian.org/debian unstable/main i386 python3-uvloop i386 0.19.0+ds1-2.1 [928 kB] Fetched 33.2 MB in 0s (70.2 MB/s) debconf: delaying package configuration, since apt-utils is not installed Selecting previously unselected package libpython3.11-minimal:i386. (Reading database ... (Reading database ... 5% (Reading database ... 10% (Reading database ... 15% (Reading database ... 20% (Reading database ... 25% (Reading database ... 30% (Reading database ... 35% (Reading database ... 40% (Reading database ... 45% (Reading database ... 50% (Reading database ... 55% (Reading database ... 60% (Reading database ... 65% (Reading database ... 70% (Reading database ... 75% (Reading database ... 80% (Reading database ... 85% (Reading database ... 90% (Reading database ... 95% (Reading database ... 100% (Reading database ... 19702 files and directories currently installed.) Preparing to unpack .../libpython3.11-minimal_3.11.9-1_i386.deb ... Unpacking libpython3.11-minimal:i386 (3.11.9-1) ... Selecting previously unselected package libexpat1:i386. Preparing to unpack .../libexpat1_2.6.2-1_i386.deb ... Unpacking libexpat1:i386 (2.6.2-1) ... Selecting previously unselected package python3.11-minimal. Preparing to unpack .../python3.11-minimal_3.11.9-1_i386.deb ... Unpacking python3.11-minimal (3.11.9-1) ... Setting up libpython3.11-minimal:i386 (3.11.9-1) ... Setting up libexpat1:i386 (2.6.2-1) ... Setting up python3.11-minimal (3.11.9-1) ... Selecting previously unselected package python3-minimal. (Reading database ... (Reading database ... 5% (Reading database ... 10% (Reading database ... 15% (Reading database ... 20% (Reading database ... 25% (Reading database ... 30% (Reading database ... 35% (Reading database ... 40% (Reading database ... 45% (Reading database ... 50% (Reading database ... 55% (Reading database ... 60% (Reading database ... 65% (Reading database ... 70% (Reading database ... 75% (Reading database ... 80% (Reading database ... 85% (Reading database ... 90% (Reading database ... 95% (Reading database ... 100% (Reading database ... 20018 files and directories currently installed.) Preparing to unpack .../0-python3-minimal_3.11.8-1_i386.deb ... Unpacking python3-minimal (3.11.8-1) ... Selecting previously unselected package media-types. Preparing to unpack .../1-media-types_10.1.0_all.deb ... Unpacking media-types (10.1.0) ... Selecting previously unselected package netbase. Preparing to unpack .../2-netbase_6.4_all.deb ... Unpacking netbase (6.4) ... Selecting previously unselected package tzdata. Preparing to unpack .../3-tzdata_2024a-4_all.deb ... Unpacking tzdata (2024a-4) ... Selecting previously unselected package readline-common. Preparing to unpack .../4-readline-common_8.2-4_all.deb ... Unpacking readline-common (8.2-4) ... Selecting previously unselected package libreadline8t64:i386. Preparing to unpack .../5-libreadline8t64_8.2-4_i386.deb ... Adding 'diversion of /lib/i386-linux-gnu/libhistory.so.8 to /lib/i386-linux-gnu/libhistory.so.8.usr-is-merged by libreadline8t64' Adding 'diversion of /lib/i386-linux-gnu/libhistory.so.8.2 to /lib/i386-linux-gnu/libhistory.so.8.2.usr-is-merged by libreadline8t64' Adding 'diversion of /lib/i386-linux-gnu/libreadline.so.8 to /lib/i386-linux-gnu/libreadline.so.8.usr-is-merged by libreadline8t64' Adding 'diversion of /lib/i386-linux-gnu/libreadline.so.8.2 to /lib/i386-linux-gnu/libreadline.so.8.2.usr-is-merged by libreadline8t64' Unpacking libreadline8t64:i386 (8.2-4) ... Selecting previously unselected package libpython3.11-stdlib:i386. Preparing to unpack .../6-libpython3.11-stdlib_3.11.9-1_i386.deb ... Unpacking libpython3.11-stdlib:i386 (3.11.9-1) ... Selecting previously unselected package python3.11. Preparing to unpack .../7-python3.11_3.11.9-1_i386.deb ... Unpacking python3.11 (3.11.9-1) ... Selecting previously unselected package libpython3-stdlib:i386. Preparing to unpack .../8-libpython3-stdlib_3.11.8-1_i386.deb ... Unpacking libpython3-stdlib:i386 (3.11.8-1) ... Setting up python3-minimal (3.11.8-1) ... Selecting previously unselected package python3. (Reading database ... (Reading database ... 5% (Reading database ... 10% (Reading database ... 15% (Reading database ... 20% (Reading database ... 25% (Reading database ... 30% (Reading database ... 35% (Reading database ... 40% (Reading database ... 45% (Reading database ... 50% (Reading database ... 55% (Reading database ... 60% (Reading database ... 65% (Reading database ... 70% (Reading database ... 75% (Reading database ... 80% (Reading database ... 85% (Reading database ... 90% (Reading database ... 95% (Reading database ... 100% (Reading database ... 21010 files and directories currently installed.) Preparing to unpack .../00-python3_3.11.8-1_i386.deb ... Unpacking python3 (3.11.8-1) ... Selecting previously unselected package libpython3.12-minimal:i386. Preparing to unpack .../01-libpython3.12-minimal_3.12.3-1_i386.deb ... Unpacking libpython3.12-minimal:i386 (3.12.3-1) ... Selecting previously unselected package python3.12-minimal. Preparing to unpack .../02-python3.12-minimal_3.12.3-1_i386.deb ... Unpacking python3.12-minimal (3.12.3-1) ... Selecting previously unselected package sensible-utils. Preparing to unpack .../03-sensible-utils_0.0.22_all.deb ... Unpacking sensible-utils (0.0.22) ... Selecting previously unselected package libmagic-mgc. Preparing to unpack .../04-libmagic-mgc_1%3a5.45-3_i386.deb ... Unpacking libmagic-mgc (1:5.45-3) ... Selecting previously unselected package libmagic1t64:i386. Preparing to unpack .../05-libmagic1t64_1%3a5.45-3_i386.deb ... Unpacking libmagic1t64:i386 (1:5.45-3) ... Selecting previously unselected package file. Preparing to unpack .../06-file_1%3a5.45-3_i386.deb ... Unpacking file (1:5.45-3) ... Selecting previously unselected package gettext-base. Preparing to unpack .../07-gettext-base_0.21-14+b1_i386.deb ... Unpacking gettext-base (0.21-14+b1) ... Selecting previously unselected package libuchardet0:i386. Preparing to unpack .../08-libuchardet0_0.0.8-1+b1_i386.deb ... Unpacking libuchardet0:i386 (0.0.8-1+b1) ... Selecting previously unselected package groff-base. Preparing to unpack .../09-groff-base_1.23.0-4_i386.deb ... Unpacking groff-base (1.23.0-4) ... Selecting previously unselected package bsdextrautils. Preparing to unpack .../10-bsdextrautils_2.40.1-2_i386.deb ... Unpacking bsdextrautils (2.40.1-2) ... Selecting previously unselected package libpipeline1:i386. Preparing to unpack .../11-libpipeline1_1.5.7-2_i386.deb ... Unpacking libpipeline1:i386 (1.5.7-2) ... Selecting previously unselected package man-db. Preparing to unpack .../12-man-db_2.12.1-1_i386.deb ... Unpacking man-db (2.12.1-1) ... Selecting previously unselected package m4. Preparing to unpack .../13-m4_1.4.19-4_i386.deb ... Unpacking m4 (1.4.19-4) ... Selecting previously unselected package autoconf. Preparing to unpack .../14-autoconf_2.71-3_all.deb ... Unpacking autoconf (2.71-3) ... Selecting previously unselected package autotools-dev. Preparing to unpack .../15-autotools-dev_20220109.1_all.deb ... Unpacking autotools-dev (20220109.1) ... Selecting previously unselected package automake. Preparing to unpack .../16-automake_1%3a1.16.5-1.3_all.deb ... Unpacking automake (1:1.16.5-1.3) ... Selecting previously unselected package autopoint. Preparing to unpack .../17-autopoint_0.21-14_all.deb ... Unpacking autopoint (0.21-14) ... Selecting previously unselected package libdebhelper-perl. Preparing to unpack .../18-libdebhelper-perl_13.15.3_all.deb ... Unpacking libdebhelper-perl (13.15.3) ... Selecting previously unselected package libtool. Preparing to unpack .../19-libtool_2.4.7-7_all.deb ... Unpacking libtool (2.4.7-7) ... Selecting previously unselected package dh-autoreconf. Preparing to unpack .../20-dh-autoreconf_20_all.deb ... Unpacking dh-autoreconf (20) ... Selecting previously unselected package libarchive-zip-perl. Preparing to unpack .../21-libarchive-zip-perl_1.68-1_all.deb ... Unpacking libarchive-zip-perl (1.68-1) ... Selecting previously unselected package libfile-stripnondeterminism-perl. Preparing to unpack .../22-libfile-stripnondeterminism-perl_1.14.0-1_all.deb ... Unpacking libfile-stripnondeterminism-perl (1.14.0-1) ... Selecting previously unselected package dh-strip-nondeterminism. Preparing to unpack .../23-dh-strip-nondeterminism_1.14.0-1_all.deb ... Unpacking dh-strip-nondeterminism (1.14.0-1) ... Selecting previously unselected package libelf1t64:i386. Preparing to unpack .../24-libelf1t64_0.191-1+b1_i386.deb ... Unpacking libelf1t64:i386 (0.191-1+b1) ... Selecting previously unselected package dwz. Preparing to unpack .../25-dwz_0.15-1+b1_i386.deb ... Unpacking dwz (0.15-1+b1) ... Selecting previously unselected package libicu72:i386. Preparing to unpack .../26-libicu72_72.1-4+b1_i386.deb ... Unpacking libicu72:i386 (72.1-4+b1) ... Selecting previously unselected package libxml2:i386. Preparing to unpack .../27-libxml2_2.12.7+dfsg-2_i386.deb ... Unpacking libxml2:i386 (2.12.7+dfsg-2) ... Selecting previously unselected package gettext. Preparing to unpack .../28-gettext_0.21-14+b1_i386.deb ... Unpacking gettext (0.21-14+b1) ... Selecting previously unselected package intltool-debian. Preparing to unpack .../29-intltool-debian_0.35.0+20060710.6_all.deb ... Unpacking intltool-debian (0.35.0+20060710.6) ... Selecting previously unselected package po-debconf. Preparing to unpack .../30-po-debconf_1.0.21+nmu1_all.deb ... Unpacking po-debconf (1.0.21+nmu1) ... Selecting previously unselected package debhelper. Preparing to unpack .../31-debhelper_13.15.3_all.deb ... Unpacking debhelper (13.15.3) ... Selecting previously unselected package python3-pkg-resources. Preparing to unpack .../32-python3-pkg-resources_68.1.2-2_all.deb ... Unpacking python3-pkg-resources (68.1.2-2) ... Selecting previously unselected package python3-lib2to3. Preparing to unpack .../33-python3-lib2to3_3.12.3-3.1_all.deb ... Unpacking python3-lib2to3 (3.12.3-3.1) ... Selecting previously unselected package python3-distutils. Preparing to unpack .../34-python3-distutils_3.12.3-3.1_all.deb ... Unpacking python3-distutils (3.12.3-3.1) ... Selecting previously unselected package python3-setuptools. Preparing to unpack .../35-python3-setuptools_68.1.2-2_all.deb ... Unpacking python3-setuptools (68.1.2-2) ... Selecting previously unselected package dh-python. Preparing to unpack .../36-dh-python_6.20240422_all.deb ... Unpacking dh-python (6.20240422) ... Selecting previously unselected package libpython3.12-stdlib:i386. Preparing to unpack .../37-libpython3.12-stdlib_3.12.3-1_i386.deb ... Unpacking libpython3.12-stdlib:i386 (3.12.3-1) ... Selecting previously unselected package libuv1t64:i386. Preparing to unpack .../38-libuv1t64_1.48.0-4_i386.deb ... Unpacking libuv1t64:i386 (1.48.0-4) ... Selecting previously unselected package python3.12. Preparing to unpack .../39-python3.12_3.12.3-1_i386.deb ... Unpacking python3.12 (3.12.3-1) ... Selecting previously unselected package python3-all. Preparing to unpack .../40-python3-all_3.11.8-1_i386.deb ... Unpacking python3-all (3.11.8-1) ... Selecting previously unselected package python3-async-generator. Preparing to unpack .../41-python3-async-generator_1.10-4_all.deb ... Unpacking python3-async-generator (1.10-4) ... Selecting previously unselected package python3-iniconfig. Preparing to unpack .../42-python3-iniconfig_1.1.1-2_all.deb ... Unpacking python3-iniconfig (1.1.1-2) ... Selecting previously unselected package python3-packaging. Preparing to unpack .../43-python3-packaging_24.0-1_all.deb ... Unpacking python3-packaging (24.0-1) ... Selecting previously unselected package python3-pluggy. Preparing to unpack .../44-python3-pluggy_1.5.0-1_all.deb ... Unpacking python3-pluggy (1.5.0-1) ... Selecting previously unselected package python3-pytest. Preparing to unpack .../45-python3-pytest_8.2.1-2_all.deb ... Unpacking python3-pytest (8.2.1-2) ... Selecting previously unselected package python3-pytest-asyncio. Preparing to unpack .../46-python3-pytest-asyncio_0.20.3-1.2_all.deb ... Unpacking python3-pytest-asyncio (0.20.3-1.2) ... Selecting previously unselected package python3-uvloop. Preparing to unpack .../47-python3-uvloop_0.19.0+ds1-2.1_i386.deb ... Unpacking python3-uvloop (0.19.0+ds1-2.1) ... Setting up media-types (10.1.0) ... Setting up libpipeline1:i386 (1.5.7-2) ... Setting up libicu72:i386 (72.1-4+b1) ... Setting up bsdextrautils (2.40.1-2) ... Setting up libmagic-mgc (1:5.45-3) ... Setting up libarchive-zip-perl (1.68-1) ... Setting up libdebhelper-perl (13.15.3) ... Setting up libuv1t64:i386 (1.48.0-4) ... Setting up libmagic1t64:i386 (1:5.45-3) ... Setting up libpython3.12-minimal:i386 (3.12.3-1) ... Setting up gettext-base (0.21-14+b1) ... Setting up m4 (1.4.19-4) ... Setting up file (1:5.45-3) ... Setting up libelf1t64:i386 (0.191-1+b1) ... Setting up tzdata (2024a-4) ... Current default time zone: 'Etc/UTC' Local time is now: Tue May 28 06:57:11 UTC 2024. Universal Time is now: Tue May 28 06:57:11 UTC 2024. Run 'dpkg-reconfigure tzdata' if you wish to change it. Setting up autotools-dev (20220109.1) ... Setting up autopoint (0.21-14) ... Setting up autoconf (2.71-3) ... Setting up dwz (0.15-1+b1) ... Setting up sensible-utils (0.0.22) ... Setting up libuchardet0:i386 (0.0.8-1+b1) ... Setting up netbase (6.4) ... Setting up readline-common (8.2-4) ... Setting up libxml2:i386 (2.12.7+dfsg-2) ... Setting up automake (1:1.16.5-1.3) ... update-alternatives: using /usr/bin/automake-1.16 to provide /usr/bin/automake (automake) in auto mode Setting up libfile-stripnondeterminism-perl (1.14.0-1) ... Setting up python3.12-minimal (3.12.3-1) ... Setting up gettext (0.21-14+b1) ... Setting up libtool (2.4.7-7) ... Setting up intltool-debian (0.35.0+20060710.6) ... Setting up dh-autoreconf (20) ... Setting up libreadline8t64:i386 (8.2-4) ... Setting up dh-strip-nondeterminism (1.14.0-1) ... Setting up groff-base (1.23.0-4) ... Setting up libpython3.12-stdlib:i386 (3.12.3-1) ... Setting up po-debconf (1.0.21+nmu1) ... Setting up libpython3.11-stdlib:i386 (3.11.9-1) ... Setting up python3.12 (3.12.3-1) ... Setting up man-db (2.12.1-1) ... Not building database; man-db/auto-update is not 'true'. Setting up libpython3-stdlib:i386 (3.11.8-1) ... Setting up python3.11 (3.11.9-1) ... Setting up debhelper (13.15.3) ... Setting up python3 (3.11.8-1) ... Setting up python3-packaging (24.0-1) ... Setting up python3-uvloop (0.19.0+ds1-2.1) ... Setting up python3-pluggy (1.5.0-1) ... Setting up python3-lib2to3 (3.12.3-3.1) ... Setting up python3-pkg-resources (68.1.2-2) ... Setting up python3-distutils (3.12.3-3.1) ... python3.12: can't get files for byte-compilation Setting up python3-iniconfig (1.1.1-2) ... Setting up python3-setuptools (68.1.2-2) ... Setting up python3-async-generator (1.10-4) ... Setting up python3-pytest (8.2.1-2) ... Setting up python3-all (3.11.8-1) ... Setting up python3-pytest-asyncio (0.20.3-1.2) ... Setting up dh-python (6.20240422) ... Processing triggers for libc-bin (2.38-11) ... Reading package lists... Building dependency tree... Reading state information... Reading extended state information... Initializing package states... Writing extended state information... Building tag database... -> Finished parsing the build-deps Reading package lists... Building dependency tree... Reading state information... fakeroot is already the newest version (1.34-1). 0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded. I: Building the package I: Running cd /build/reproducible-path/aiorwlock-1.0.0/ && env PATH="/usr/sbin:/usr/bin:/sbin:/bin:/usr/games" HOME="/nonexistent/first-build" dpkg-buildpackage -us -uc -b && env PATH="/usr/sbin:/usr/bin:/sbin:/bin:/usr/games" HOME="/nonexistent/first-build" dpkg-genchanges -S > ../aiorwlock_1.0.0-0.2_source.changes dpkg-buildpackage: info: source package aiorwlock dpkg-buildpackage: info: source version 1.0.0-0.2 dpkg-buildpackage: info: source distribution unstable dpkg-buildpackage: info: source changed by Adrian Bunk dpkg-source --before-build . dpkg-buildpackage: info: host architecture i386 fakeroot debian/rules clean dh clean --with python3 --buildsystem=pybuild dh_auto_clean -O--buildsystem=pybuild I: pybuild base:311: python3.12 setup.py clean running clean removing '/build/reproducible-path/aiorwlock-1.0.0/.pybuild/cpython3_3.12_aiorwlock/build' (and everything under it) 'build/bdist.linux-i686' does not exist -- can't clean it 'build/scripts-3.12' does not exist -- can't clean it I: pybuild base:311: python3.11 setup.py clean running clean removing '/build/reproducible-path/aiorwlock-1.0.0/.pybuild/cpython3_3.11_aiorwlock/build' (and everything under it) 'build/bdist.linux-i686' does not exist -- can't clean it 'build/scripts-3.11' does not exist -- can't clean it dh_autoreconf_clean -O--buildsystem=pybuild dh_clean -O--buildsystem=pybuild debian/rules build dh build --with python3 --buildsystem=pybuild dh_update_autotools_config -O--buildsystem=pybuild dh_autoreconf -O--buildsystem=pybuild dh_auto_configure -O--buildsystem=pybuild I: pybuild base:311: python3.12 setup.py config running config I: pybuild base:311: python3.11 setup.py config running config dh_auto_build -O--buildsystem=pybuild I: pybuild base:311: /usr/bin/python3.12 setup.py build running build running build_py creating /build/reproducible-path/aiorwlock-1.0.0/.pybuild/cpython3_3.12_aiorwlock/build/aiorwlock copying aiorwlock/__init__.py -> /build/reproducible-path/aiorwlock-1.0.0/.pybuild/cpython3_3.12_aiorwlock/build/aiorwlock running egg_info creating aiorwlock.egg-info writing aiorwlock.egg-info/PKG-INFO writing dependency_links to aiorwlock.egg-info/dependency_links.txt writing top-level names to aiorwlock.egg-info/top_level.txt writing manifest file 'aiorwlock.egg-info/SOURCES.txt' reading manifest file 'aiorwlock.egg-info/SOURCES.txt' reading manifest template 'MANIFEST.in' warning: no previously-included files matching '*.pyc' found anywhere in distribution no previously-included directories found matching 'docs/_build' adding license file 'LICENSE' writing manifest file 'aiorwlock.egg-info/SOURCES.txt' copying aiorwlock/py.typed -> /build/reproducible-path/aiorwlock-1.0.0/.pybuild/cpython3_3.12_aiorwlock/build/aiorwlock I: pybuild base:311: /usr/bin/python3 setup.py build running build running build_py creating /build/reproducible-path/aiorwlock-1.0.0/.pybuild/cpython3_3.11_aiorwlock/build/aiorwlock copying aiorwlock/__init__.py -> /build/reproducible-path/aiorwlock-1.0.0/.pybuild/cpython3_3.11_aiorwlock/build/aiorwlock running egg_info writing aiorwlock.egg-info/PKG-INFO writing dependency_links to aiorwlock.egg-info/dependency_links.txt writing top-level names to aiorwlock.egg-info/top_level.txt reading manifest file 'aiorwlock.egg-info/SOURCES.txt' reading manifest template 'MANIFEST.in' warning: no previously-included files matching '*.pyc' found anywhere in distribution no previously-included directories found matching 'docs/_build' adding license file 'LICENSE' writing manifest file 'aiorwlock.egg-info/SOURCES.txt' copying aiorwlock/py.typed -> /build/reproducible-path/aiorwlock-1.0.0/.pybuild/cpython3_3.11_aiorwlock/build/aiorwlock dh_auto_test -O--buildsystem=pybuild I: pybuild base:311: cd /build/reproducible-path/aiorwlock-1.0.0/.pybuild/cpython3_3.12_aiorwlock/build; python3.12 -m pytest /build/reproducible-path/aiorwlock-1.0.0/tests ============================= test session starts ============================== platform linux -- Python 3.12.3, pytest-8.2.1, pluggy-1.5.0 rootdir: /build/reproducible-path/aiorwlock-1.0.0 configfile: setup.cfg plugins: asyncio-0.20.3 asyncio: mode=Mode.STRICT collected 192 items ../../../tests/test_corner_cases.py FFFFFFFFFF [ 5%] ../../../tests/test_rwlock.py .E.E.E.E.E.E.EFE.E.E.E.E.E.E.E.E.E.E.E.E.E [ 16%] .E.EFFFFF.E.E.E.E.E.E.E.E.E.E.E.E.E.E.E.EFE.EFEFEFEFEFE.E.EFEFEFEFEFEFEFE [ 36%] FFFFF.E.EFEFEFEFEFEFEFEFFFFF.EFFFFF.E [ 50%] ../../../tests/test_corner_cases.py FFFFFFFFFF [ 55%] ../../../tests/test_rwlock.py .E.E.E.E.E.E.EFE.E.E.E.E.E.E.E.E.E.E.E.E.E [ 66%] .E.E.E.E.E.E.E.E.E.E.E.E.E.E.E.E.E.E.E.E.E.E.EFE.EFEFEFEFEFE.E.EFEFEFEFE [ 84%] FEFEFEFFFFF.E.EFEFEFEFEFEFEFEFFF.EFE.EFFF.EFE.E [100%] ==================================== ERRORS ==================================== _ ERROR at teardown of test_ctor_deprecated_implicit_not_running[debug:true-pyloop] _ cls = func = . at 0xf6708208> when = 'teardown' reraise = (, ) @classmethod def from_call( cls, func: Callable[[], TResult], when: Literal["collect", "setup", "call", "teardown"], reraise: Optional[ Union[Type[BaseException], Tuple[Type[BaseException], ...]] ] = None, ) -> "CallInfo[TResult]": """Call func, wrapping the result in a CallInfo. :param func: The function to call. Called without arguments. :param when: The phase in which the function is called. :param reraise: Exception or exceptions that shall propagate if raised by the function, instead of being wrapped in the CallInfo. """ excinfo = None start = timing.time() precise_start = timing.perf_counter() try: > result: Optional[TResult] = func() /usr/lib/python3/dist-packages/_pytest/runner.py:341: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/dist-packages/_pytest/runner.py:241: in lambda: runtest_hook(item=item, **kwds), when=when, reraise=reraise /usr/lib/python3/dist-packages/pluggy/_hooks.py:513: in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) /usr/lib/python3/dist-packages/pluggy/_manager.py:120: in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) /usr/lib/python3/dist-packages/_pytest/threadexception.py:92: in pytest_runtest_teardown yield from thread_exception_runtest_hook() /usr/lib/python3/dist-packages/_pytest/threadexception.py:63: in thread_exception_runtest_hook yield /usr/lib/python3/dist-packages/_pytest/unraisableexception.py:95: in pytest_runtest_teardown yield from unraisable_exception_runtest_hook() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ def unraisable_exception_runtest_hook() -> Generator[None, None, None]: with catch_unraisable_exception() as cm: try: yield finally: if cm.unraisable: if cm.unraisable.err_msg is not None: err_msg = cm.unraisable.err_msg else: err_msg = "Exception ignored in" msg = f"{err_msg}: {cm.unraisable.object!r}\n\n" msg += "".join( traceback.format_exception( cm.unraisable.exc_type, cm.unraisable.exc_value, cm.unraisable.exc_traceback, ) ) > warnings.warn(pytest.PytestUnraisableExceptionWarning(msg)) E pytest.PytestUnraisableExceptionWarning: Exception ignored in: E E Traceback (most recent call last): E File "/build/reproducible-path/aiorwlock-1.0.0/tests/conftest.py", line 44, in event_loop E gc.collect() E ResourceWarning: unclosed /usr/lib/python3/dist-packages/_pytest/unraisableexception.py:80: PytestUnraisableExceptionWarning _ ERROR at teardown of test_ctor_deprecated_explicit_non_running[debug:true-pyloop] _ cls = func = . at 0xf67086b8> when = 'teardown' reraise = (, ) @classmethod def from_call( cls, func: Callable[[], TResult], when: Literal["collect", "setup", "call", "teardown"], reraise: Optional[ Union[Type[BaseException], Tuple[Type[BaseException], ...]] ] = None, ) -> "CallInfo[TResult]": """Call func, wrapping the result in a CallInfo. :param func: The function to call. Called without arguments. :param when: The phase in which the function is called. :param reraise: Exception or exceptions that shall propagate if raised by the function, instead of being wrapped in the CallInfo. """ excinfo = None start = timing.time() precise_start = timing.perf_counter() try: > result: Optional[TResult] = func() /usr/lib/python3/dist-packages/_pytest/runner.py:341: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/dist-packages/_pytest/runner.py:241: in lambda: runtest_hook(item=item, **kwds), when=when, reraise=reraise /usr/lib/python3/dist-packages/pluggy/_hooks.py:513: in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) /usr/lib/python3/dist-packages/pluggy/_manager.py:120: in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) /usr/lib/python3/dist-packages/_pytest/threadexception.py:92: in pytest_runtest_teardown yield from thread_exception_runtest_hook() /usr/lib/python3/dist-packages/_pytest/threadexception.py:63: in thread_exception_runtest_hook yield /usr/lib/python3/dist-packages/_pytest/unraisableexception.py:95: in pytest_runtest_teardown yield from unraisable_exception_runtest_hook() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ def unraisable_exception_runtest_hook() -> Generator[None, None, None]: with catch_unraisable_exception() as cm: try: yield finally: if cm.unraisable: if cm.unraisable.err_msg is not None: err_msg = cm.unraisable.err_msg else: err_msg = "Exception ignored in" msg = f"{err_msg}: {cm.unraisable.object!r}\n\n" msg += "".join( traceback.format_exception( cm.unraisable.exc_type, cm.unraisable.exc_value, cm.unraisable.exc_traceback, ) ) > warnings.warn(pytest.PytestUnraisableExceptionWarning(msg)) E pytest.PytestUnraisableExceptionWarning: Exception ignored in: E E Traceback (most recent call last): E File "/build/reproducible-path/aiorwlock-1.0.0/tests/conftest.py", line 44, in event_loop E gc.collect() E ResourceWarning: unclosed /usr/lib/python3/dist-packages/_pytest/unraisableexception.py:80: PytestUnraisableExceptionWarning ____ ERROR at teardown of test_ctor_loop_deprecated_arg[debug:true-pyloop] _____ cls = func = . at 0xf6708a78> when = 'teardown' reraise = (, ) @classmethod def from_call( cls, func: Callable[[], TResult], when: Literal["collect", "setup", "call", "teardown"], reraise: Optional[ Union[Type[BaseException], Tuple[Type[BaseException], ...]] ] = None, ) -> "CallInfo[TResult]": """Call func, wrapping the result in a CallInfo. :param func: The function to call. Called without arguments. :param when: The phase in which the function is called. :param reraise: Exception or exceptions that shall propagate if raised by the function, instead of being wrapped in the CallInfo. """ excinfo = None start = timing.time() precise_start = timing.perf_counter() try: > result: Optional[TResult] = func() /usr/lib/python3/dist-packages/_pytest/runner.py:341: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/dist-packages/_pytest/runner.py:241: in lambda: runtest_hook(item=item, **kwds), when=when, reraise=reraise /usr/lib/python3/dist-packages/pluggy/_hooks.py:513: in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) /usr/lib/python3/dist-packages/pluggy/_manager.py:120: in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) /usr/lib/python3/dist-packages/_pytest/threadexception.py:92: in pytest_runtest_teardown yield from thread_exception_runtest_hook() /usr/lib/python3/dist-packages/_pytest/threadexception.py:63: in thread_exception_runtest_hook yield /usr/lib/python3/dist-packages/_pytest/unraisableexception.py:95: in pytest_runtest_teardown yield from unraisable_exception_runtest_hook() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ def unraisable_exception_runtest_hook() -> Generator[None, None, None]: with catch_unraisable_exception() as cm: try: yield finally: if cm.unraisable: if cm.unraisable.err_msg is not None: err_msg = cm.unraisable.err_msg else: err_msg = "Exception ignored in" msg = f"{err_msg}: {cm.unraisable.object!r}\n\n" msg += "".join( traceback.format_exception( cm.unraisable.exc_type, cm.unraisable.exc_value, cm.unraisable.exc_traceback, ) ) > warnings.warn(pytest.PytestUnraisableExceptionWarning(msg)) E pytest.PytestUnraisableExceptionWarning: Exception ignored in: E E Traceback (most recent call last): E File "/build/reproducible-path/aiorwlock-1.0.0/tests/conftest.py", line 44, in event_loop E gc.collect() E ResourceWarning: unclosed /usr/lib/python3/dist-packages/_pytest/unraisableexception.py:80: PytestUnraisableExceptionWarning ________ ERROR at teardown of test_ctor_loop_reader[debug:true-pyloop] _________ cls = func = . at 0xf67086b8> when = 'teardown' reraise = (, ) @classmethod def from_call( cls, func: Callable[[], TResult], when: Literal["collect", "setup", "call", "teardown"], reraise: Optional[ Union[Type[BaseException], Tuple[Type[BaseException], ...]] ] = None, ) -> "CallInfo[TResult]": """Call func, wrapping the result in a CallInfo. :param func: The function to call. Called without arguments. :param when: The phase in which the function is called. :param reraise: Exception or exceptions that shall propagate if raised by the function, instead of being wrapped in the CallInfo. """ excinfo = None start = timing.time() precise_start = timing.perf_counter() try: > result: Optional[TResult] = func() /usr/lib/python3/dist-packages/_pytest/runner.py:341: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/dist-packages/_pytest/runner.py:241: in lambda: runtest_hook(item=item, **kwds), when=when, reraise=reraise /usr/lib/python3/dist-packages/pluggy/_hooks.py:513: in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) /usr/lib/python3/dist-packages/pluggy/_manager.py:120: in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) /usr/lib/python3/dist-packages/_pytest/threadexception.py:92: in pytest_runtest_teardown yield from thread_exception_runtest_hook() /usr/lib/python3/dist-packages/_pytest/threadexception.py:63: in thread_exception_runtest_hook yield /usr/lib/python3/dist-packages/_pytest/unraisableexception.py:95: in pytest_runtest_teardown yield from unraisable_exception_runtest_hook() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ def unraisable_exception_runtest_hook() -> Generator[None, None, None]: with catch_unraisable_exception() as cm: try: yield finally: if cm.unraisable: if cm.unraisable.err_msg is not None: err_msg = cm.unraisable.err_msg else: err_msg = "Exception ignored in" msg = f"{err_msg}: {cm.unraisable.object!r}\n\n" msg += "".join( traceback.format_exception( cm.unraisable.exc_type, cm.unraisable.exc_value, cm.unraisable.exc_traceback, ) ) > warnings.warn(pytest.PytestUnraisableExceptionWarning(msg)) E pytest.PytestUnraisableExceptionWarning: Exception ignored in: E E Traceback (most recent call last): E File "/build/reproducible-path/aiorwlock-1.0.0/tests/conftest.py", line 44, in event_loop E gc.collect() E ResourceWarning: unclosed /usr/lib/python3/dist-packages/_pytest/unraisableexception.py:80: PytestUnraisableExceptionWarning _______ ERROR at teardown of test_ctor_noloop_reader[debug:true-pyloop] ________ cls = func = . at 0xf6708a78> when = 'teardown' reraise = (, ) @classmethod def from_call( cls, func: Callable[[], TResult], when: Literal["collect", "setup", "call", "teardown"], reraise: Optional[ Union[Type[BaseException], Tuple[Type[BaseException], ...]] ] = None, ) -> "CallInfo[TResult]": """Call func, wrapping the result in a CallInfo. :param func: The function to call. Called without arguments. :param when: The phase in which the function is called. :param reraise: Exception or exceptions that shall propagate if raised by the function, instead of being wrapped in the CallInfo. """ excinfo = None start = timing.time() precise_start = timing.perf_counter() try: > result: Optional[TResult] = func() /usr/lib/python3/dist-packages/_pytest/runner.py:341: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/dist-packages/_pytest/runner.py:241: in lambda: runtest_hook(item=item, **kwds), when=when, reraise=reraise /usr/lib/python3/dist-packages/pluggy/_hooks.py:513: in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) /usr/lib/python3/dist-packages/pluggy/_manager.py:120: in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) /usr/lib/python3/dist-packages/_pytest/threadexception.py:92: in pytest_runtest_teardown yield from thread_exception_runtest_hook() /usr/lib/python3/dist-packages/_pytest/threadexception.py:63: in thread_exception_runtest_hook yield /usr/lib/python3/dist-packages/_pytest/unraisableexception.py:95: in pytest_runtest_teardown yield from unraisable_exception_runtest_hook() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ def unraisable_exception_runtest_hook() -> Generator[None, None, None]: with catch_unraisable_exception() as cm: try: yield finally: if cm.unraisable: if cm.unraisable.err_msg is not None: err_msg = cm.unraisable.err_msg else: err_msg = "Exception ignored in" msg = f"{err_msg}: {cm.unraisable.object!r}\n\n" msg += "".join( traceback.format_exception( cm.unraisable.exc_type, cm.unraisable.exc_value, cm.unraisable.exc_traceback, ) ) > warnings.warn(pytest.PytestUnraisableExceptionWarning(msg)) E pytest.PytestUnraisableExceptionWarning: Exception ignored in: E E Traceback (most recent call last): E File "/build/reproducible-path/aiorwlock-1.0.0/tests/conftest.py", line 44, in event_loop E gc.collect() E ResourceWarning: unclosed /usr/lib/python3/dist-packages/_pytest/unraisableexception.py:80: PytestUnraisableExceptionWarning ________ ERROR at teardown of test_ctor_loop_writer[debug:true-pyloop] _________ cls = func = . at 0xf6704d48> when = 'teardown' reraise = (, ) @classmethod def from_call( cls, func: Callable[[], TResult], when: Literal["collect", "setup", "call", "teardown"], reraise: Optional[ Union[Type[BaseException], Tuple[Type[BaseException], ...]] ] = None, ) -> "CallInfo[TResult]": """Call func, wrapping the result in a CallInfo. :param func: The function to call. Called without arguments. :param when: The phase in which the function is called. :param reraise: Exception or exceptions that shall propagate if raised by the function, instead of being wrapped in the CallInfo. """ excinfo = None start = timing.time() precise_start = timing.perf_counter() try: > result: Optional[TResult] = func() /usr/lib/python3/dist-packages/_pytest/runner.py:341: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/dist-packages/_pytest/runner.py:241: in lambda: runtest_hook(item=item, **kwds), when=when, reraise=reraise /usr/lib/python3/dist-packages/pluggy/_hooks.py:513: in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) /usr/lib/python3/dist-packages/pluggy/_manager.py:120: in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) /usr/lib/python3/dist-packages/_pytest/threadexception.py:92: in pytest_runtest_teardown yield from thread_exception_runtest_hook() /usr/lib/python3/dist-packages/_pytest/threadexception.py:63: in thread_exception_runtest_hook yield /usr/lib/python3/dist-packages/_pytest/unraisableexception.py:95: in pytest_runtest_teardown yield from unraisable_exception_runtest_hook() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ def unraisable_exception_runtest_hook() -> Generator[None, None, None]: with catch_unraisable_exception() as cm: try: yield finally: if cm.unraisable: if cm.unraisable.err_msg is not None: err_msg = cm.unraisable.err_msg else: err_msg = "Exception ignored in" msg = f"{err_msg}: {cm.unraisable.object!r}\n\n" msg += "".join( traceback.format_exception( cm.unraisable.exc_type, cm.unraisable.exc_value, cm.unraisable.exc_traceback, ) ) > warnings.warn(pytest.PytestUnraisableExceptionWarning(msg)) E pytest.PytestUnraisableExceptionWarning: Exception ignored in: E E Traceback (most recent call last): E File "/build/reproducible-path/aiorwlock-1.0.0/tests/conftest.py", line 44, in event_loop E gc.collect() E ResourceWarning: unclosed /usr/lib/python3/dist-packages/_pytest/unraisableexception.py:80: PytestUnraisableExceptionWarning _______ ERROR at teardown of test_ctor_noloop_writer[debug:true-pyloop] ________ cls = func = . at 0xf6708a78> when = 'teardown' reraise = (, ) @classmethod def from_call( cls, func: Callable[[], TResult], when: Literal["collect", "setup", "call", "teardown"], reraise: Optional[ Union[Type[BaseException], Tuple[Type[BaseException], ...]] ] = None, ) -> "CallInfo[TResult]": """Call func, wrapping the result in a CallInfo. :param func: The function to call. Called without arguments. :param when: The phase in which the function is called. :param reraise: Exception or exceptions that shall propagate if raised by the function, instead of being wrapped in the CallInfo. """ excinfo = None start = timing.time() precise_start = timing.perf_counter() try: > result: Optional[TResult] = func() /usr/lib/python3/dist-packages/_pytest/runner.py:341: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/dist-packages/_pytest/runner.py:241: in lambda: runtest_hook(item=item, **kwds), when=when, reraise=reraise /usr/lib/python3/dist-packages/pluggy/_hooks.py:513: in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) /usr/lib/python3/dist-packages/pluggy/_manager.py:120: in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) /usr/lib/python3/dist-packages/_pytest/threadexception.py:92: in pytest_runtest_teardown yield from thread_exception_runtest_hook() /usr/lib/python3/dist-packages/_pytest/threadexception.py:63: in thread_exception_runtest_hook yield /usr/lib/python3/dist-packages/_pytest/unraisableexception.py:95: in pytest_runtest_teardown yield from unraisable_exception_runtest_hook() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ def unraisable_exception_runtest_hook() -> Generator[None, None, None]: with catch_unraisable_exception() as cm: try: yield finally: if cm.unraisable: if cm.unraisable.err_msg is not None: err_msg = cm.unraisable.err_msg else: err_msg = "Exception ignored in" msg = f"{err_msg}: {cm.unraisable.object!r}\n\n" msg += "".join( traceback.format_exception( cm.unraisable.exc_type, cm.unraisable.exc_value, cm.unraisable.exc_traceback, ) ) > warnings.warn(pytest.PytestUnraisableExceptionWarning(msg)) E pytest.PytestUnraisableExceptionWarning: Exception ignored in: E E Traceback (most recent call last): E File "/build/reproducible-path/aiorwlock-1.0.0/tests/conftest.py", line 44, in event_loop E gc.collect() E ResourceWarning: unclosed /usr/lib/python3/dist-packages/_pytest/unraisableexception.py:80: PytestUnraisableExceptionWarning ______________ ERROR at teardown of test_repr[debug:true-pyloop] _______________ cls = func = . at 0xf66ffde8> when = 'teardown' reraise = (, ) @classmethod def from_call( cls, func: Callable[[], TResult], when: Literal["collect", "setup", "call", "teardown"], reraise: Optional[ Union[Type[BaseException], Tuple[Type[BaseException], ...]] ] = None, ) -> "CallInfo[TResult]": """Call func, wrapping the result in a CallInfo. :param func: The function to call. Called without arguments. :param when: The phase in which the function is called. :param reraise: Exception or exceptions that shall propagate if raised by the function, instead of being wrapped in the CallInfo. """ excinfo = None start = timing.time() precise_start = timing.perf_counter() try: > result: Optional[TResult] = func() /usr/lib/python3/dist-packages/_pytest/runner.py:341: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/dist-packages/_pytest/runner.py:241: in lambda: runtest_hook(item=item, **kwds), when=when, reraise=reraise /usr/lib/python3/dist-packages/pluggy/_hooks.py:513: in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) /usr/lib/python3/dist-packages/pluggy/_manager.py:120: in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) /usr/lib/python3/dist-packages/_pytest/threadexception.py:92: in pytest_runtest_teardown yield from thread_exception_runtest_hook() /usr/lib/python3/dist-packages/_pytest/threadexception.py:63: in thread_exception_runtest_hook yield /usr/lib/python3/dist-packages/_pytest/unraisableexception.py:95: in pytest_runtest_teardown yield from unraisable_exception_runtest_hook() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ def unraisable_exception_runtest_hook() -> Generator[None, None, None]: with catch_unraisable_exception() as cm: try: yield finally: if cm.unraisable: if cm.unraisable.err_msg is not None: err_msg = cm.unraisable.err_msg else: err_msg = "Exception ignored in" msg = f"{err_msg}: {cm.unraisable.object!r}\n\n" msg += "".join( traceback.format_exception( cm.unraisable.exc_type, cm.unraisable.exc_value, cm.unraisable.exc_traceback, ) ) > warnings.warn(pytest.PytestUnraisableExceptionWarning(msg)) E pytest.PytestUnraisableExceptionWarning: Exception ignored in: E E Traceback (most recent call last): E File "/build/reproducible-path/aiorwlock-1.0.0/tests/conftest.py", line 44, in event_loop E gc.collect() E ResourceWarning: unclosed /usr/lib/python3/dist-packages/_pytest/unraisableexception.py:80: PytestUnraisableExceptionWarning ________ ERROR at teardown of test_release_unlocked[debug:true-pyloop] _________ cls = func = . at 0xf6708a78> when = 'teardown' reraise = (, ) @classmethod def from_call( cls, func: Callable[[], TResult], when: Literal["collect", "setup", "call", "teardown"], reraise: Optional[ Union[Type[BaseException], Tuple[Type[BaseException], ...]] ] = None, ) -> "CallInfo[TResult]": """Call func, wrapping the result in a CallInfo. :param func: The function to call. Called without arguments. :param when: The phase in which the function is called. :param reraise: Exception or exceptions that shall propagate if raised by the function, instead of being wrapped in the CallInfo. """ excinfo = None start = timing.time() precise_start = timing.perf_counter() try: > result: Optional[TResult] = func() /usr/lib/python3/dist-packages/_pytest/runner.py:341: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/dist-packages/_pytest/runner.py:241: in lambda: runtest_hook(item=item, **kwds), when=when, reraise=reraise /usr/lib/python3/dist-packages/pluggy/_hooks.py:513: in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) /usr/lib/python3/dist-packages/pluggy/_manager.py:120: in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) /usr/lib/python3/dist-packages/_pytest/threadexception.py:92: in pytest_runtest_teardown yield from thread_exception_runtest_hook() /usr/lib/python3/dist-packages/_pytest/threadexception.py:63: in thread_exception_runtest_hook yield /usr/lib/python3/dist-packages/_pytest/unraisableexception.py:95: in pytest_runtest_teardown yield from unraisable_exception_runtest_hook() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ def unraisable_exception_runtest_hook() -> Generator[None, None, None]: with catch_unraisable_exception() as cm: try: yield finally: if cm.unraisable: if cm.unraisable.err_msg is not None: err_msg = cm.unraisable.err_msg else: err_msg = "Exception ignored in" msg = f"{err_msg}: {cm.unraisable.object!r}\n\n" msg += "".join( traceback.format_exception( cm.unraisable.exc_type, cm.unraisable.exc_value, cm.unraisable.exc_traceback, ) ) > warnings.warn(pytest.PytestUnraisableExceptionWarning(msg)) E pytest.PytestUnraisableExceptionWarning: Exception ignored in: E E Traceback (most recent call last): E File "/build/reproducible-path/aiorwlock-1.0.0/tests/conftest.py", line 44, in event_loop E gc.collect() E ResourceWarning: unclosed /usr/lib/python3/dist-packages/_pytest/unraisableexception.py:80: PytestUnraisableExceptionWarning ________ ERROR at teardown of test_many_readers[debug:true-fast-pyloop] ________ cls = func = . at 0xf6704e38> when = 'teardown' reraise = (, ) @classmethod def from_call( cls, func: Callable[[], TResult], when: Literal["collect", "setup", "call", "teardown"], reraise: Optional[ Union[Type[BaseException], Tuple[Type[BaseException], ...]] ] = None, ) -> "CallInfo[TResult]": """Call func, wrapping the result in a CallInfo. :param func: The function to call. Called without arguments. :param when: The phase in which the function is called. :param reraise: Exception or exceptions that shall propagate if raised by the function, instead of being wrapped in the CallInfo. """ excinfo = None start = timing.time() precise_start = timing.perf_counter() try: > result: Optional[TResult] = func() /usr/lib/python3/dist-packages/_pytest/runner.py:341: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/dist-packages/_pytest/runner.py:241: in lambda: runtest_hook(item=item, **kwds), when=when, reraise=reraise /usr/lib/python3/dist-packages/pluggy/_hooks.py:513: in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) /usr/lib/python3/dist-packages/pluggy/_manager.py:120: in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) /usr/lib/python3/dist-packages/_pytest/threadexception.py:92: in pytest_runtest_teardown yield from thread_exception_runtest_hook() /usr/lib/python3/dist-packages/_pytest/threadexception.py:63: in thread_exception_runtest_hook yield /usr/lib/python3/dist-packages/_pytest/unraisableexception.py:95: in pytest_runtest_teardown yield from unraisable_exception_runtest_hook() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ def unraisable_exception_runtest_hook() -> Generator[None, None, None]: with catch_unraisable_exception() as cm: try: yield finally: if cm.unraisable: if cm.unraisable.err_msg is not None: err_msg = cm.unraisable.err_msg else: err_msg = "Exception ignored in" msg = f"{err_msg}: {cm.unraisable.object!r}\n\n" msg += "".join( traceback.format_exception( cm.unraisable.exc_type, cm.unraisable.exc_value, cm.unraisable.exc_traceback, ) ) > warnings.warn(pytest.PytestUnraisableExceptionWarning(msg)) E pytest.PytestUnraisableExceptionWarning: Exception ignored in: E E Traceback (most recent call last): E File "/build/reproducible-path/aiorwlock-1.0.0/tests/conftest.py", line 44, in event_loop E gc.collect() E ResourceWarning: unclosed /usr/lib/python3/dist-packages/_pytest/unraisableexception.py:80: PytestUnraisableExceptionWarning ______ ERROR at teardown of test_reader_recursion[debug:true-fast-pyloop] ______ cls = func = . at 0xf6708a78> when = 'teardown' reraise = (, ) @classmethod def from_call( cls, func: Callable[[], TResult], when: Literal["collect", "setup", "call", "teardown"], reraise: Optional[ Union[Type[BaseException], Tuple[Type[BaseException], ...]] ] = None, ) -> "CallInfo[TResult]": """Call func, wrapping the result in a CallInfo. :param func: The function to call. Called without arguments. :param when: The phase in which the function is called. :param reraise: Exception or exceptions that shall propagate if raised by the function, instead of being wrapped in the CallInfo. """ excinfo = None start = timing.time() precise_start = timing.perf_counter() try: > result: Optional[TResult] = func() /usr/lib/python3/dist-packages/_pytest/runner.py:341: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/dist-packages/_pytest/runner.py:241: in lambda: runtest_hook(item=item, **kwds), when=when, reraise=reraise /usr/lib/python3/dist-packages/pluggy/_hooks.py:513: in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) /usr/lib/python3/dist-packages/pluggy/_manager.py:120: in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) /usr/lib/python3/dist-packages/_pytest/threadexception.py:92: in pytest_runtest_teardown yield from thread_exception_runtest_hook() /usr/lib/python3/dist-packages/_pytest/threadexception.py:63: in thread_exception_runtest_hook yield /usr/lib/python3/dist-packages/_pytest/unraisableexception.py:95: in pytest_runtest_teardown yield from unraisable_exception_runtest_hook() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ def unraisable_exception_runtest_hook() -> Generator[None, None, None]: with catch_unraisable_exception() as cm: try: yield finally: if cm.unraisable: if cm.unraisable.err_msg is not None: err_msg = cm.unraisable.err_msg else: err_msg = "Exception ignored in" msg = f"{err_msg}: {cm.unraisable.object!r}\n\n" msg += "".join( traceback.format_exception( cm.unraisable.exc_type, cm.unraisable.exc_value, cm.unraisable.exc_traceback, ) ) > warnings.warn(pytest.PytestUnraisableExceptionWarning(msg)) E pytest.PytestUnraisableExceptionWarning: Exception ignored in: E E Traceback (most recent call last): E File "/build/reproducible-path/aiorwlock-1.0.0/tests/conftest.py", line 44, in event_loop E gc.collect() E ResourceWarning: unclosed /usr/lib/python3/dist-packages/_pytest/unraisableexception.py:80: PytestUnraisableExceptionWarning ______ ERROR at teardown of test_writer_recursion[debug:true-fast-pyloop] ______ cls = func = . at 0xf6704e38> when = 'teardown' reraise = (, ) @classmethod def from_call( cls, func: Callable[[], TResult], when: Literal["collect", "setup", "call", "teardown"], reraise: Optional[ Union[Type[BaseException], Tuple[Type[BaseException], ...]] ] = None, ) -> "CallInfo[TResult]": """Call func, wrapping the result in a CallInfo. :param func: The function to call. Called without arguments. :param when: The phase in which the function is called. :param reraise: Exception or exceptions that shall propagate if raised by the function, instead of being wrapped in the CallInfo. """ excinfo = None start = timing.time() precise_start = timing.perf_counter() try: > result: Optional[TResult] = func() /usr/lib/python3/dist-packages/_pytest/runner.py:341: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/dist-packages/_pytest/runner.py:241: in lambda: runtest_hook(item=item, **kwds), when=when, reraise=reraise /usr/lib/python3/dist-packages/pluggy/_hooks.py:513: in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) /usr/lib/python3/dist-packages/pluggy/_manager.py:120: in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) /usr/lib/python3/dist-packages/_pytest/threadexception.py:92: in pytest_runtest_teardown yield from thread_exception_runtest_hook() /usr/lib/python3/dist-packages/_pytest/threadexception.py:63: in thread_exception_runtest_hook yield /usr/lib/python3/dist-packages/_pytest/unraisableexception.py:95: in pytest_runtest_teardown yield from unraisable_exception_runtest_hook() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ def unraisable_exception_runtest_hook() -> Generator[None, None, None]: with catch_unraisable_exception() as cm: try: yield finally: if cm.unraisable: if cm.unraisable.err_msg is not None: err_msg = cm.unraisable.err_msg else: err_msg = "Exception ignored in" msg = f"{err_msg}: {cm.unraisable.object!r}\n\n" msg += "".join( traceback.format_exception( cm.unraisable.exc_type, cm.unraisable.exc_value, cm.unraisable.exc_traceback, ) ) > warnings.warn(pytest.PytestUnraisableExceptionWarning(msg)) E pytest.PytestUnraisableExceptionWarning: Exception ignored in: E E Traceback (most recent call last): E File "/build/reproducible-path/aiorwlock-1.0.0/tests/conftest.py", line 44, in event_loop E gc.collect() E ResourceWarning: unclosed /usr/lib/python3/dist-packages/_pytest/unraisableexception.py:80: PytestUnraisableExceptionWarning _ ERROR at teardown of test_writer_then_reader_recursion[debug:true-fast-pyloop] _ cls = func = . at 0xf6708a78> when = 'teardown' reraise = (, ) @classmethod def from_call( cls, func: Callable[[], TResult], when: Literal["collect", "setup", "call", "teardown"], reraise: Optional[ Union[Type[BaseException], Tuple[Type[BaseException], ...]] ] = None, ) -> "CallInfo[TResult]": """Call func, wrapping the result in a CallInfo. :param func: The function to call. Called without arguments. :param when: The phase in which the function is called. :param reraise: Exception or exceptions that shall propagate if raised by the function, instead of being wrapped in the CallInfo. """ excinfo = None start = timing.time() precise_start = timing.perf_counter() try: > result: Optional[TResult] = func() /usr/lib/python3/dist-packages/_pytest/runner.py:341: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/dist-packages/_pytest/runner.py:241: in lambda: runtest_hook(item=item, **kwds), when=when, reraise=reraise /usr/lib/python3/dist-packages/pluggy/_hooks.py:513: in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) /usr/lib/python3/dist-packages/pluggy/_manager.py:120: in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) /usr/lib/python3/dist-packages/_pytest/threadexception.py:92: in pytest_runtest_teardown yield from thread_exception_runtest_hook() /usr/lib/python3/dist-packages/_pytest/threadexception.py:63: in thread_exception_runtest_hook yield /usr/lib/python3/dist-packages/_pytest/unraisableexception.py:95: in pytest_runtest_teardown yield from unraisable_exception_runtest_hook() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ def unraisable_exception_runtest_hook() -> Generator[None, None, None]: with catch_unraisable_exception() as cm: try: yield finally: if cm.unraisable: if cm.unraisable.err_msg is not None: err_msg = cm.unraisable.err_msg else: err_msg = "Exception ignored in" msg = f"{err_msg}: {cm.unraisable.object!r}\n\n" msg += "".join( traceback.format_exception( cm.unraisable.exc_type, cm.unraisable.exc_value, cm.unraisable.exc_traceback, ) ) > warnings.warn(pytest.PytestUnraisableExceptionWarning(msg)) E pytest.PytestUnraisableExceptionWarning: Exception ignored in: E E Traceback (most recent call last): E File "/build/reproducible-path/aiorwlock-1.0.0/tests/conftest.py", line 44, in event_loop E gc.collect() E ResourceWarning: unclosed /usr/lib/python3/dist-packages/_pytest/unraisableexception.py:80: PytestUnraisableExceptionWarning ______ ERROR at teardown of test_readers_writers[debug:true-fast-pyloop] _______ cls = func = . at 0xf6704e38> when = 'teardown' reraise = (, ) @classmethod def from_call( cls, func: Callable[[], TResult], when: Literal["collect", "setup", "call", "teardown"], reraise: Optional[ Union[Type[BaseException], Tuple[Type[BaseException], ...]] ] = None, ) -> "CallInfo[TResult]": """Call func, wrapping the result in a CallInfo. :param func: The function to call. Called without arguments. :param when: The phase in which the function is called. :param reraise: Exception or exceptions that shall propagate if raised by the function, instead of being wrapped in the CallInfo. """ excinfo = None start = timing.time() precise_start = timing.perf_counter() try: > result: Optional[TResult] = func() /usr/lib/python3/dist-packages/_pytest/runner.py:341: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/dist-packages/_pytest/runner.py:241: in lambda: runtest_hook(item=item, **kwds), when=when, reraise=reraise /usr/lib/python3/dist-packages/pluggy/_hooks.py:513: in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) /usr/lib/python3/dist-packages/pluggy/_manager.py:120: in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) /usr/lib/python3/dist-packages/_pytest/threadexception.py:92: in pytest_runtest_teardown yield from thread_exception_runtest_hook() /usr/lib/python3/dist-packages/_pytest/threadexception.py:63: in thread_exception_runtest_hook yield /usr/lib/python3/dist-packages/_pytest/unraisableexception.py:95: in pytest_runtest_teardown yield from unraisable_exception_runtest_hook() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ def unraisable_exception_runtest_hook() -> Generator[None, None, None]: with catch_unraisable_exception() as cm: try: yield finally: if cm.unraisable: if cm.unraisable.err_msg is not None: err_msg = cm.unraisable.err_msg else: err_msg = "Exception ignored in" msg = f"{err_msg}: {cm.unraisable.object!r}\n\n" msg += "".join( traceback.format_exception( cm.unraisable.exc_type, cm.unraisable.exc_value, cm.unraisable.exc_traceback, ) ) > warnings.warn(pytest.PytestUnraisableExceptionWarning(msg)) E pytest.PytestUnraisableExceptionWarning: Exception ignored in: E E Traceback (most recent call last): E File "/build/reproducible-path/aiorwlock-1.0.0/tests/conftest.py", line 44, in event_loop E gc.collect() E ResourceWarning: unclosed /usr/lib/python3/dist-packages/_pytest/unraisableexception.py:80: PytestUnraisableExceptionWarning _ ERROR at teardown of test_raise_error_on_with_for_reader_lock[debug:true-fast-pyloop] _ cls = func = . at 0xf6708a78> when = 'teardown' reraise = (, ) @classmethod def from_call( cls, func: Callable[[], TResult], when: Literal["collect", "setup", "call", "teardown"], reraise: Optional[ Union[Type[BaseException], Tuple[Type[BaseException], ...]] ] = None, ) -> "CallInfo[TResult]": """Call func, wrapping the result in a CallInfo. :param func: The function to call. Called without arguments. :param when: The phase in which the function is called. :param reraise: Exception or exceptions that shall propagate if raised by the function, instead of being wrapped in the CallInfo. """ excinfo = None start = timing.time() precise_start = timing.perf_counter() try: > result: Optional[TResult] = func() /usr/lib/python3/dist-packages/_pytest/runner.py:341: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/dist-packages/_pytest/runner.py:241: in lambda: runtest_hook(item=item, **kwds), when=when, reraise=reraise /usr/lib/python3/dist-packages/pluggy/_hooks.py:513: in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) /usr/lib/python3/dist-packages/pluggy/_manager.py:120: in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) /usr/lib/python3/dist-packages/_pytest/threadexception.py:92: in pytest_runtest_teardown yield from thread_exception_runtest_hook() /usr/lib/python3/dist-packages/_pytest/threadexception.py:63: in thread_exception_runtest_hook yield /usr/lib/python3/dist-packages/_pytest/unraisableexception.py:95: in pytest_runtest_teardown yield from unraisable_exception_runtest_hook() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ def unraisable_exception_runtest_hook() -> Generator[None, None, None]: with catch_unraisable_exception() as cm: try: yield finally: if cm.unraisable: if cm.unraisable.err_msg is not None: err_msg = cm.unraisable.err_msg else: err_msg = "Exception ignored in" msg = f"{err_msg}: {cm.unraisable.object!r}\n\n" msg += "".join( traceback.format_exception( cm.unraisable.exc_type, cm.unraisable.exc_value, cm.unraisable.exc_traceback, ) ) > warnings.warn(pytest.PytestUnraisableExceptionWarning(msg)) E pytest.PytestUnraisableExceptionWarning: Exception ignored in: E E Traceback (most recent call last): E File "/build/reproducible-path/aiorwlock-1.0.0/tests/conftest.py", line 44, in event_loop E gc.collect() E ResourceWarning: unclosed /usr/lib/python3/dist-packages/_pytest/unraisableexception.py:80: PytestUnraisableExceptionWarning _ ERROR at teardown of test_raise_error_on_with_for_writer_lock[debug:true-fast-pyloop] _ cls = func = . at 0xf66da208> when = 'teardown' reraise = (, ) @classmethod def from_call( cls, func: Callable[[], TResult], when: Literal["collect", "setup", "call", "teardown"], reraise: Optional[ Union[Type[BaseException], Tuple[Type[BaseException], ...]] ] = None, ) -> "CallInfo[TResult]": """Call func, wrapping the result in a CallInfo. :param func: The function to call. Called without arguments. :param when: The phase in which the function is called. :param reraise: Exception or exceptions that shall propagate if raised by the function, instead of being wrapped in the CallInfo. """ excinfo = None start = timing.time() precise_start = timing.perf_counter() try: > result: Optional[TResult] = func() /usr/lib/python3/dist-packages/_pytest/runner.py:341: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/dist-packages/_pytest/runner.py:241: in lambda: runtest_hook(item=item, **kwds), when=when, reraise=reraise /usr/lib/python3/dist-packages/pluggy/_hooks.py:513: in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) /usr/lib/python3/dist-packages/pluggy/_manager.py:120: in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) /usr/lib/python3/dist-packages/_pytest/threadexception.py:92: in pytest_runtest_teardown yield from thread_exception_runtest_hook() /usr/lib/python3/dist-packages/_pytest/threadexception.py:63: in thread_exception_runtest_hook yield /usr/lib/python3/dist-packages/_pytest/unraisableexception.py:95: in pytest_runtest_teardown yield from unraisable_exception_runtest_hook() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ def unraisable_exception_runtest_hook() -> Generator[None, None, None]: with catch_unraisable_exception() as cm: try: yield finally: if cm.unraisable: if cm.unraisable.err_msg is not None: err_msg = cm.unraisable.err_msg else: err_msg = "Exception ignored in" msg = f"{err_msg}: {cm.unraisable.object!r}\n\n" msg += "".join( traceback.format_exception( cm.unraisable.exc_type, cm.unraisable.exc_value, cm.unraisable.exc_traceback, ) ) > warnings.warn(pytest.PytestUnraisableExceptionWarning(msg)) E pytest.PytestUnraisableExceptionWarning: Exception ignored in: E E Traceback (most recent call last): E File "/build/reproducible-path/aiorwlock-1.0.0/tests/conftest.py", line 44, in event_loop E gc.collect() E ResourceWarning: unclosed /usr/lib/python3/dist-packages/_pytest/unraisableexception.py:80: PytestUnraisableExceptionWarning ________ ERROR at teardown of test_read_locked[debug:true-fast-pyloop] _________ cls = func = . at 0xf6708a78> when = 'teardown' reraise = (, ) @classmethod def from_call( cls, func: Callable[[], TResult], when: Literal["collect", "setup", "call", "teardown"], reraise: Optional[ Union[Type[BaseException], Tuple[Type[BaseException], ...]] ] = None, ) -> "CallInfo[TResult]": """Call func, wrapping the result in a CallInfo. :param func: The function to call. Called without arguments. :param when: The phase in which the function is called. :param reraise: Exception or exceptions that shall propagate if raised by the function, instead of being wrapped in the CallInfo. """ excinfo = None start = timing.time() precise_start = timing.perf_counter() try: > result: Optional[TResult] = func() /usr/lib/python3/dist-packages/_pytest/runner.py:341: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/dist-packages/_pytest/runner.py:241: in lambda: runtest_hook(item=item, **kwds), when=when, reraise=reraise /usr/lib/python3/dist-packages/pluggy/_hooks.py:513: in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) /usr/lib/python3/dist-packages/pluggy/_manager.py:120: in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) /usr/lib/python3/dist-packages/_pytest/threadexception.py:92: in pytest_runtest_teardown yield from thread_exception_runtest_hook() /usr/lib/python3/dist-packages/_pytest/threadexception.py:63: in thread_exception_runtest_hook yield /usr/lib/python3/dist-packages/_pytest/unraisableexception.py:95: in pytest_runtest_teardown yield from unraisable_exception_runtest_hook() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ def unraisable_exception_runtest_hook() -> Generator[None, None, None]: with catch_unraisable_exception() as cm: try: yield finally: if cm.unraisable: if cm.unraisable.err_msg is not None: err_msg = cm.unraisable.err_msg else: err_msg = "Exception ignored in" msg = f"{err_msg}: {cm.unraisable.object!r}\n\n" msg += "".join( traceback.format_exception( cm.unraisable.exc_type, cm.unraisable.exc_value, cm.unraisable.exc_traceback, ) ) > warnings.warn(pytest.PytestUnraisableExceptionWarning(msg)) E pytest.PytestUnraisableExceptionWarning: Exception ignored in: E E Traceback (most recent call last): E File "/build/reproducible-path/aiorwlock-1.0.0/tests/conftest.py", line 44, in event_loop E gc.collect() E ResourceWarning: unclosed /usr/lib/python3/dist-packages/_pytest/unraisableexception.py:80: PytestUnraisableExceptionWarning ________ ERROR at teardown of test_write_locked[debug:true-fast-pyloop] ________ cls = func = . at 0xf66da208> when = 'teardown' reraise = (, ) @classmethod def from_call( cls, func: Callable[[], TResult], when: Literal["collect", "setup", "call", "teardown"], reraise: Optional[ Union[Type[BaseException], Tuple[Type[BaseException], ...]] ] = None, ) -> "CallInfo[TResult]": """Call func, wrapping the result in a CallInfo. :param func: The function to call. Called without arguments. :param when: The phase in which the function is called. :param reraise: Exception or exceptions that shall propagate if raised by the function, instead of being wrapped in the CallInfo. """ excinfo = None start = timing.time() precise_start = timing.perf_counter() try: > result: Optional[TResult] = func() /usr/lib/python3/dist-packages/_pytest/runner.py:341: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/dist-packages/_pytest/runner.py:241: in lambda: runtest_hook(item=item, **kwds), when=when, reraise=reraise /usr/lib/python3/dist-packages/pluggy/_hooks.py:513: in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) /usr/lib/python3/dist-packages/pluggy/_manager.py:120: in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) /usr/lib/python3/dist-packages/_pytest/threadexception.py:92: in pytest_runtest_teardown yield from thread_exception_runtest_hook() /usr/lib/python3/dist-packages/_pytest/threadexception.py:63: in thread_exception_runtest_hook yield /usr/lib/python3/dist-packages/_pytest/unraisableexception.py:95: in pytest_runtest_teardown yield from unraisable_exception_runtest_hook() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ def unraisable_exception_runtest_hook() -> Generator[None, None, None]: with catch_unraisable_exception() as cm: try: yield finally: if cm.unraisable: if cm.unraisable.err_msg is not None: err_msg = cm.unraisable.err_msg else: err_msg = "Exception ignored in" msg = f"{err_msg}: {cm.unraisable.object!r}\n\n" msg += "".join( traceback.format_exception( cm.unraisable.exc_type, cm.unraisable.exc_value, cm.unraisable.exc_traceback, ) ) > warnings.warn(pytest.PytestUnraisableExceptionWarning(msg)) E pytest.PytestUnraisableExceptionWarning: Exception ignored in: E E Traceback (most recent call last): E File "/build/reproducible-path/aiorwlock-1.0.0/tests/conftest.py", line 44, in event_loop E gc.collect() E ResourceWarning: unclosed /usr/lib/python3/dist-packages/_pytest/unraisableexception.py:80: PytestUnraisableExceptionWarning _ ERROR at teardown of test_write_read_lock_multiple_tasks[debug:true-fast-pyloop] _ cls = func = . at 0xf6708a78> when = 'teardown' reraise = (, ) @classmethod def from_call( cls, func: Callable[[], TResult], when: Literal["collect", "setup", "call", "teardown"], reraise: Optional[ Union[Type[BaseException], Tuple[Type[BaseException], ...]] ] = None, ) -> "CallInfo[TResult]": """Call func, wrapping the result in a CallInfo. :param func: The function to call. Called without arguments. :param when: The phase in which the function is called. :param reraise: Exception or exceptions that shall propagate if raised by the function, instead of being wrapped in the CallInfo. """ excinfo = None start = timing.time() precise_start = timing.perf_counter() try: > result: Optional[TResult] = func() /usr/lib/python3/dist-packages/_pytest/runner.py:341: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/dist-packages/_pytest/runner.py:241: in lambda: runtest_hook(item=item, **kwds), when=when, reraise=reraise /usr/lib/python3/dist-packages/pluggy/_hooks.py:513: in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) /usr/lib/python3/dist-packages/pluggy/_manager.py:120: in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) /usr/lib/python3/dist-packages/_pytest/threadexception.py:92: in pytest_runtest_teardown yield from thread_exception_runtest_hook() /usr/lib/python3/dist-packages/_pytest/threadexception.py:63: in thread_exception_runtest_hook yield /usr/lib/python3/dist-packages/_pytest/unraisableexception.py:95: in pytest_runtest_teardown yield from unraisable_exception_runtest_hook() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ def unraisable_exception_runtest_hook() -> Generator[None, None, None]: with catch_unraisable_exception() as cm: try: yield finally: if cm.unraisable: if cm.unraisable.err_msg is not None: err_msg = cm.unraisable.err_msg else: err_msg = "Exception ignored in" msg = f"{err_msg}: {cm.unraisable.object!r}\n\n" msg += "".join( traceback.format_exception( cm.unraisable.exc_type, cm.unraisable.exc_value, cm.unraisable.exc_traceback, ) ) > warnings.warn(pytest.PytestUnraisableExceptionWarning(msg)) E pytest.PytestUnraisableExceptionWarning: Exception ignored in: E E Traceback (most recent call last): E File "/build/reproducible-path/aiorwlock-1.0.0/tests/conftest.py", line 44, in event_loop E gc.collect() E ResourceWarning: unclosed /usr/lib/python3/dist-packages/_pytest/unraisableexception.py:80: PytestUnraisableExceptionWarning ____ ERROR at teardown of test_read_context_manager[debug:true-fast-pyloop] ____ cls = func = . at 0xf66da208> when = 'teardown' reraise = (, ) @classmethod def from_call( cls, func: Callable[[], TResult], when: Literal["collect", "setup", "call", "teardown"], reraise: Optional[ Union[Type[BaseException], Tuple[Type[BaseException], ...]] ] = None, ) -> "CallInfo[TResult]": """Call func, wrapping the result in a CallInfo. :param func: The function to call. Called without arguments. :param when: The phase in which the function is called. :param reraise: Exception or exceptions that shall propagate if raised by the function, instead of being wrapped in the CallInfo. """ excinfo = None start = timing.time() precise_start = timing.perf_counter() try: > result: Optional[TResult] = func() /usr/lib/python3/dist-packages/_pytest/runner.py:341: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/dist-packages/_pytest/runner.py:241: in lambda: runtest_hook(item=item, **kwds), when=when, reraise=reraise /usr/lib/python3/dist-packages/pluggy/_hooks.py:513: in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) /usr/lib/python3/dist-packages/pluggy/_manager.py:120: in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) /usr/lib/python3/dist-packages/_pytest/threadexception.py:92: in pytest_runtest_teardown yield from thread_exception_runtest_hook() /usr/lib/python3/dist-packages/_pytest/threadexception.py:63: in thread_exception_runtest_hook yield /usr/lib/python3/dist-packages/_pytest/unraisableexception.py:95: in pytest_runtest_teardown yield from unraisable_exception_runtest_hook() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ def unraisable_exception_runtest_hook() -> Generator[None, None, None]: with catch_unraisable_exception() as cm: try: yield finally: if cm.unraisable: if cm.unraisable.err_msg is not None: err_msg = cm.unraisable.err_msg else: err_msg = "Exception ignored in" msg = f"{err_msg}: {cm.unraisable.object!r}\n\n" msg += "".join( traceback.format_exception( cm.unraisable.exc_type, cm.unraisable.exc_value, cm.unraisable.exc_traceback, ) ) > warnings.warn(pytest.PytestUnraisableExceptionWarning(msg)) E pytest.PytestUnraisableExceptionWarning: Exception ignored in: E E Traceback (most recent call last): E File "/build/reproducible-path/aiorwlock-1.0.0/tests/conftest.py", line 44, in event_loop E gc.collect() E ResourceWarning: unclosed /usr/lib/python3/dist-packages/_pytest/unraisableexception.py:80: PytestUnraisableExceptionWarning ___ ERROR at teardown of test_write_context_manager[debug:true-fast-pyloop] ____ cls = func = . at 0xf6708a78> when = 'teardown' reraise = (, ) @classmethod def from_call( cls, func: Callable[[], TResult], when: Literal["collect", "setup", "call", "teardown"], reraise: Optional[ Union[Type[BaseException], Tuple[Type[BaseException], ...]] ] = None, ) -> "CallInfo[TResult]": """Call func, wrapping the result in a CallInfo. :param func: The function to call. Called without arguments. :param when: The phase in which the function is called. :param reraise: Exception or exceptions that shall propagate if raised by the function, instead of being wrapped in the CallInfo. """ excinfo = None start = timing.time() precise_start = timing.perf_counter() try: > result: Optional[TResult] = func() /usr/lib/python3/dist-packages/_pytest/runner.py:341: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/dist-packages/_pytest/runner.py:241: in lambda: runtest_hook(item=item, **kwds), when=when, reraise=reraise /usr/lib/python3/dist-packages/pluggy/_hooks.py:513: in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) /usr/lib/python3/dist-packages/pluggy/_manager.py:120: in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) /usr/lib/python3/dist-packages/_pytest/threadexception.py:92: in pytest_runtest_teardown yield from thread_exception_runtest_hook() /usr/lib/python3/dist-packages/_pytest/threadexception.py:63: in thread_exception_runtest_hook yield /usr/lib/python3/dist-packages/_pytest/unraisableexception.py:95: in pytest_runtest_teardown yield from unraisable_exception_runtest_hook() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ def unraisable_exception_runtest_hook() -> Generator[None, None, None]: with catch_unraisable_exception() as cm: try: yield finally: if cm.unraisable: if cm.unraisable.err_msg is not None: err_msg = cm.unraisable.err_msg else: err_msg = "Exception ignored in" msg = f"{err_msg}: {cm.unraisable.object!r}\n\n" msg += "".join( traceback.format_exception( cm.unraisable.exc_type, cm.unraisable.exc_value, cm.unraisable.exc_traceback, ) ) > warnings.warn(pytest.PytestUnraisableExceptionWarning(msg)) E pytest.PytestUnraisableExceptionWarning: Exception ignored in: E E Traceback (most recent call last): E File "/build/reproducible-path/aiorwlock-1.0.0/tests/conftest.py", line 44, in event_loop E gc.collect() E ResourceWarning: unclosed /usr/lib/python3/dist-packages/_pytest/unraisableexception.py:80: PytestUnraisableExceptionWarning ______ ERROR at teardown of test_await_read_lock[debug:true-fast-pyloop] _______ cls = func = . at 0xf66da208> when = 'teardown' reraise = (, ) @classmethod def from_call( cls, func: Callable[[], TResult], when: Literal["collect", "setup", "call", "teardown"], reraise: Optional[ Union[Type[BaseException], Tuple[Type[BaseException], ...]] ] = None, ) -> "CallInfo[TResult]": """Call func, wrapping the result in a CallInfo. :param func: The function to call. Called without arguments. :param when: The phase in which the function is called. :param reraise: Exception or exceptions that shall propagate if raised by the function, instead of being wrapped in the CallInfo. """ excinfo = None start = timing.time() precise_start = timing.perf_counter() try: > result: Optional[TResult] = func() /usr/lib/python3/dist-packages/_pytest/runner.py:341: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/dist-packages/_pytest/runner.py:241: in lambda: runtest_hook(item=item, **kwds), when=when, reraise=reraise /usr/lib/python3/dist-packages/pluggy/_hooks.py:513: in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) /usr/lib/python3/dist-packages/pluggy/_manager.py:120: in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) /usr/lib/python3/dist-packages/_pytest/threadexception.py:92: in pytest_runtest_teardown yield from thread_exception_runtest_hook() /usr/lib/python3/dist-packages/_pytest/threadexception.py:63: in thread_exception_runtest_hook yield /usr/lib/python3/dist-packages/_pytest/unraisableexception.py:95: in pytest_runtest_teardown yield from unraisable_exception_runtest_hook() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ def unraisable_exception_runtest_hook() -> Generator[None, None, None]: with catch_unraisable_exception() as cm: try: yield finally: if cm.unraisable: if cm.unraisable.err_msg is not None: err_msg = cm.unraisable.err_msg else: err_msg = "Exception ignored in" msg = f"{err_msg}: {cm.unraisable.object!r}\n\n" msg += "".join( traceback.format_exception( cm.unraisable.exc_type, cm.unraisable.exc_value, cm.unraisable.exc_traceback, ) ) > warnings.warn(pytest.PytestUnraisableExceptionWarning(msg)) E pytest.PytestUnraisableExceptionWarning: Exception ignored in: E E Traceback (most recent call last): E File "/build/reproducible-path/aiorwlock-1.0.0/tests/conftest.py", line 44, in event_loop E gc.collect() E ResourceWarning: unclosed /usr/lib/python3/dist-packages/_pytest/unraisableexception.py:80: PytestUnraisableExceptionWarning ______ ERROR at teardown of test_await_write_lock[debug:true-fast-pyloop] ______ cls = func = . at 0xf6708a78> when = 'teardown' reraise = (, ) @classmethod def from_call( cls, func: Callable[[], TResult], when: Literal["collect", "setup", "call", "teardown"], reraise: Optional[ Union[Type[BaseException], Tuple[Type[BaseException], ...]] ] = None, ) -> "CallInfo[TResult]": """Call func, wrapping the result in a CallInfo. :param func: The function to call. Called without arguments. :param when: The phase in which the function is called. :param reraise: Exception or exceptions that shall propagate if raised by the function, instead of being wrapped in the CallInfo. """ excinfo = None start = timing.time() precise_start = timing.perf_counter() try: > result: Optional[TResult] = func() /usr/lib/python3/dist-packages/_pytest/runner.py:341: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/dist-packages/_pytest/runner.py:241: in lambda: runtest_hook(item=item, **kwds), when=when, reraise=reraise /usr/lib/python3/dist-packages/pluggy/_hooks.py:513: in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) /usr/lib/python3/dist-packages/pluggy/_manager.py:120: in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) /usr/lib/python3/dist-packages/_pytest/threadexception.py:92: in pytest_runtest_teardown yield from thread_exception_runtest_hook() /usr/lib/python3/dist-packages/_pytest/threadexception.py:63: in thread_exception_runtest_hook yield /usr/lib/python3/dist-packages/_pytest/unraisableexception.py:95: in pytest_runtest_teardown yield from unraisable_exception_runtest_hook() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ def unraisable_exception_runtest_hook() -> Generator[None, None, None]: with catch_unraisable_exception() as cm: try: yield finally: if cm.unraisable: if cm.unraisable.err_msg is not None: err_msg = cm.unraisable.err_msg else: err_msg = "Exception ignored in" msg = f"{err_msg}: {cm.unraisable.object!r}\n\n" msg += "".join( traceback.format_exception( cm.unraisable.exc_type, cm.unraisable.exc_value, cm.unraisable.exc_traceback, ) ) > warnings.warn(pytest.PytestUnraisableExceptionWarning(msg)) E pytest.PytestUnraisableExceptionWarning: Exception ignored in: E E Traceback (most recent call last): E File "/build/reproducible-path/aiorwlock-1.0.0/tests/conftest.py", line 44, in event_loop E gc.collect() E ResourceWarning: unclosed /usr/lib/python3/dist-packages/_pytest/unraisableexception.py:80: PytestUnraisableExceptionWarning _ ERROR at teardown of test_raise_error_on_with_for_reader_lock[debug:true-fast-uvloop] _ cls = func = . at 0xf66b0e38> when = 'teardown' reraise = (, ) @classmethod def from_call( cls, func: Callable[[], TResult], when: Literal["collect", "setup", "call", "teardown"], reraise: Optional[ Union[Type[BaseException], Tuple[Type[BaseException], ...]] ] = None, ) -> "CallInfo[TResult]": """Call func, wrapping the result in a CallInfo. :param func: The function to call. Called without arguments. :param when: The phase in which the function is called. :param reraise: Exception or exceptions that shall propagate if raised by the function, instead of being wrapped in the CallInfo. """ excinfo = None start = timing.time() precise_start = timing.perf_counter() try: > result: Optional[TResult] = func() /usr/lib/python3/dist-packages/_pytest/runner.py:341: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/dist-packages/_pytest/runner.py:241: in lambda: runtest_hook(item=item, **kwds), when=when, reraise=reraise /usr/lib/python3/dist-packages/pluggy/_hooks.py:513: in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) /usr/lib/python3/dist-packages/pluggy/_manager.py:120: in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) /usr/lib/python3/dist-packages/_pytest/threadexception.py:92: in pytest_runtest_teardown yield from thread_exception_runtest_hook() /usr/lib/python3/dist-packages/_pytest/threadexception.py:63: in thread_exception_runtest_hook yield /usr/lib/python3/dist-packages/_pytest/unraisableexception.py:95: in pytest_runtest_teardown yield from unraisable_exception_runtest_hook() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ def unraisable_exception_runtest_hook() -> Generator[None, None, None]: with catch_unraisable_exception() as cm: try: yield finally: if cm.unraisable: if cm.unraisable.err_msg is not None: err_msg = cm.unraisable.err_msg else: err_msg = "Exception ignored in" msg = f"{err_msg}: {cm.unraisable.object!r}\n\n" msg += "".join( traceback.format_exception( cm.unraisable.exc_type, cm.unraisable.exc_value, cm.unraisable.exc_traceback, ) ) > warnings.warn(pytest.PytestUnraisableExceptionWarning(msg)) E pytest.PytestUnraisableExceptionWarning: Exception ignored in: E E Traceback (most recent call last): E File "/build/reproducible-path/aiorwlock-1.0.0/tests/conftest.py", line 44, in event_loop E gc.collect() E ResourceWarning: unclosed /usr/lib/python3/dist-packages/_pytest/unraisableexception.py:80: PytestUnraisableExceptionWarning _ ERROR at teardown of test_raise_error_on_with_for_writer_lock[debug:true-fast-uvloop] _ cls = func = . at 0xf66cf6b8> when = 'teardown' reraise = (, ) @classmethod def from_call( cls, func: Callable[[], TResult], when: Literal["collect", "setup", "call", "teardown"], reraise: Optional[ Union[Type[BaseException], Tuple[Type[BaseException], ...]] ] = None, ) -> "CallInfo[TResult]": """Call func, wrapping the result in a CallInfo. :param func: The function to call. Called without arguments. :param when: The phase in which the function is called. :param reraise: Exception or exceptions that shall propagate if raised by the function, instead of being wrapped in the CallInfo. """ excinfo = None start = timing.time() precise_start = timing.perf_counter() try: > result: Optional[TResult] = func() /usr/lib/python3/dist-packages/_pytest/runner.py:341: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/dist-packages/_pytest/runner.py:241: in lambda: runtest_hook(item=item, **kwds), when=when, reraise=reraise /usr/lib/python3/dist-packages/pluggy/_hooks.py:513: in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) /usr/lib/python3/dist-packages/pluggy/_manager.py:120: in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) /usr/lib/python3/dist-packages/_pytest/threadexception.py:92: in pytest_runtest_teardown yield from thread_exception_runtest_hook() /usr/lib/python3/dist-packages/_pytest/threadexception.py:63: in thread_exception_runtest_hook yield /usr/lib/python3/dist-packages/_pytest/unraisableexception.py:95: in pytest_runtest_teardown yield from unraisable_exception_runtest_hook() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ def unraisable_exception_runtest_hook() -> Generator[None, None, None]: with catch_unraisable_exception() as cm: try: yield finally: if cm.unraisable: if cm.unraisable.err_msg is not None: err_msg = cm.unraisable.err_msg else: err_msg = "Exception ignored in" msg = f"{err_msg}: {cm.unraisable.object!r}\n\n" msg += "".join( traceback.format_exception( cm.unraisable.exc_type, cm.unraisable.exc_value, cm.unraisable.exc_traceback, ) ) > warnings.warn(pytest.PytestUnraisableExceptionWarning(msg)) E pytest.PytestUnraisableExceptionWarning: Exception ignored in: E E Traceback (most recent call last): E File "/build/reproducible-path/aiorwlock-1.0.0/tests/conftest.py", line 44, in event_loop E gc.collect() E ResourceWarning: unclosed /usr/lib/python3/dist-packages/_pytest/unraisableexception.py:80: PytestUnraisableExceptionWarning ________ ERROR at teardown of test_read_locked[debug:true-fast-uvloop] _________ cls = func = . at 0xf66cff78> when = 'teardown' reraise = (, ) @classmethod def from_call( cls, func: Callable[[], TResult], when: Literal["collect", "setup", "call", "teardown"], reraise: Optional[ Union[Type[BaseException], Tuple[Type[BaseException], ...]] ] = None, ) -> "CallInfo[TResult]": """Call func, wrapping the result in a CallInfo. :param func: The function to call. Called without arguments. :param when: The phase in which the function is called. :param reraise: Exception or exceptions that shall propagate if raised by the function, instead of being wrapped in the CallInfo. """ excinfo = None start = timing.time() precise_start = timing.perf_counter() try: > result: Optional[TResult] = func() /usr/lib/python3/dist-packages/_pytest/runner.py:341: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/dist-packages/_pytest/runner.py:241: in lambda: runtest_hook(item=item, **kwds), when=when, reraise=reraise /usr/lib/python3/dist-packages/pluggy/_hooks.py:513: in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) /usr/lib/python3/dist-packages/pluggy/_manager.py:120: in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) /usr/lib/python3/dist-packages/_pytest/threadexception.py:92: in pytest_runtest_teardown yield from thread_exception_runtest_hook() /usr/lib/python3/dist-packages/_pytest/threadexception.py:63: in thread_exception_runtest_hook yield /usr/lib/python3/dist-packages/_pytest/unraisableexception.py:95: in pytest_runtest_teardown yield from unraisable_exception_runtest_hook() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ def unraisable_exception_runtest_hook() -> Generator[None, None, None]: with catch_unraisable_exception() as cm: try: yield finally: if cm.unraisable: if cm.unraisable.err_msg is not None: err_msg = cm.unraisable.err_msg else: err_msg = "Exception ignored in" msg = f"{err_msg}: {cm.unraisable.object!r}\n\n" msg += "".join( traceback.format_exception( cm.unraisable.exc_type, cm.unraisable.exc_value, cm.unraisable.exc_traceback, ) ) > warnings.warn(pytest.PytestUnraisableExceptionWarning(msg)) E pytest.PytestUnraisableExceptionWarning: Exception ignored in: E E Traceback (most recent call last): E File "/build/reproducible-path/aiorwlock-1.0.0/tests/conftest.py", line 44, in event_loop E gc.collect() E ResourceWarning: unclosed /usr/lib/python3/dist-packages/_pytest/unraisableexception.py:80: PytestUnraisableExceptionWarning ________ ERROR at teardown of test_write_locked[debug:true-fast-uvloop] ________ cls = func = . at 0xf66cf6b8> when = 'teardown' reraise = (, ) @classmethod def from_call( cls, func: Callable[[], TResult], when: Literal["collect", "setup", "call", "teardown"], reraise: Optional[ Union[Type[BaseException], Tuple[Type[BaseException], ...]] ] = None, ) -> "CallInfo[TResult]": """Call func, wrapping the result in a CallInfo. :param func: The function to call. Called without arguments. :param when: The phase in which the function is called. :param reraise: Exception or exceptions that shall propagate if raised by the function, instead of being wrapped in the CallInfo. """ excinfo = None start = timing.time() precise_start = timing.perf_counter() try: > result: Optional[TResult] = func() /usr/lib/python3/dist-packages/_pytest/runner.py:341: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/dist-packages/_pytest/runner.py:241: in lambda: runtest_hook(item=item, **kwds), when=when, reraise=reraise /usr/lib/python3/dist-packages/pluggy/_hooks.py:513: in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) /usr/lib/python3/dist-packages/pluggy/_manager.py:120: in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) /usr/lib/python3/dist-packages/_pytest/threadexception.py:92: in pytest_runtest_teardown yield from thread_exception_runtest_hook() /usr/lib/python3/dist-packages/_pytest/threadexception.py:63: in thread_exception_runtest_hook yield /usr/lib/python3/dist-packages/_pytest/unraisableexception.py:95: in pytest_runtest_teardown yield from unraisable_exception_runtest_hook() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ def unraisable_exception_runtest_hook() -> Generator[None, None, None]: with catch_unraisable_exception() as cm: try: yield finally: if cm.unraisable: if cm.unraisable.err_msg is not None: err_msg = cm.unraisable.err_msg else: err_msg = "Exception ignored in" msg = f"{err_msg}: {cm.unraisable.object!r}\n\n" msg += "".join( traceback.format_exception( cm.unraisable.exc_type, cm.unraisable.exc_value, cm.unraisable.exc_traceback, ) ) > warnings.warn(pytest.PytestUnraisableExceptionWarning(msg)) E pytest.PytestUnraisableExceptionWarning: Exception ignored in: E E Traceback (most recent call last): E File "/build/reproducible-path/aiorwlock-1.0.0/tests/conftest.py", line 44, in event_loop E gc.collect() E ResourceWarning: unclosed /usr/lib/python3/dist-packages/_pytest/unraisableexception.py:80: PytestUnraisableExceptionWarning _ ERROR at teardown of test_write_read_lock_multiple_tasks[debug:true-fast-uvloop] _ cls = func = . at 0xf66cff78> when = 'teardown' reraise = (, ) @classmethod def from_call( cls, func: Callable[[], TResult], when: Literal["collect", "setup", "call", "teardown"], reraise: Optional[ Union[Type[BaseException], Tuple[Type[BaseException], ...]] ] = None, ) -> "CallInfo[TResult]": """Call func, wrapping the result in a CallInfo. :param func: The function to call. Called without arguments. :param when: The phase in which the function is called. :param reraise: Exception or exceptions that shall propagate if raised by the function, instead of being wrapped in the CallInfo. """ excinfo = None start = timing.time() precise_start = timing.perf_counter() try: > result: Optional[TResult] = func() /usr/lib/python3/dist-packages/_pytest/runner.py:341: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/dist-packages/_pytest/runner.py:241: in lambda: runtest_hook(item=item, **kwds), when=when, reraise=reraise /usr/lib/python3/dist-packages/pluggy/_hooks.py:513: in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) /usr/lib/python3/dist-packages/pluggy/_manager.py:120: in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) /usr/lib/python3/dist-packages/_pytest/threadexception.py:92: in pytest_runtest_teardown yield from thread_exception_runtest_hook() /usr/lib/python3/dist-packages/_pytest/threadexception.py:63: in thread_exception_runtest_hook yield /usr/lib/python3/dist-packages/_pytest/unraisableexception.py:95: in pytest_runtest_teardown yield from unraisable_exception_runtest_hook() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ def unraisable_exception_runtest_hook() -> Generator[None, None, None]: with catch_unraisable_exception() as cm: try: yield finally: if cm.unraisable: if cm.unraisable.err_msg is not None: err_msg = cm.unraisable.err_msg else: err_msg = "Exception ignored in" msg = f"{err_msg}: {cm.unraisable.object!r}\n\n" msg += "".join( traceback.format_exception( cm.unraisable.exc_type, cm.unraisable.exc_value, cm.unraisable.exc_traceback, ) ) > warnings.warn(pytest.PytestUnraisableExceptionWarning(msg)) E pytest.PytestUnraisableExceptionWarning: Exception ignored in: E E Traceback (most recent call last): E File "/build/reproducible-path/aiorwlock-1.0.0/tests/conftest.py", line 44, in event_loop E gc.collect() E ResourceWarning: unclosed /usr/lib/python3/dist-packages/_pytest/unraisableexception.py:80: PytestUnraisableExceptionWarning ____ ERROR at teardown of test_read_context_manager[debug:true-fast-uvloop] ____ cls = func = . at 0xf66cf6b8> when = 'teardown' reraise = (, ) @classmethod def from_call( cls, func: Callable[[], TResult], when: Literal["collect", "setup", "call", "teardown"], reraise: Optional[ Union[Type[BaseException], Tuple[Type[BaseException], ...]] ] = None, ) -> "CallInfo[TResult]": """Call func, wrapping the result in a CallInfo. :param func: The function to call. Called without arguments. :param when: The phase in which the function is called. :param reraise: Exception or exceptions that shall propagate if raised by the function, instead of being wrapped in the CallInfo. """ excinfo = None start = timing.time() precise_start = timing.perf_counter() try: > result: Optional[TResult] = func() /usr/lib/python3/dist-packages/_pytest/runner.py:341: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/dist-packages/_pytest/runner.py:241: in lambda: runtest_hook(item=item, **kwds), when=when, reraise=reraise /usr/lib/python3/dist-packages/pluggy/_hooks.py:513: in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) /usr/lib/python3/dist-packages/pluggy/_manager.py:120: in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) /usr/lib/python3/dist-packages/_pytest/threadexception.py:92: in pytest_runtest_teardown yield from thread_exception_runtest_hook() /usr/lib/python3/dist-packages/_pytest/threadexception.py:63: in thread_exception_runtest_hook yield /usr/lib/python3/dist-packages/_pytest/unraisableexception.py:95: in pytest_runtest_teardown yield from unraisable_exception_runtest_hook() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ def unraisable_exception_runtest_hook() -> Generator[None, None, None]: with catch_unraisable_exception() as cm: try: yield finally: if cm.unraisable: if cm.unraisable.err_msg is not None: err_msg = cm.unraisable.err_msg else: err_msg = "Exception ignored in" msg = f"{err_msg}: {cm.unraisable.object!r}\n\n" msg += "".join( traceback.format_exception( cm.unraisable.exc_type, cm.unraisable.exc_value, cm.unraisable.exc_traceback, ) ) > warnings.warn(pytest.PytestUnraisableExceptionWarning(msg)) E pytest.PytestUnraisableExceptionWarning: Exception ignored in: E E Traceback (most recent call last): E File "/build/reproducible-path/aiorwlock-1.0.0/tests/conftest.py", line 44, in event_loop E gc.collect() E ResourceWarning: unclosed /usr/lib/python3/dist-packages/_pytest/unraisableexception.py:80: PytestUnraisableExceptionWarning ___ ERROR at teardown of test_write_context_manager[debug:true-fast-uvloop] ____ cls = func = . at 0xf66cff78> when = 'teardown' reraise = (, ) @classmethod def from_call( cls, func: Callable[[], TResult], when: Literal["collect", "setup", "call", "teardown"], reraise: Optional[ Union[Type[BaseException], Tuple[Type[BaseException], ...]] ] = None, ) -> "CallInfo[TResult]": """Call func, wrapping the result in a CallInfo. :param func: The function to call. Called without arguments. :param when: The phase in which the function is called. :param reraise: Exception or exceptions that shall propagate if raised by the function, instead of being wrapped in the CallInfo. """ excinfo = None start = timing.time() precise_start = timing.perf_counter() try: > result: Optional[TResult] = func() /usr/lib/python3/dist-packages/_pytest/runner.py:341: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/dist-packages/_pytest/runner.py:241: in lambda: runtest_hook(item=item, **kwds), when=when, reraise=reraise /usr/lib/python3/dist-packages/pluggy/_hooks.py:513: in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) /usr/lib/python3/dist-packages/pluggy/_manager.py:120: in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) /usr/lib/python3/dist-packages/_pytest/threadexception.py:92: in pytest_runtest_teardown yield from thread_exception_runtest_hook() /usr/lib/python3/dist-packages/_pytest/threadexception.py:63: in thread_exception_runtest_hook yield /usr/lib/python3/dist-packages/_pytest/unraisableexception.py:95: in pytest_runtest_teardown yield from unraisable_exception_runtest_hook() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ def unraisable_exception_runtest_hook() -> Generator[None, None, None]: with catch_unraisable_exception() as cm: try: yield finally: if cm.unraisable: if cm.unraisable.err_msg is not None: err_msg = cm.unraisable.err_msg else: err_msg = "Exception ignored in" msg = f"{err_msg}: {cm.unraisable.object!r}\n\n" msg += "".join( traceback.format_exception( cm.unraisable.exc_type, cm.unraisable.exc_value, cm.unraisable.exc_traceback, ) ) > warnings.warn(pytest.PytestUnraisableExceptionWarning(msg)) E pytest.PytestUnraisableExceptionWarning: Exception ignored in: E E Traceback (most recent call last): E File "/build/reproducible-path/aiorwlock-1.0.0/tests/conftest.py", line 44, in event_loop E gc.collect() E ResourceWarning: unclosed /usr/lib/python3/dist-packages/_pytest/unraisableexception.py:80: PytestUnraisableExceptionWarning ______ ERROR at teardown of test_await_read_lock[debug:true-fast-uvloop] _______ cls = func = . at 0xf66cf6b8> when = 'teardown' reraise = (, ) @classmethod def from_call( cls, func: Callable[[], TResult], when: Literal["collect", "setup", "call", "teardown"], reraise: Optional[ Union[Type[BaseException], Tuple[Type[BaseException], ...]] ] = None, ) -> "CallInfo[TResult]": """Call func, wrapping the result in a CallInfo. :param func: The function to call. Called without arguments. :param when: The phase in which the function is called. :param reraise: Exception or exceptions that shall propagate if raised by the function, instead of being wrapped in the CallInfo. """ excinfo = None start = timing.time() precise_start = timing.perf_counter() try: > result: Optional[TResult] = func() /usr/lib/python3/dist-packages/_pytest/runner.py:341: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/dist-packages/_pytest/runner.py:241: in lambda: runtest_hook(item=item, **kwds), when=when, reraise=reraise /usr/lib/python3/dist-packages/pluggy/_hooks.py:513: in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) /usr/lib/python3/dist-packages/pluggy/_manager.py:120: in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) /usr/lib/python3/dist-packages/_pytest/threadexception.py:92: in pytest_runtest_teardown yield from thread_exception_runtest_hook() /usr/lib/python3/dist-packages/_pytest/threadexception.py:63: in thread_exception_runtest_hook yield /usr/lib/python3/dist-packages/_pytest/unraisableexception.py:95: in pytest_runtest_teardown yield from unraisable_exception_runtest_hook() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ def unraisable_exception_runtest_hook() -> Generator[None, None, None]: with catch_unraisable_exception() as cm: try: yield finally: if cm.unraisable: if cm.unraisable.err_msg is not None: err_msg = cm.unraisable.err_msg else: err_msg = "Exception ignored in" msg = f"{err_msg}: {cm.unraisable.object!r}\n\n" msg += "".join( traceback.format_exception( cm.unraisable.exc_type, cm.unraisable.exc_value, cm.unraisable.exc_traceback, ) ) > warnings.warn(pytest.PytestUnraisableExceptionWarning(msg)) E pytest.PytestUnraisableExceptionWarning: Exception ignored in: E E Traceback (most recent call last): E File "/build/reproducible-path/aiorwlock-1.0.0/tests/conftest.py", line 44, in event_loop E gc.collect() E ResourceWarning: unclosed /usr/lib/python3/dist-packages/_pytest/unraisableexception.py:80: PytestUnraisableExceptionWarning ______ ERROR at teardown of test_await_write_lock[debug:true-fast-uvloop] ______ cls = func = . at 0xf66cff78> when = 'teardown' reraise = (, ) @classmethod def from_call( cls, func: Callable[[], TResult], when: Literal["collect", "setup", "call", "teardown"], reraise: Optional[ Union[Type[BaseException], Tuple[Type[BaseException], ...]] ] = None, ) -> "CallInfo[TResult]": """Call func, wrapping the result in a CallInfo. :param func: The function to call. Called without arguments. :param when: The phase in which the function is called. :param reraise: Exception or exceptions that shall propagate if raised by the function, instead of being wrapped in the CallInfo. """ excinfo = None start = timing.time() precise_start = timing.perf_counter() try: > result: Optional[TResult] = func() /usr/lib/python3/dist-packages/_pytest/runner.py:341: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/dist-packages/_pytest/runner.py:241: in lambda: runtest_hook(item=item, **kwds), when=when, reraise=reraise /usr/lib/python3/dist-packages/pluggy/_hooks.py:513: in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) /usr/lib/python3/dist-packages/pluggy/_manager.py:120: in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) /usr/lib/python3/dist-packages/_pytest/threadexception.py:92: in pytest_runtest_teardown yield from thread_exception_runtest_hook() /usr/lib/python3/dist-packages/_pytest/threadexception.py:63: in thread_exception_runtest_hook yield /usr/lib/python3/dist-packages/_pytest/unraisableexception.py:95: in pytest_runtest_teardown yield from unraisable_exception_runtest_hook() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ def unraisable_exception_runtest_hook() -> Generator[None, None, None]: with catch_unraisable_exception() as cm: try: yield finally: if cm.unraisable: if cm.unraisable.err_msg is not None: err_msg = cm.unraisable.err_msg else: err_msg = "Exception ignored in" msg = f"{err_msg}: {cm.unraisable.object!r}\n\n" msg += "".join( traceback.format_exception( cm.unraisable.exc_type, cm.unraisable.exc_value, cm.unraisable.exc_traceback, ) ) > warnings.warn(pytest.PytestUnraisableExceptionWarning(msg)) E pytest.PytestUnraisableExceptionWarning: Exception ignored in: E E Traceback (most recent call last): E File "/build/reproducible-path/aiorwlock-1.0.0/tests/conftest.py", line 44, in event_loop E gc.collect() E ResourceWarning: unclosed /usr/lib/python3/dist-packages/_pytest/unraisableexception.py:80: PytestUnraisableExceptionWarning _ ERROR at teardown of test_ctor_deprecated_implicit_not_running[debug:true-uvloop] _ cls = func = . at 0xf66cf6b8> when = 'teardown' reraise = (, ) @classmethod def from_call( cls, func: Callable[[], TResult], when: Literal["collect", "setup", "call", "teardown"], reraise: Optional[ Union[Type[BaseException], Tuple[Type[BaseException], ...]] ] = None, ) -> "CallInfo[TResult]": """Call func, wrapping the result in a CallInfo. :param func: The function to call. Called without arguments. :param when: The phase in which the function is called. :param reraise: Exception or exceptions that shall propagate if raised by the function, instead of being wrapped in the CallInfo. """ excinfo = None start = timing.time() precise_start = timing.perf_counter() try: > result: Optional[TResult] = func() /usr/lib/python3/dist-packages/_pytest/runner.py:341: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/dist-packages/_pytest/runner.py:241: in lambda: runtest_hook(item=item, **kwds), when=when, reraise=reraise /usr/lib/python3/dist-packages/pluggy/_hooks.py:513: in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) /usr/lib/python3/dist-packages/pluggy/_manager.py:120: in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) /usr/lib/python3/dist-packages/_pytest/threadexception.py:92: in pytest_runtest_teardown yield from thread_exception_runtest_hook() /usr/lib/python3/dist-packages/_pytest/threadexception.py:63: in thread_exception_runtest_hook yield /usr/lib/python3/dist-packages/_pytest/unraisableexception.py:95: in pytest_runtest_teardown yield from unraisable_exception_runtest_hook() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ def unraisable_exception_runtest_hook() -> Generator[None, None, None]: with catch_unraisable_exception() as cm: try: yield finally: if cm.unraisable: if cm.unraisable.err_msg is not None: err_msg = cm.unraisable.err_msg else: err_msg = "Exception ignored in" msg = f"{err_msg}: {cm.unraisable.object!r}\n\n" msg += "".join( traceback.format_exception( cm.unraisable.exc_type, cm.unraisable.exc_value, cm.unraisable.exc_traceback, ) ) > warnings.warn(pytest.PytestUnraisableExceptionWarning(msg)) E pytest.PytestUnraisableExceptionWarning: Exception ignored in: E E Traceback (most recent call last): E File "/build/reproducible-path/aiorwlock-1.0.0/tests/conftest.py", line 44, in event_loop E gc.collect() E ResourceWarning: unclosed /usr/lib/python3/dist-packages/_pytest/unraisableexception.py:80: PytestUnraisableExceptionWarning _ ERROR at teardown of test_ctor_deprecated_explicit_non_running[debug:true-uvloop] _ cls = func = . at 0xf66cff78> when = 'teardown' reraise = (, ) @classmethod def from_call( cls, func: Callable[[], TResult], when: Literal["collect", "setup", "call", "teardown"], reraise: Optional[ Union[Type[BaseException], Tuple[Type[BaseException], ...]] ] = None, ) -> "CallInfo[TResult]": """Call func, wrapping the result in a CallInfo. :param func: The function to call. Called without arguments. :param when: The phase in which the function is called. :param reraise: Exception or exceptions that shall propagate if raised by the function, instead of being wrapped in the CallInfo. """ excinfo = None start = timing.time() precise_start = timing.perf_counter() try: > result: Optional[TResult] = func() /usr/lib/python3/dist-packages/_pytest/runner.py:341: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/dist-packages/_pytest/runner.py:241: in lambda: runtest_hook(item=item, **kwds), when=when, reraise=reraise /usr/lib/python3/dist-packages/pluggy/_hooks.py:513: in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) /usr/lib/python3/dist-packages/pluggy/_manager.py:120: in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) /usr/lib/python3/dist-packages/_pytest/threadexception.py:92: in pytest_runtest_teardown yield from thread_exception_runtest_hook() /usr/lib/python3/dist-packages/_pytest/threadexception.py:63: in thread_exception_runtest_hook yield /usr/lib/python3/dist-packages/_pytest/unraisableexception.py:95: in pytest_runtest_teardown yield from unraisable_exception_runtest_hook() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ def unraisable_exception_runtest_hook() -> Generator[None, None, None]: with catch_unraisable_exception() as cm: try: yield finally: if cm.unraisable: if cm.unraisable.err_msg is not None: err_msg = cm.unraisable.err_msg else: err_msg = "Exception ignored in" msg = f"{err_msg}: {cm.unraisable.object!r}\n\n" msg += "".join( traceback.format_exception( cm.unraisable.exc_type, cm.unraisable.exc_value, cm.unraisable.exc_traceback, ) ) > warnings.warn(pytest.PytestUnraisableExceptionWarning(msg)) E pytest.PytestUnraisableExceptionWarning: Exception ignored in: E E Traceback (most recent call last): E File "/build/reproducible-path/aiorwlock-1.0.0/tests/conftest.py", line 44, in event_loop E gc.collect() E ResourceWarning: unclosed /usr/lib/python3/dist-packages/_pytest/unraisableexception.py:80: PytestUnraisableExceptionWarning ____ ERROR at teardown of test_ctor_loop_deprecated_arg[debug:true-uvloop] _____ cls = func = . at 0xf66cf6b8> when = 'teardown' reraise = (, ) @classmethod def from_call( cls, func: Callable[[], TResult], when: Literal["collect", "setup", "call", "teardown"], reraise: Optional[ Union[Type[BaseException], Tuple[Type[BaseException], ...]] ] = None, ) -> "CallInfo[TResult]": """Call func, wrapping the result in a CallInfo. :param func: The function to call. Called without arguments. :param when: The phase in which the function is called. :param reraise: Exception or exceptions that shall propagate if raised by the function, instead of being wrapped in the CallInfo. """ excinfo = None start = timing.time() precise_start = timing.perf_counter() try: > result: Optional[TResult] = func() /usr/lib/python3/dist-packages/_pytest/runner.py:341: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/dist-packages/_pytest/runner.py:241: in lambda: runtest_hook(item=item, **kwds), when=when, reraise=reraise /usr/lib/python3/dist-packages/pluggy/_hooks.py:513: in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) /usr/lib/python3/dist-packages/pluggy/_manager.py:120: in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) /usr/lib/python3/dist-packages/_pytest/threadexception.py:92: in pytest_runtest_teardown yield from thread_exception_runtest_hook() /usr/lib/python3/dist-packages/_pytest/threadexception.py:63: in thread_exception_runtest_hook yield /usr/lib/python3/dist-packages/_pytest/unraisableexception.py:95: in pytest_runtest_teardown yield from unraisable_exception_runtest_hook() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ def unraisable_exception_runtest_hook() -> Generator[None, None, None]: with catch_unraisable_exception() as cm: try: yield finally: if cm.unraisable: if cm.unraisable.err_msg is not None: err_msg = cm.unraisable.err_msg else: err_msg = "Exception ignored in" msg = f"{err_msg}: {cm.unraisable.object!r}\n\n" msg += "".join( traceback.format_exception( cm.unraisable.exc_type, cm.unraisable.exc_value, cm.unraisable.exc_traceback, ) ) > warnings.warn(pytest.PytestUnraisableExceptionWarning(msg)) E pytest.PytestUnraisableExceptionWarning: Exception ignored in: E E Traceback (most recent call last): E File "/build/reproducible-path/aiorwlock-1.0.0/tests/conftest.py", line 44, in event_loop E gc.collect() E ResourceWarning: unclosed /usr/lib/python3/dist-packages/_pytest/unraisableexception.py:80: PytestUnraisableExceptionWarning ________ ERROR at teardown of test_ctor_loop_reader[debug:true-uvloop] _________ cls = func = . at 0xf66cff78> when = 'teardown' reraise = (, ) @classmethod def from_call( cls, func: Callable[[], TResult], when: Literal["collect", "setup", "call", "teardown"], reraise: Optional[ Union[Type[BaseException], Tuple[Type[BaseException], ...]] ] = None, ) -> "CallInfo[TResult]": """Call func, wrapping the result in a CallInfo. :param func: The function to call. Called without arguments. :param when: The phase in which the function is called. :param reraise: Exception or exceptions that shall propagate if raised by the function, instead of being wrapped in the CallInfo. """ excinfo = None start = timing.time() precise_start = timing.perf_counter() try: > result: Optional[TResult] = func() /usr/lib/python3/dist-packages/_pytest/runner.py:341: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/dist-packages/_pytest/runner.py:241: in lambda: runtest_hook(item=item, **kwds), when=when, reraise=reraise /usr/lib/python3/dist-packages/pluggy/_hooks.py:513: in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) /usr/lib/python3/dist-packages/pluggy/_manager.py:120: in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) /usr/lib/python3/dist-packages/_pytest/threadexception.py:92: in pytest_runtest_teardown yield from thread_exception_runtest_hook() /usr/lib/python3/dist-packages/_pytest/threadexception.py:63: in thread_exception_runtest_hook yield /usr/lib/python3/dist-packages/_pytest/unraisableexception.py:95: in pytest_runtest_teardown yield from unraisable_exception_runtest_hook() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ def unraisable_exception_runtest_hook() -> Generator[None, None, None]: with catch_unraisable_exception() as cm: try: yield finally: if cm.unraisable: if cm.unraisable.err_msg is not None: err_msg = cm.unraisable.err_msg else: err_msg = "Exception ignored in" msg = f"{err_msg}: {cm.unraisable.object!r}\n\n" msg += "".join( traceback.format_exception( cm.unraisable.exc_type, cm.unraisable.exc_value, cm.unraisable.exc_traceback, ) ) > warnings.warn(pytest.PytestUnraisableExceptionWarning(msg)) E pytest.PytestUnraisableExceptionWarning: Exception ignored in: E E Traceback (most recent call last): E File "/build/reproducible-path/aiorwlock-1.0.0/tests/conftest.py", line 44, in event_loop E gc.collect() E ResourceWarning: unclosed /usr/lib/python3/dist-packages/_pytest/unraisableexception.py:80: PytestUnraisableExceptionWarning _______ ERROR at teardown of test_ctor_noloop_reader[debug:true-uvloop] ________ cls = func = . at 0xf66cf6b8> when = 'teardown' reraise = (, ) @classmethod def from_call( cls, func: Callable[[], TResult], when: Literal["collect", "setup", "call", "teardown"], reraise: Optional[ Union[Type[BaseException], Tuple[Type[BaseException], ...]] ] = None, ) -> "CallInfo[TResult]": """Call func, wrapping the result in a CallInfo. :param func: The function to call. Called without arguments. :param when: The phase in which the function is called. :param reraise: Exception or exceptions that shall propagate if raised by the function, instead of being wrapped in the CallInfo. """ excinfo = None start = timing.time() precise_start = timing.perf_counter() try: > result: Optional[TResult] = func() /usr/lib/python3/dist-packages/_pytest/runner.py:341: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/dist-packages/_pytest/runner.py:241: in lambda: runtest_hook(item=item, **kwds), when=when, reraise=reraise /usr/lib/python3/dist-packages/pluggy/_hooks.py:513: in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) /usr/lib/python3/dist-packages/pluggy/_manager.py:120: in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) /usr/lib/python3/dist-packages/_pytest/threadexception.py:92: in pytest_runtest_teardown yield from thread_exception_runtest_hook() /usr/lib/python3/dist-packages/_pytest/threadexception.py:63: in thread_exception_runtest_hook yield /usr/lib/python3/dist-packages/_pytest/unraisableexception.py:95: in pytest_runtest_teardown yield from unraisable_exception_runtest_hook() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ def unraisable_exception_runtest_hook() -> Generator[None, None, None]: with catch_unraisable_exception() as cm: try: yield finally: if cm.unraisable: if cm.unraisable.err_msg is not None: err_msg = cm.unraisable.err_msg else: err_msg = "Exception ignored in" msg = f"{err_msg}: {cm.unraisable.object!r}\n\n" msg += "".join( traceback.format_exception( cm.unraisable.exc_type, cm.unraisable.exc_value, cm.unraisable.exc_traceback, ) ) > warnings.warn(pytest.PytestUnraisableExceptionWarning(msg)) E pytest.PytestUnraisableExceptionWarning: Exception ignored in: E E Traceback (most recent call last): E File "/build/reproducible-path/aiorwlock-1.0.0/tests/conftest.py", line 44, in event_loop E gc.collect() E ResourceWarning: unclosed /usr/lib/python3/dist-packages/_pytest/unraisableexception.py:80: PytestUnraisableExceptionWarning ________ ERROR at teardown of test_ctor_loop_writer[debug:true-uvloop] _________ cls = func = . at 0xf66cff78> when = 'teardown' reraise = (, ) @classmethod def from_call( cls, func: Callable[[], TResult], when: Literal["collect", "setup", "call", "teardown"], reraise: Optional[ Union[Type[BaseException], Tuple[Type[BaseException], ...]] ] = None, ) -> "CallInfo[TResult]": """Call func, wrapping the result in a CallInfo. :param func: The function to call. Called without arguments. :param when: The phase in which the function is called. :param reraise: Exception or exceptions that shall propagate if raised by the function, instead of being wrapped in the CallInfo. """ excinfo = None start = timing.time() precise_start = timing.perf_counter() try: > result: Optional[TResult] = func() /usr/lib/python3/dist-packages/_pytest/runner.py:341: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/dist-packages/_pytest/runner.py:241: in lambda: runtest_hook(item=item, **kwds), when=when, reraise=reraise /usr/lib/python3/dist-packages/pluggy/_hooks.py:513: in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) /usr/lib/python3/dist-packages/pluggy/_manager.py:120: in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) /usr/lib/python3/dist-packages/_pytest/threadexception.py:92: in pytest_runtest_teardown yield from thread_exception_runtest_hook() /usr/lib/python3/dist-packages/_pytest/threadexception.py:63: in thread_exception_runtest_hook yield /usr/lib/python3/dist-packages/_pytest/unraisableexception.py:95: in pytest_runtest_teardown yield from unraisable_exception_runtest_hook() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ def unraisable_exception_runtest_hook() -> Generator[None, None, None]: with catch_unraisable_exception() as cm: try: yield finally: if cm.unraisable: if cm.unraisable.err_msg is not None: err_msg = cm.unraisable.err_msg else: err_msg = "Exception ignored in" msg = f"{err_msg}: {cm.unraisable.object!r}\n\n" msg += "".join( traceback.format_exception( cm.unraisable.exc_type, cm.unraisable.exc_value, cm.unraisable.exc_traceback, ) ) > warnings.warn(pytest.PytestUnraisableExceptionWarning(msg)) E pytest.PytestUnraisableExceptionWarning: Exception ignored in: E E Traceback (most recent call last): E File "/build/reproducible-path/aiorwlock-1.0.0/tests/conftest.py", line 44, in event_loop E gc.collect() E ResourceWarning: unclosed /usr/lib/python3/dist-packages/_pytest/unraisableexception.py:80: PytestUnraisableExceptionWarning _______ ERROR at teardown of test_ctor_noloop_writer[debug:true-uvloop] ________ cls = func = . at 0xf66cf6b8> when = 'teardown' reraise = (, ) @classmethod def from_call( cls, func: Callable[[], TResult], when: Literal["collect", "setup", "call", "teardown"], reraise: Optional[ Union[Type[BaseException], Tuple[Type[BaseException], ...]] ] = None, ) -> "CallInfo[TResult]": """Call func, wrapping the result in a CallInfo. :param func: The function to call. Called without arguments. :param when: The phase in which the function is called. :param reraise: Exception or exceptions that shall propagate if raised by the function, instead of being wrapped in the CallInfo. """ excinfo = None start = timing.time() precise_start = timing.perf_counter() try: > result: Optional[TResult] = func() /usr/lib/python3/dist-packages/_pytest/runner.py:341: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/dist-packages/_pytest/runner.py:241: in lambda: runtest_hook(item=item, **kwds), when=when, reraise=reraise /usr/lib/python3/dist-packages/pluggy/_hooks.py:513: in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) /usr/lib/python3/dist-packages/pluggy/_manager.py:120: in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) /usr/lib/python3/dist-packages/_pytest/threadexception.py:92: in pytest_runtest_teardown yield from thread_exception_runtest_hook() /usr/lib/python3/dist-packages/_pytest/threadexception.py:63: in thread_exception_runtest_hook yield /usr/lib/python3/dist-packages/_pytest/unraisableexception.py:95: in pytest_runtest_teardown yield from unraisable_exception_runtest_hook() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ def unraisable_exception_runtest_hook() -> Generator[None, None, None]: with catch_unraisable_exception() as cm: try: yield finally: if cm.unraisable: if cm.unraisable.err_msg is not None: err_msg = cm.unraisable.err_msg else: err_msg = "Exception ignored in" msg = f"{err_msg}: {cm.unraisable.object!r}\n\n" msg += "".join( traceback.format_exception( cm.unraisable.exc_type, cm.unraisable.exc_value, cm.unraisable.exc_traceback, ) ) > warnings.warn(pytest.PytestUnraisableExceptionWarning(msg)) E pytest.PytestUnraisableExceptionWarning: Exception ignored in: E E Traceback (most recent call last): E File "/build/reproducible-path/aiorwlock-1.0.0/tests/conftest.py", line 44, in event_loop E gc.collect() E ResourceWarning: unclosed /usr/lib/python3/dist-packages/_pytest/unraisableexception.py:80: PytestUnraisableExceptionWarning ______________ ERROR at teardown of test_repr[debug:true-uvloop] _______________ cls = func = . at 0xf64c1488> when = 'teardown' reraise = (, ) @classmethod def from_call( cls, func: Callable[[], TResult], when: Literal["collect", "setup", "call", "teardown"], reraise: Optional[ Union[Type[BaseException], Tuple[Type[BaseException], ...]] ] = None, ) -> "CallInfo[TResult]": """Call func, wrapping the result in a CallInfo. :param func: The function to call. Called without arguments. :param when: The phase in which the function is called. :param reraise: Exception or exceptions that shall propagate if raised by the function, instead of being wrapped in the CallInfo. """ excinfo = None start = timing.time() precise_start = timing.perf_counter() try: > result: Optional[TResult] = func() /usr/lib/python3/dist-packages/_pytest/runner.py:341: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/dist-packages/_pytest/runner.py:241: in lambda: runtest_hook(item=item, **kwds), when=when, reraise=reraise /usr/lib/python3/dist-packages/pluggy/_hooks.py:513: in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) /usr/lib/python3/dist-packages/pluggy/_manager.py:120: in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) /usr/lib/python3/dist-packages/_pytest/threadexception.py:92: in pytest_runtest_teardown yield from thread_exception_runtest_hook() /usr/lib/python3/dist-packages/_pytest/threadexception.py:63: in thread_exception_runtest_hook yield /usr/lib/python3/dist-packages/_pytest/unraisableexception.py:95: in pytest_runtest_teardown yield from unraisable_exception_runtest_hook() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ def unraisable_exception_runtest_hook() -> Generator[None, None, None]: with catch_unraisable_exception() as cm: try: yield finally: if cm.unraisable: if cm.unraisable.err_msg is not None: err_msg = cm.unraisable.err_msg else: err_msg = "Exception ignored in" msg = f"{err_msg}: {cm.unraisable.object!r}\n\n" msg += "".join( traceback.format_exception( cm.unraisable.exc_type, cm.unraisable.exc_value, cm.unraisable.exc_traceback, ) ) > warnings.warn(pytest.PytestUnraisableExceptionWarning(msg)) E pytest.PytestUnraisableExceptionWarning: Exception ignored in: E E Traceback (most recent call last): E File "/build/reproducible-path/aiorwlock-1.0.0/tests/conftest.py", line 44, in event_loop E gc.collect() E ResourceWarning: unclosed /usr/lib/python3/dist-packages/_pytest/unraisableexception.py:80: PytestUnraisableExceptionWarning ________ ERROR at teardown of test_release_unlocked[debug:true-uvloop] _________ cls = func = . at 0xf66cf6b8> when = 'teardown' reraise = (, ) @classmethod def from_call( cls, func: Callable[[], TResult], when: Literal["collect", "setup", "call", "teardown"], reraise: Optional[ Union[Type[BaseException], Tuple[Type[BaseException], ...]] ] = None, ) -> "CallInfo[TResult]": """Call func, wrapping the result in a CallInfo. :param func: The function to call. Called without arguments. :param when: The phase in which the function is called. :param reraise: Exception or exceptions that shall propagate if raised by the function, instead of being wrapped in the CallInfo. """ excinfo = None start = timing.time() precise_start = timing.perf_counter() try: > result: Optional[TResult] = func() /usr/lib/python3/dist-packages/_pytest/runner.py:341: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/dist-packages/_pytest/runner.py:241: in lambda: runtest_hook(item=item, **kwds), when=when, reraise=reraise /usr/lib/python3/dist-packages/pluggy/_hooks.py:513: in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) /usr/lib/python3/dist-packages/pluggy/_manager.py:120: in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) /usr/lib/python3/dist-packages/_pytest/threadexception.py:92: in pytest_runtest_teardown yield from thread_exception_runtest_hook() /usr/lib/python3/dist-packages/_pytest/threadexception.py:63: in thread_exception_runtest_hook yield /usr/lib/python3/dist-packages/_pytest/unraisableexception.py:95: in pytest_runtest_teardown yield from unraisable_exception_runtest_hook() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ def unraisable_exception_runtest_hook() -> Generator[None, None, None]: with catch_unraisable_exception() as cm: try: yield finally: if cm.unraisable: if cm.unraisable.err_msg is not None: err_msg = cm.unraisable.err_msg else: err_msg = "Exception ignored in" msg = f"{err_msg}: {cm.unraisable.object!r}\n\n" msg += "".join( traceback.format_exception( cm.unraisable.exc_type, cm.unraisable.exc_value, cm.unraisable.exc_traceback, ) ) > warnings.warn(pytest.PytestUnraisableExceptionWarning(msg)) E pytest.PytestUnraisableExceptionWarning: Exception ignored in: E E Traceback (most recent call last): E File "/build/reproducible-path/aiorwlock-1.0.0/tests/conftest.py", line 44, in event_loop E gc.collect() E ResourceWarning: unclosed /usr/lib/python3/dist-packages/_pytest/unraisableexception.py:80: PytestUnraisableExceptionWarning ________ ERROR at teardown of test_many_readers[debug:true-slow-uvloop] ________ cls = func = . at 0xf64b48e8> when = 'teardown' reraise = (, ) @classmethod def from_call( cls, func: Callable[[], TResult], when: Literal["collect", "setup", "call", "teardown"], reraise: Optional[ Union[Type[BaseException], Tuple[Type[BaseException], ...]] ] = None, ) -> "CallInfo[TResult]": """Call func, wrapping the result in a CallInfo. :param func: The function to call. Called without arguments. :param when: The phase in which the function is called. :param reraise: Exception or exceptions that shall propagate if raised by the function, instead of being wrapped in the CallInfo. """ excinfo = None start = timing.time() precise_start = timing.perf_counter() try: > result: Optional[TResult] = func() /usr/lib/python3/dist-packages/_pytest/runner.py:341: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/dist-packages/_pytest/runner.py:241: in lambda: runtest_hook(item=item, **kwds), when=when, reraise=reraise /usr/lib/python3/dist-packages/pluggy/_hooks.py:513: in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) /usr/lib/python3/dist-packages/pluggy/_manager.py:120: in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) /usr/lib/python3/dist-packages/_pytest/threadexception.py:92: in pytest_runtest_teardown yield from thread_exception_runtest_hook() /usr/lib/python3/dist-packages/_pytest/threadexception.py:63: in thread_exception_runtest_hook yield /usr/lib/python3/dist-packages/_pytest/unraisableexception.py:95: in pytest_runtest_teardown yield from unraisable_exception_runtest_hook() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ def unraisable_exception_runtest_hook() -> Generator[None, None, None]: with catch_unraisable_exception() as cm: try: yield finally: if cm.unraisable: if cm.unraisable.err_msg is not None: err_msg = cm.unraisable.err_msg else: err_msg = "Exception ignored in" msg = f"{err_msg}: {cm.unraisable.object!r}\n\n" msg += "".join( traceback.format_exception( cm.unraisable.exc_type, cm.unraisable.exc_value, cm.unraisable.exc_traceback, ) ) > warnings.warn(pytest.PytestUnraisableExceptionWarning(msg)) E pytest.PytestUnraisableExceptionWarning: Exception ignored in: E E Traceback (most recent call last): E File "/build/reproducible-path/aiorwlock-1.0.0/tests/conftest.py", line 44, in event_loop E gc.collect() E ResourceWarning: unclosed /usr/lib/python3/dist-packages/_pytest/unraisableexception.py:80: PytestUnraisableExceptionWarning ______ ERROR at teardown of test_reader_recursion[debug:true-slow-uvloop] ______ cls = func = . at 0xf64b47f8> when = 'teardown' reraise = (, ) @classmethod def from_call( cls, func: Callable[[], TResult], when: Literal["collect", "setup", "call", "teardown"], reraise: Optional[ Union[Type[BaseException], Tuple[Type[BaseException], ...]] ] = None, ) -> "CallInfo[TResult]": """Call func, wrapping the result in a CallInfo. :param func: The function to call. Called without arguments. :param when: The phase in which the function is called. :param reraise: Exception or exceptions that shall propagate if raised by the function, instead of being wrapped in the CallInfo. """ excinfo = None start = timing.time() precise_start = timing.perf_counter() try: > result: Optional[TResult] = func() /usr/lib/python3/dist-packages/_pytest/runner.py:341: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/dist-packages/_pytest/runner.py:241: in lambda: runtest_hook(item=item, **kwds), when=when, reraise=reraise /usr/lib/python3/dist-packages/pluggy/_hooks.py:513: in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) /usr/lib/python3/dist-packages/pluggy/_manager.py:120: in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) /usr/lib/python3/dist-packages/_pytest/threadexception.py:92: in pytest_runtest_teardown yield from thread_exception_runtest_hook() /usr/lib/python3/dist-packages/_pytest/threadexception.py:63: in thread_exception_runtest_hook yield /usr/lib/python3/dist-packages/_pytest/unraisableexception.py:95: in pytest_runtest_teardown yield from unraisable_exception_runtest_hook() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ def unraisable_exception_runtest_hook() -> Generator[None, None, None]: with catch_unraisable_exception() as cm: try: yield finally: if cm.unraisable: if cm.unraisable.err_msg is not None: err_msg = cm.unraisable.err_msg else: err_msg = "Exception ignored in" msg = f"{err_msg}: {cm.unraisable.object!r}\n\n" msg += "".join( traceback.format_exception( cm.unraisable.exc_type, cm.unraisable.exc_value, cm.unraisable.exc_traceback, ) ) > warnings.warn(pytest.PytestUnraisableExceptionWarning(msg)) E pytest.PytestUnraisableExceptionWarning: Exception ignored in: E E Traceback (most recent call last): E File "/build/reproducible-path/aiorwlock-1.0.0/tests/conftest.py", line 44, in event_loop E gc.collect() E ResourceWarning: unclosed /usr/lib/python3/dist-packages/_pytest/unraisableexception.py:80: PytestUnraisableExceptionWarning ______ ERROR at teardown of test_writer_recursion[debug:true-slow-uvloop] ______ cls = func = . at 0xf6536938> when = 'teardown' reraise = (, ) @classmethod def from_call( cls, func: Callable[[], TResult], when: Literal["collect", "setup", "call", "teardown"], reraise: Optional[ Union[Type[BaseException], Tuple[Type[BaseException], ...]] ] = None, ) -> "CallInfo[TResult]": """Call func, wrapping the result in a CallInfo. :param func: The function to call. Called without arguments. :param when: The phase in which the function is called. :param reraise: Exception or exceptions that shall propagate if raised by the function, instead of being wrapped in the CallInfo. """ excinfo = None start = timing.time() precise_start = timing.perf_counter() try: > result: Optional[TResult] = func() /usr/lib/python3/dist-packages/_pytest/runner.py:341: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/dist-packages/_pytest/runner.py:241: in lambda: runtest_hook(item=item, **kwds), when=when, reraise=reraise /usr/lib/python3/dist-packages/pluggy/_hooks.py:513: in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) /usr/lib/python3/dist-packages/pluggy/_manager.py:120: in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) /usr/lib/python3/dist-packages/_pytest/threadexception.py:92: in pytest_runtest_teardown yield from thread_exception_runtest_hook() /usr/lib/python3/dist-packages/_pytest/threadexception.py:63: in thread_exception_runtest_hook yield /usr/lib/python3/dist-packages/_pytest/unraisableexception.py:95: in pytest_runtest_teardown yield from unraisable_exception_runtest_hook() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ def unraisable_exception_runtest_hook() -> Generator[None, None, None]: with catch_unraisable_exception() as cm: try: yield finally: if cm.unraisable: if cm.unraisable.err_msg is not None: err_msg = cm.unraisable.err_msg else: err_msg = "Exception ignored in" msg = f"{err_msg}: {cm.unraisable.object!r}\n\n" msg += "".join( traceback.format_exception( cm.unraisable.exc_type, cm.unraisable.exc_value, cm.unraisable.exc_traceback, ) ) > warnings.warn(pytest.PytestUnraisableExceptionWarning(msg)) E pytest.PytestUnraisableExceptionWarning: Exception ignored in: E E Traceback (most recent call last): E File "/build/reproducible-path/aiorwlock-1.0.0/tests/conftest.py", line 44, in event_loop E gc.collect() E ResourceWarning: unclosed /usr/lib/python3/dist-packages/_pytest/unraisableexception.py:80: PytestUnraisableExceptionWarning _ ERROR at teardown of test_writer_then_reader_recursion[debug:true-slow-uvloop] _ cls = func = . at 0xf65367a8> when = 'teardown' reraise = (, ) @classmethod def from_call( cls, func: Callable[[], TResult], when: Literal["collect", "setup", "call", "teardown"], reraise: Optional[ Union[Type[BaseException], Tuple[Type[BaseException], ...]] ] = None, ) -> "CallInfo[TResult]": """Call func, wrapping the result in a CallInfo. :param func: The function to call. Called without arguments. :param when: The phase in which the function is called. :param reraise: Exception or exceptions that shall propagate if raised by the function, instead of being wrapped in the CallInfo. """ excinfo = None start = timing.time() precise_start = timing.perf_counter() try: > result: Optional[TResult] = func() /usr/lib/python3/dist-packages/_pytest/runner.py:341: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/dist-packages/_pytest/runner.py:241: in lambda: runtest_hook(item=item, **kwds), when=when, reraise=reraise /usr/lib/python3/dist-packages/pluggy/_hooks.py:513: in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) /usr/lib/python3/dist-packages/pluggy/_manager.py:120: in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) /usr/lib/python3/dist-packages/_pytest/threadexception.py:92: in pytest_runtest_teardown yield from thread_exception_runtest_hook() /usr/lib/python3/dist-packages/_pytest/threadexception.py:63: in thread_exception_runtest_hook yield /usr/lib/python3/dist-packages/_pytest/unraisableexception.py:95: in pytest_runtest_teardown yield from unraisable_exception_runtest_hook() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ def unraisable_exception_runtest_hook() -> Generator[None, None, None]: with catch_unraisable_exception() as cm: try: yield finally: if cm.unraisable: if cm.unraisable.err_msg is not None: err_msg = cm.unraisable.err_msg else: err_msg = "Exception ignored in" msg = f"{err_msg}: {cm.unraisable.object!r}\n\n" msg += "".join( traceback.format_exception( cm.unraisable.exc_type, cm.unraisable.exc_value, cm.unraisable.exc_traceback, ) ) > warnings.warn(pytest.PytestUnraisableExceptionWarning(msg)) E pytest.PytestUnraisableExceptionWarning: Exception ignored in: E E Traceback (most recent call last): E File "/build/reproducible-path/aiorwlock-1.0.0/tests/conftest.py", line 44, in event_loop E gc.collect() E ResourceWarning: unclosed /usr/lib/python3/dist-packages/_pytest/unraisableexception.py:80: PytestUnraisableExceptionWarning ---------------------------- Captured log teardown ----------------------------- ERROR asyncio:conftest.py:44 Task was destroyed but it is pending! source_traceback: Object created at (most recent call last): File "", line 198, in _run_module_as_main File "", line 88, in _run_code File "/usr/lib/python3/dist-packages/pytest/__main__.py", line 7, in raise SystemExit(pytest.console_main()) File "/usr/lib/python3/dist-packages/_pytest/config/__init__.py", line 206, in console_main code = main() File "/usr/lib/python3/dist-packages/_pytest/config/__init__.py", line 178, in main ret: Union[ExitCode, int] = config.hook.pytest_cmdline_main( File "/usr/lib/python3/dist-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3/dist-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3/dist-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3/dist-packages/_pytest/main.py", line 332, in pytest_cmdline_main return wrap_session(config, _main) File "/usr/lib/python3/dist-packages/_pytest/main.py", line 285, in wrap_session session.exitstatus = doit(config, session) or 0 File "/usr/lib/python3/dist-packages/_pytest/main.py", line 339, in _main config.hook.pytest_runtestloop(session=session) File "/usr/lib/python3/dist-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3/dist-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3/dist-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3/dist-packages/_pytest/main.py", line 364, in pytest_runtestloop item.config.hook.pytest_runtest_protocol(item=item, nextitem=nextitem) File "/usr/lib/python3/dist-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3/dist-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3/dist-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3/dist-packages/_pytest/runner.py", line 116, in pytest_runtest_protocol runtestprotocol(item, nextitem=nextitem) File "/usr/lib/python3/dist-packages/_pytest/runner.py", line 135, in runtestprotocol reports.append(call_and_report(item, "call", log)) File "/usr/lib/python3/dist-packages/_pytest/runner.py", line 240, in call_and_report call = CallInfo.from_call( File "/usr/lib/python3/dist-packages/_pytest/runner.py", line 341, in from_call result: Optional[TResult] = func() File "/usr/lib/python3/dist-packages/_pytest/runner.py", line 241, in lambda: runtest_hook(item=item, **kwds), when=when, reraise=reraise File "/usr/lib/python3/dist-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3/dist-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3/dist-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3/dist-packages/_pytest/runner.py", line 173, in pytest_runtest_call item.runtest() File "/usr/lib/python3/dist-packages/_pytest/python.py", line 1632, in runtest self.ihook.pytest_pyfunc_call(pyfuncitem=self) File "/usr/lib/python3/dist-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3/dist-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3/dist-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3/dist-packages/_pytest/python.py", line 162, in pytest_pyfunc_call result = testfunction(**testargs) File "/usr/lib/python3/dist-packages/pytest_asyncio/plugin.py", line 478, in inner _loop.run_until_complete(task) File "/build/reproducible-path/aiorwlock-1.0.0/tests/test_rwlock.py", line 215, in test_writer_recursion await Bunch(f, N).wait_for_finished() File "/build/reproducible-path/aiorwlock-1.0.0/tests/test_rwlock.py", line 37, in __init__ t = asyncio.Task(task()) task: .task() running at /build/reproducible-path/aiorwlock-1.0.0/tests/test_rwlock.py:30> wait_for= cb=[gather.._done_callback() at /usr/lib/python3.12/asyncio/tasks.py:767] created at /build/reproducible-path/aiorwlock-1.0.0/tests/test_rwlock.py:37> ERROR asyncio:conftest.py:44 Task was destroyed but it is pending! source_traceback: Object created at (most recent call last): File "", line 198, in _run_module_as_main File "", line 88, in _run_code File "/usr/lib/python3/dist-packages/pytest/__main__.py", line 7, in raise SystemExit(pytest.console_main()) File "/usr/lib/python3/dist-packages/_pytest/config/__init__.py", line 206, in console_main code = main() File "/usr/lib/python3/dist-packages/_pytest/config/__init__.py", line 178, in main ret: Union[ExitCode, int] = config.hook.pytest_cmdline_main( File "/usr/lib/python3/dist-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3/dist-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3/dist-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3/dist-packages/_pytest/main.py", line 332, in pytest_cmdline_main return wrap_session(config, _main) File "/usr/lib/python3/dist-packages/_pytest/main.py", line 285, in wrap_session session.exitstatus = doit(config, session) or 0 File "/usr/lib/python3/dist-packages/_pytest/main.py", line 339, in _main config.hook.pytest_runtestloop(session=session) File "/usr/lib/python3/dist-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3/dist-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3/dist-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3/dist-packages/_pytest/main.py", line 364, in pytest_runtestloop item.config.hook.pytest_runtest_protocol(item=item, nextitem=nextitem) File "/usr/lib/python3/dist-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3/dist-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3/dist-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3/dist-packages/_pytest/runner.py", line 116, in pytest_runtest_protocol runtestprotocol(item, nextitem=nextitem) File "/usr/lib/python3/dist-packages/_pytest/runner.py", line 135, in runtestprotocol reports.append(call_and_report(item, "call", log)) File "/usr/lib/python3/dist-packages/_pytest/runner.py", line 240, in call_and_report call = CallInfo.from_call( File "/usr/lib/python3/dist-packages/_pytest/runner.py", line 341, in from_call result: Optional[TResult] = func() File "/usr/lib/python3/dist-packages/_pytest/runner.py", line 241, in lambda: runtest_hook(item=item, **kwds), when=when, reraise=reraise File "/usr/lib/python3/dist-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3/dist-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3/dist-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3/dist-packages/_pytest/runner.py", line 173, in pytest_runtest_call item.runtest() File "/usr/lib/python3/dist-packages/_pytest/python.py", line 1632, in runtest self.ihook.pytest_pyfunc_call(pyfuncitem=self) File "/usr/lib/python3/dist-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3/dist-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3/dist-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3/dist-packages/_pytest/python.py", line 162, in pytest_pyfunc_call result = testfunction(**testargs) File "/usr/lib/python3/dist-packages/pytest_asyncio/plugin.py", line 478, in inner _loop.run_until_complete(task) File "/build/reproducible-path/aiorwlock-1.0.0/tests/test_rwlock.py", line 215, in test_writer_recursion await Bunch(f, N).wait_for_finished() File "/build/reproducible-path/aiorwlock-1.0.0/tests/test_rwlock.py", line 37, in __init__ t = asyncio.Task(task()) task: .task() running at /build/reproducible-path/aiorwlock-1.0.0/tests/test_rwlock.py:30> wait_for= cb=[gather.._done_callback() at /usr/lib/python3.12/asyncio/tasks.py:767] created at /build/reproducible-path/aiorwlock-1.0.0/tests/test_rwlock.py:37> ERROR asyncio:conftest.py:44 Task was destroyed but it is pending! source_traceback: Object created at (most recent call last): File "", line 198, in _run_module_as_main File "", line 88, in _run_code File "/usr/lib/python3/dist-packages/pytest/__main__.py", line 7, in raise SystemExit(pytest.console_main()) File "/usr/lib/python3/dist-packages/_pytest/config/__init__.py", line 206, in console_main code = main() File "/usr/lib/python3/dist-packages/_pytest/config/__init__.py", line 178, in main ret: Union[ExitCode, int] = config.hook.pytest_cmdline_main( File "/usr/lib/python3/dist-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3/dist-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3/dist-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3/dist-packages/_pytest/main.py", line 332, in pytest_cmdline_main return wrap_session(config, _main) File "/usr/lib/python3/dist-packages/_pytest/main.py", line 285, in wrap_session session.exitstatus = doit(config, session) or 0 File "/usr/lib/python3/dist-packages/_pytest/main.py", line 339, in _main config.hook.pytest_runtestloop(session=session) File "/usr/lib/python3/dist-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3/dist-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3/dist-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3/dist-packages/_pytest/main.py", line 364, in pytest_runtestloop item.config.hook.pytest_runtest_protocol(item=item, nextitem=nextitem) File "/usr/lib/python3/dist-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3/dist-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3/dist-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3/dist-packages/_pytest/runner.py", line 116, in pytest_runtest_protocol runtestprotocol(item, nextitem=nextitem) File "/usr/lib/python3/dist-packages/_pytest/runner.py", line 135, in runtestprotocol reports.append(call_and_report(item, "call", log)) File "/usr/lib/python3/dist-packages/_pytest/runner.py", line 240, in call_and_report call = CallInfo.from_call( File "/usr/lib/python3/dist-packages/_pytest/runner.py", line 341, in from_call result: Optional[TResult] = func() File "/usr/lib/python3/dist-packages/_pytest/runner.py", line 241, in lambda: runtest_hook(item=item, **kwds), when=when, reraise=reraise File "/usr/lib/python3/dist-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3/dist-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3/dist-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3/dist-packages/_pytest/runner.py", line 173, in pytest_runtest_call item.runtest() File "/usr/lib/python3/dist-packages/_pytest/python.py", line 1632, in runtest self.ihook.pytest_pyfunc_call(pyfuncitem=self) File "/usr/lib/python3/dist-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3/dist-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3/dist-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3/dist-packages/_pytest/python.py", line 162, in pytest_pyfunc_call result = testfunction(**testargs) File "/usr/lib/python3/dist-packages/pytest_asyncio/plugin.py", line 478, in inner _loop.run_until_complete(task) File "/build/reproducible-path/aiorwlock-1.0.0/tests/test_rwlock.py", line 215, in test_writer_recursion await Bunch(f, N).wait_for_finished() File "/build/reproducible-path/aiorwlock-1.0.0/tests/test_rwlock.py", line 37, in __init__ t = asyncio.Task(task()) task: .task() running at /build/reproducible-path/aiorwlock-1.0.0/tests/test_rwlock.py:30> wait_for= cb=[gather.._done_callback() at /usr/lib/python3.12/asyncio/tasks.py:767] created at /build/reproducible-path/aiorwlock-1.0.0/tests/test_rwlock.py:37> ERROR asyncio:conftest.py:44 Task was destroyed but it is pending! source_traceback: Object created at (most recent call last): File "", line 198, in _run_module_as_main File "", line 88, in _run_code File "/usr/lib/python3/dist-packages/pytest/__main__.py", line 7, in raise SystemExit(pytest.console_main()) File "/usr/lib/python3/dist-packages/_pytest/config/__init__.py", line 206, in console_main code = main() File "/usr/lib/python3/dist-packages/_pytest/config/__init__.py", line 178, in main ret: Union[ExitCode, int] = config.hook.pytest_cmdline_main( File "/usr/lib/python3/dist-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3/dist-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3/dist-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3/dist-packages/_pytest/main.py", line 332, in pytest_cmdline_main return wrap_session(config, _main) File "/usr/lib/python3/dist-packages/_pytest/main.py", line 285, in wrap_session session.exitstatus = doit(config, session) or 0 File "/usr/lib/python3/dist-packages/_pytest/main.py", line 339, in _main config.hook.pytest_runtestloop(session=session) File "/usr/lib/python3/dist-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3/dist-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3/dist-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3/dist-packages/_pytest/main.py", line 364, in pytest_runtestloop item.config.hook.pytest_runtest_protocol(item=item, nextitem=nextitem) File "/usr/lib/python3/dist-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3/dist-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3/dist-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3/dist-packages/_pytest/runner.py", line 116, in pytest_runtest_protocol runtestprotocol(item, nextitem=nextitem) File "/usr/lib/python3/dist-packages/_pytest/runner.py", line 135, in runtestprotocol reports.append(call_and_report(item, "call", log)) File "/usr/lib/python3/dist-packages/_pytest/runner.py", line 240, in call_and_report call = CallInfo.from_call( File "/usr/lib/python3/dist-packages/_pytest/runner.py", line 341, in from_call result: Optional[TResult] = func() File "/usr/lib/python3/dist-packages/_pytest/runner.py", line 241, in lambda: runtest_hook(item=item, **kwds), when=when, reraise=reraise File "/usr/lib/python3/dist-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3/dist-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3/dist-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3/dist-packages/_pytest/runner.py", line 173, in pytest_runtest_call item.runtest() File "/usr/lib/python3/dist-packages/_pytest/python.py", line 1632, in runtest self.ihook.pytest_pyfunc_call(pyfuncitem=self) File "/usr/lib/python3/dist-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3/dist-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3/dist-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3/dist-packages/_pytest/python.py", line 162, in pytest_pyfunc_call result = testfunction(**testargs) File "/usr/lib/python3/dist-packages/pytest_asyncio/plugin.py", line 478, in inner _loop.run_until_complete(task) File "/build/reproducible-path/aiorwlock-1.0.0/tests/test_rwlock.py", line 215, in test_writer_recursion await Bunch(f, N).wait_for_finished() File "/build/reproducible-path/aiorwlock-1.0.0/tests/test_rwlock.py", line 37, in __init__ t = asyncio.Task(task()) task: .task() running at /build/reproducible-path/aiorwlock-1.0.0/tests/test_rwlock.py:30> wait_for= cb=[gather.._done_callback() at /usr/lib/python3.12/asyncio/tasks.py:767] created at /build/reproducible-path/aiorwlock-1.0.0/tests/test_rwlock.py:37> ______ ERROR at teardown of test_readers_writers[debug:true-slow-uvloop] _______ cls = func = . at 0xf66cff78> when = 'teardown' reraise = (, ) @classmethod def from_call( cls, func: Callable[[], TResult], when: Literal["collect", "setup", "call", "teardown"], reraise: Optional[ Union[Type[BaseException], Tuple[Type[BaseException], ...]] ] = None, ) -> "CallInfo[TResult]": """Call func, wrapping the result in a CallInfo. :param func: The function to call. Called without arguments. :param when: The phase in which the function is called. :param reraise: Exception or exceptions that shall propagate if raised by the function, instead of being wrapped in the CallInfo. """ excinfo = None start = timing.time() precise_start = timing.perf_counter() try: > result: Optional[TResult] = func() /usr/lib/python3/dist-packages/_pytest/runner.py:341: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/dist-packages/_pytest/runner.py:241: in lambda: runtest_hook(item=item, **kwds), when=when, reraise=reraise /usr/lib/python3/dist-packages/pluggy/_hooks.py:513: in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) /usr/lib/python3/dist-packages/pluggy/_manager.py:120: in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) /usr/lib/python3/dist-packages/_pytest/threadexception.py:92: in pytest_runtest_teardown yield from thread_exception_runtest_hook() /usr/lib/python3/dist-packages/_pytest/threadexception.py:63: in thread_exception_runtest_hook yield /usr/lib/python3/dist-packages/_pytest/unraisableexception.py:95: in pytest_runtest_teardown yield from unraisable_exception_runtest_hook() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ def unraisable_exception_runtest_hook() -> Generator[None, None, None]: with catch_unraisable_exception() as cm: try: yield finally: if cm.unraisable: if cm.unraisable.err_msg is not None: err_msg = cm.unraisable.err_msg else: err_msg = "Exception ignored in" msg = f"{err_msg}: {cm.unraisable.object!r}\n\n" msg += "".join( traceback.format_exception( cm.unraisable.exc_type, cm.unraisable.exc_value, cm.unraisable.exc_traceback, ) ) > warnings.warn(pytest.PytestUnraisableExceptionWarning(msg)) E pytest.PytestUnraisableExceptionWarning: Exception ignored in: E E Traceback (most recent call last): E File "/build/reproducible-path/aiorwlock-1.0.0/tests/conftest.py", line 44, in event_loop E gc.collect() E ResourceWarning: unclosed /usr/lib/python3/dist-packages/_pytest/unraisableexception.py:80: PytestUnraisableExceptionWarning ---------------------------- Captured log teardown ----------------------------- ERROR asyncio:conftest.py:44 Task was destroyed but it is pending! source_traceback: Object created at (most recent call last): File "", line 198, in _run_module_as_main File "", line 88, in _run_code File "/usr/lib/python3/dist-packages/pytest/__main__.py", line 7, in raise SystemExit(pytest.console_main()) File "/usr/lib/python3/dist-packages/_pytest/config/__init__.py", line 206, in console_main code = main() File "/usr/lib/python3/dist-packages/_pytest/config/__init__.py", line 178, in main ret: Union[ExitCode, int] = config.hook.pytest_cmdline_main( File "/usr/lib/python3/dist-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3/dist-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3/dist-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3/dist-packages/_pytest/main.py", line 332, in pytest_cmdline_main return wrap_session(config, _main) File "/usr/lib/python3/dist-packages/_pytest/main.py", line 285, in wrap_session session.exitstatus = doit(config, session) or 0 File "/usr/lib/python3/dist-packages/_pytest/main.py", line 339, in _main config.hook.pytest_runtestloop(session=session) File "/usr/lib/python3/dist-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3/dist-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3/dist-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3/dist-packages/_pytest/main.py", line 364, in pytest_runtestloop item.config.hook.pytest_runtest_protocol(item=item, nextitem=nextitem) File "/usr/lib/python3/dist-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3/dist-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3/dist-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3/dist-packages/_pytest/runner.py", line 116, in pytest_runtest_protocol runtestprotocol(item, nextitem=nextitem) File "/usr/lib/python3/dist-packages/_pytest/runner.py", line 135, in runtestprotocol reports.append(call_and_report(item, "call", log)) File "/usr/lib/python3/dist-packages/_pytest/runner.py", line 240, in call_and_report call = CallInfo.from_call( File "/usr/lib/python3/dist-packages/_pytest/runner.py", line 341, in from_call result: Optional[TResult] = func() File "/usr/lib/python3/dist-packages/_pytest/runner.py", line 241, in lambda: runtest_hook(item=item, **kwds), when=when, reraise=reraise File "/usr/lib/python3/dist-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3/dist-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3/dist-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3/dist-packages/_pytest/runner.py", line 173, in pytest_runtest_call item.runtest() File "/usr/lib/python3/dist-packages/_pytest/python.py", line 1632, in runtest self.ihook.pytest_pyfunc_call(pyfuncitem=self) File "/usr/lib/python3/dist-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3/dist-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3/dist-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3/dist-packages/_pytest/python.py", line 162, in pytest_pyfunc_call result = testfunction(**testargs) File "/usr/lib/python3/dist-packages/pytest_asyncio/plugin.py", line 478, in inner _loop.run_until_complete(task) File "/build/reproducible-path/aiorwlock-1.0.0/tests/test_rwlock.py", line 241, in test_writer_then_reader_recursion await Bunch(f, N).wait_for_finished() File "/build/reproducible-path/aiorwlock-1.0.0/tests/test_rwlock.py", line 37, in __init__ t = asyncio.Task(task()) task: .task() running at /build/reproducible-path/aiorwlock-1.0.0/tests/test_rwlock.py:30> wait_for= cb=[gather.._done_callback() at /usr/lib/python3.12/asyncio/tasks.py:767] created at /build/reproducible-path/aiorwlock-1.0.0/tests/test_rwlock.py:37> ERROR asyncio:conftest.py:44 Task was destroyed but it is pending! source_traceback: Object created at (most recent call last): File "", line 198, in _run_module_as_main File "", line 88, in _run_code File "/usr/lib/python3/dist-packages/pytest/__main__.py", line 7, in raise SystemExit(pytest.console_main()) File "/usr/lib/python3/dist-packages/_pytest/config/__init__.py", line 206, in console_main code = main() File "/usr/lib/python3/dist-packages/_pytest/config/__init__.py", line 178, in main ret: Union[ExitCode, int] = config.hook.pytest_cmdline_main( File "/usr/lib/python3/dist-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3/dist-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3/dist-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3/dist-packages/_pytest/main.py", line 332, in pytest_cmdline_main return wrap_session(config, _main) File "/usr/lib/python3/dist-packages/_pytest/main.py", line 285, in wrap_session session.exitstatus = doit(config, session) or 0 File "/usr/lib/python3/dist-packages/_pytest/main.py", line 339, in _main config.hook.pytest_runtestloop(session=session) File "/usr/lib/python3/dist-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3/dist-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3/dist-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3/dist-packages/_pytest/main.py", line 364, in pytest_runtestloop item.config.hook.pytest_runtest_protocol(item=item, nextitem=nextitem) File "/usr/lib/python3/dist-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3/dist-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3/dist-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3/dist-packages/_pytest/runner.py", line 116, in pytest_runtest_protocol runtestprotocol(item, nextitem=nextitem) File "/usr/lib/python3/dist-packages/_pytest/runner.py", line 135, in runtestprotocol reports.append(call_and_report(item, "call", log)) File "/usr/lib/python3/dist-packages/_pytest/runner.py", line 240, in call_and_report call = CallInfo.from_call( File "/usr/lib/python3/dist-packages/_pytest/runner.py", line 341, in from_call result: Optional[TResult] = func() File "/usr/lib/python3/dist-packages/_pytest/runner.py", line 241, in lambda: runtest_hook(item=item, **kwds), when=when, reraise=reraise File "/usr/lib/python3/dist-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3/dist-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3/dist-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3/dist-packages/_pytest/runner.py", line 173, in pytest_runtest_call item.runtest() File "/usr/lib/python3/dist-packages/_pytest/python.py", line 1632, in runtest self.ihook.pytest_pyfunc_call(pyfuncitem=self) File "/usr/lib/python3/dist-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3/dist-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3/dist-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3/dist-packages/_pytest/python.py", line 162, in pytest_pyfunc_call result = testfunction(**testargs) File "/usr/lib/python3/dist-packages/pytest_asyncio/plugin.py", line 478, in inner _loop.run_until_complete(task) File "/build/reproducible-path/aiorwlock-1.0.0/tests/test_rwlock.py", line 241, in test_writer_then_reader_recursion await Bunch(f, N).wait_for_finished() File "/build/reproducible-path/aiorwlock-1.0.0/tests/test_rwlock.py", line 37, in __init__ t = asyncio.Task(task()) task: .task() running at /build/reproducible-path/aiorwlock-1.0.0/tests/test_rwlock.py:30> wait_for= cb=[gather.._done_callback() at /usr/lib/python3.12/asyncio/tasks.py:767] created at /build/reproducible-path/aiorwlock-1.0.0/tests/test_rwlock.py:37> ERROR asyncio:conftest.py:44 Task was destroyed but it is pending! source_traceback: Object created at (most recent call last): File "", line 198, in _run_module_as_main File "", line 88, in _run_code File "/usr/lib/python3/dist-packages/pytest/__main__.py", line 7, in raise SystemExit(pytest.console_main()) File "/usr/lib/python3/dist-packages/_pytest/config/__init__.py", line 206, in console_main code = main() File "/usr/lib/python3/dist-packages/_pytest/config/__init__.py", line 178, in main ret: Union[ExitCode, int] = config.hook.pytest_cmdline_main( File "/usr/lib/python3/dist-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3/dist-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3/dist-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3/dist-packages/_pytest/main.py", line 332, in pytest_cmdline_main return wrap_session(config, _main) File "/usr/lib/python3/dist-packages/_pytest/main.py", line 285, in wrap_session session.exitstatus = doit(config, session) or 0 File "/usr/lib/python3/dist-packages/_pytest/main.py", line 339, in _main config.hook.pytest_runtestloop(session=session) File "/usr/lib/python3/dist-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3/dist-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3/dist-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3/dist-packages/_pytest/main.py", line 364, in pytest_runtestloop item.config.hook.pytest_runtest_protocol(item=item, nextitem=nextitem) File "/usr/lib/python3/dist-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3/dist-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3/dist-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3/dist-packages/_pytest/runner.py", line 116, in pytest_runtest_protocol runtestprotocol(item, nextitem=nextitem) File "/usr/lib/python3/dist-packages/_pytest/runner.py", line 135, in runtestprotocol reports.append(call_and_report(item, "call", log)) File "/usr/lib/python3/dist-packages/_pytest/runner.py", line 240, in call_and_report call = CallInfo.from_call( File "/usr/lib/python3/dist-packages/_pytest/runner.py", line 341, in from_call result: Optional[TResult] = func() File "/usr/lib/python3/dist-packages/_pytest/runner.py", line 241, in lambda: runtest_hook(item=item, **kwds), when=when, reraise=reraise File "/usr/lib/python3/dist-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3/dist-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3/dist-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3/dist-packages/_pytest/runner.py", line 173, in pytest_runtest_call item.runtest() File "/usr/lib/python3/dist-packages/_pytest/python.py", line 1632, in runtest self.ihook.pytest_pyfunc_call(pyfuncitem=self) File "/usr/lib/python3/dist-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3/dist-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3/dist-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3/dist-packages/_pytest/python.py", line 162, in pytest_pyfunc_call result = testfunction(**testargs) File "/usr/lib/python3/dist-packages/pytest_asyncio/plugin.py", line 478, in inner _loop.run_until_complete(task) File "/build/reproducible-path/aiorwlock-1.0.0/tests/test_rwlock.py", line 241, in test_writer_then_reader_recursion await Bunch(f, N).wait_for_finished() File "/build/reproducible-path/aiorwlock-1.0.0/tests/test_rwlock.py", line 37, in __init__ t = asyncio.Task(task()) task: .task() running at /build/reproducible-path/aiorwlock-1.0.0/tests/test_rwlock.py:30> wait_for= cb=[gather.._done_callback() at /usr/lib/python3.12/asyncio/tasks.py:767] created at /build/reproducible-path/aiorwlock-1.0.0/tests/test_rwlock.py:37> ERROR asyncio:conftest.py:44 Task was destroyed but it is pending! source_traceback: Object created at (most recent call last): File "", line 198, in _run_module_as_main File "", line 88, in _run_code File "/usr/lib/python3/dist-packages/pytest/__main__.py", line 7, in raise SystemExit(pytest.console_main()) File "/usr/lib/python3/dist-packages/_pytest/config/__init__.py", line 206, in console_main code = main() File "/usr/lib/python3/dist-packages/_pytest/config/__init__.py", line 178, in main ret: Union[ExitCode, int] = config.hook.pytest_cmdline_main( File "/usr/lib/python3/dist-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3/dist-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3/dist-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3/dist-packages/_pytest/main.py", line 332, in pytest_cmdline_main return wrap_session(config, _main) File "/usr/lib/python3/dist-packages/_pytest/main.py", line 285, in wrap_session session.exitstatus = doit(config, session) or 0 File "/usr/lib/python3/dist-packages/_pytest/main.py", line 339, in _main config.hook.pytest_runtestloop(session=session) File "/usr/lib/python3/dist-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3/dist-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3/dist-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3/dist-packages/_pytest/main.py", line 364, in pytest_runtestloop item.config.hook.pytest_runtest_protocol(item=item, nextitem=nextitem) File "/usr/lib/python3/dist-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3/dist-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3/dist-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3/dist-packages/_pytest/runner.py", line 116, in pytest_runtest_protocol runtestprotocol(item, nextitem=nextitem) File "/usr/lib/python3/dist-packages/_pytest/runner.py", line 135, in runtestprotocol reports.append(call_and_report(item, "call", log)) File "/usr/lib/python3/dist-packages/_pytest/runner.py", line 240, in call_and_report call = CallInfo.from_call( File "/usr/lib/python3/dist-packages/_pytest/runner.py", line 341, in from_call result: Optional[TResult] = func() File "/usr/lib/python3/dist-packages/_pytest/runner.py", line 241, in lambda: runtest_hook(item=item, **kwds), when=when, reraise=reraise File "/usr/lib/python3/dist-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3/dist-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3/dist-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3/dist-packages/_pytest/runner.py", line 173, in pytest_runtest_call item.runtest() File "/usr/lib/python3/dist-packages/_pytest/python.py", line 1632, in runtest self.ihook.pytest_pyfunc_call(pyfuncitem=self) File "/usr/lib/python3/dist-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3/dist-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3/dist-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3/dist-packages/_pytest/python.py", line 162, in pytest_pyfunc_call result = testfunction(**testargs) File "/usr/lib/python3/dist-packages/pytest_asyncio/plugin.py", line 478, in inner _loop.run_until_complete(task) File "/build/reproducible-path/aiorwlock-1.0.0/tests/test_rwlock.py", line 241, in test_writer_then_reader_recursion await Bunch(f, N).wait_for_finished() File "/build/reproducible-path/aiorwlock-1.0.0/tests/test_rwlock.py", line 37, in __init__ t = asyncio.Task(task()) task: .task() running at /build/reproducible-path/aiorwlock-1.0.0/tests/test_rwlock.py:30> wait_for= cb=[gather.._done_callback() at /usr/lib/python3.12/asyncio/tasks.py:767] created at /build/reproducible-path/aiorwlock-1.0.0/tests/test_rwlock.py:37> _ ERROR at teardown of test_raise_error_on_with_for_reader_lock[debug:true-slow-uvloop] _ cls = func = . at 0xf66cf6b8> when = 'teardown' reraise = (, ) @classmethod def from_call( cls, func: Callable[[], TResult], when: Literal["collect", "setup", "call", "teardown"], reraise: Optional[ Union[Type[BaseException], Tuple[Type[BaseException], ...]] ] = None, ) -> "CallInfo[TResult]": """Call func, wrapping the result in a CallInfo. :param func: The function to call. Called without arguments. :param when: The phase in which the function is called. :param reraise: Exception or exceptions that shall propagate if raised by the function, instead of being wrapped in the CallInfo. """ excinfo = None start = timing.time() precise_start = timing.perf_counter() try: > result: Optional[TResult] = func() /usr/lib/python3/dist-packages/_pytest/runner.py:341: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/dist-packages/_pytest/runner.py:241: in lambda: runtest_hook(item=item, **kwds), when=when, reraise=reraise /usr/lib/python3/dist-packages/pluggy/_hooks.py:513: in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) /usr/lib/python3/dist-packages/pluggy/_manager.py:120: in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) /usr/lib/python3/dist-packages/_pytest/threadexception.py:92: in pytest_runtest_teardown yield from thread_exception_runtest_hook() /usr/lib/python3/dist-packages/_pytest/threadexception.py:63: in thread_exception_runtest_hook yield /usr/lib/python3/dist-packages/_pytest/unraisableexception.py:95: in pytest_runtest_teardown yield from unraisable_exception_runtest_hook() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ def unraisable_exception_runtest_hook() -> Generator[None, None, None]: with catch_unraisable_exception() as cm: try: yield finally: if cm.unraisable: if cm.unraisable.err_msg is not None: err_msg = cm.unraisable.err_msg else: err_msg = "Exception ignored in" msg = f"{err_msg}: {cm.unraisable.object!r}\n\n" msg += "".join( traceback.format_exception( cm.unraisable.exc_type, cm.unraisable.exc_value, cm.unraisable.exc_traceback, ) ) > warnings.warn(pytest.PytestUnraisableExceptionWarning(msg)) E pytest.PytestUnraisableExceptionWarning: Exception ignored in: E E Traceback (most recent call last): E File "/build/reproducible-path/aiorwlock-1.0.0/tests/conftest.py", line 44, in event_loop E gc.collect() E ResourceWarning: unclosed /usr/lib/python3/dist-packages/_pytest/unraisableexception.py:80: PytestUnraisableExceptionWarning ---------------------------- Captured log teardown ----------------------------- ERROR asyncio:conftest.py:44 Task was destroyed but it is pending! source_traceback: Object created at (most recent call last): File "", line 198, in _run_module_as_main File "", line 88, in _run_code File "/usr/lib/python3/dist-packages/pytest/__main__.py", line 7, in raise SystemExit(pytest.console_main()) File "/usr/lib/python3/dist-packages/_pytest/config/__init__.py", line 206, in console_main code = main() File "/usr/lib/python3/dist-packages/_pytest/config/__init__.py", line 178, in main ret: Union[ExitCode, int] = config.hook.pytest_cmdline_main( File "/usr/lib/python3/dist-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3/dist-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3/dist-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3/dist-packages/_pytest/main.py", line 332, in pytest_cmdline_main return wrap_session(config, _main) File "/usr/lib/python3/dist-packages/_pytest/main.py", line 285, in wrap_session session.exitstatus = doit(config, session) or 0 File "/usr/lib/python3/dist-packages/_pytest/main.py", line 339, in _main config.hook.pytest_runtestloop(session=session) File "/usr/lib/python3/dist-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3/dist-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3/dist-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3/dist-packages/_pytest/main.py", line 364, in pytest_runtestloop item.config.hook.pytest_runtest_protocol(item=item, nextitem=nextitem) File "/usr/lib/python3/dist-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3/dist-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3/dist-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3/dist-packages/_pytest/runner.py", line 116, in pytest_runtest_protocol runtestprotocol(item, nextitem=nextitem) File "/usr/lib/python3/dist-packages/_pytest/runner.py", line 135, in runtestprotocol reports.append(call_and_report(item, "call", log)) File "/usr/lib/python3/dist-packages/_pytest/runner.py", line 240, in call_and_report call = CallInfo.from_call( File "/usr/lib/python3/dist-packages/_pytest/runner.py", line 341, in from_call result: Optional[TResult] = func() File "/usr/lib/python3/dist-packages/_pytest/runner.py", line 241, in lambda: runtest_hook(item=item, **kwds), when=when, reraise=reraise File "/usr/lib/python3/dist-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3/dist-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3/dist-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3/dist-packages/_pytest/runner.py", line 173, in pytest_runtest_call item.runtest() File "/usr/lib/python3/dist-packages/_pytest/python.py", line 1632, in runtest self.ihook.pytest_pyfunc_call(pyfuncitem=self) File "/usr/lib/python3/dist-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3/dist-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3/dist-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3/dist-packages/_pytest/python.py", line 162, in pytest_pyfunc_call result = testfunction(**testargs) File "/usr/lib/python3/dist-packages/pytest_asyncio/plugin.py", line 478, in inner _loop.run_until_complete(task) File "/build/reproducible-path/aiorwlock-1.0.0/tests/test_rwlock.py", line 295, in test_readers_writers b2 = Bunch(w, N) File "/build/reproducible-path/aiorwlock-1.0.0/tests/test_rwlock.py", line 37, in __init__ t = asyncio.Task(task()) task: .task() running at /build/reproducible-path/aiorwlock-1.0.0/tests/test_rwlock.py:30> wait_for= created at /build/reproducible-path/aiorwlock-1.0.0/tests/test_rwlock.py:37> ERROR asyncio:conftest.py:44 Task was destroyed but it is pending! source_traceback: Object created at (most recent call last): File "", line 198, in _run_module_as_main File "", line 88, in _run_code File "/usr/lib/python3/dist-packages/pytest/__main__.py", line 7, in raise SystemExit(pytest.console_main()) File "/usr/lib/python3/dist-packages/_pytest/config/__init__.py", line 206, in console_main code = main() File "/usr/lib/python3/dist-packages/_pytest/config/__init__.py", line 178, in main ret: Union[ExitCode, int] = config.hook.pytest_cmdline_main( File "/usr/lib/python3/dist-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3/dist-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3/dist-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3/dist-packages/_pytest/main.py", line 332, in pytest_cmdline_main return wrap_session(config, _main) File "/usr/lib/python3/dist-packages/_pytest/main.py", line 285, in wrap_session session.exitstatus = doit(config, session) or 0 File "/usr/lib/python3/dist-packages/_pytest/main.py", line 339, in _main config.hook.pytest_runtestloop(session=session) File "/usr/lib/python3/dist-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3/dist-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3/dist-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3/dist-packages/_pytest/main.py", line 364, in pytest_runtestloop item.config.hook.pytest_runtest_protocol(item=item, nextitem=nextitem) File "/usr/lib/python3/dist-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3/dist-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3/dist-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3/dist-packages/_pytest/runner.py", line 116, in pytest_runtest_protocol runtestprotocol(item, nextitem=nextitem) File "/usr/lib/python3/dist-packages/_pytest/runner.py", line 135, in runtestprotocol reports.append(call_and_report(item, "call", log)) File "/usr/lib/python3/dist-packages/_pytest/runner.py", line 240, in call_and_report call = CallInfo.from_call( File "/usr/lib/python3/dist-packages/_pytest/runner.py", line 341, in from_call result: Optional[TResult] = func() File "/usr/lib/python3/dist-packages/_pytest/runner.py", line 241, in lambda: runtest_hook(item=item, **kwds), when=when, reraise=reraise File "/usr/lib/python3/dist-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3/dist-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3/dist-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3/dist-packages/_pytest/runner.py", line 173, in pytest_runtest_call item.runtest() File "/usr/lib/python3/dist-packages/_pytest/python.py", line 1632, in runtest self.ihook.pytest_pyfunc_call(pyfuncitem=self) File "/usr/lib/python3/dist-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3/dist-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3/dist-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3/dist-packages/_pytest/python.py", line 162, in pytest_pyfunc_call result = testfunction(**testargs) File "/usr/lib/python3/dist-packages/pytest_asyncio/plugin.py", line 478, in inner _loop.run_until_complete(task) File "/build/reproducible-path/aiorwlock-1.0.0/tests/test_rwlock.py", line 295, in test_readers_writers b2 = Bunch(w, N) File "/build/reproducible-path/aiorwlock-1.0.0/tests/test_rwlock.py", line 37, in __init__ t = asyncio.Task(task()) task: .task() running at /build/reproducible-path/aiorwlock-1.0.0/tests/test_rwlock.py:30> wait_for= created at /build/reproducible-path/aiorwlock-1.0.0/tests/test_rwlock.py:37> ERROR asyncio:conftest.py:44 Task was destroyed but it is pending! source_traceback: Object created at (most recent call last): File "", line 198, in _run_module_as_main File "", line 88, in _run_code File "/usr/lib/python3/dist-packages/pytest/__main__.py", line 7, in raise SystemExit(pytest.console_main()) File "/usr/lib/python3/dist-packages/_pytest/config/__init__.py", line 206, in console_main code = main() File "/usr/lib/python3/dist-packages/_pytest/config/__init__.py", line 178, in main ret: Union[ExitCode, int] = config.hook.pytest_cmdline_main( File "/usr/lib/python3/dist-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3/dist-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3/dist-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3/dist-packages/_pytest/main.py", line 332, in pytest_cmdline_main return wrap_session(config, _main) File "/usr/lib/python3/dist-packages/_pytest/main.py", line 285, in wrap_session session.exitstatus = doit(config, session) or 0 File "/usr/lib/python3/dist-packages/_pytest/main.py", line 339, in _main config.hook.pytest_runtestloop(session=session) File "/usr/lib/python3/dist-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3/dist-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3/dist-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3/dist-packages/_pytest/main.py", line 364, in pytest_runtestloop item.config.hook.pytest_runtest_protocol(item=item, nextitem=nextitem) File "/usr/lib/python3/dist-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3/dist-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3/dist-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3/dist-packages/_pytest/runner.py", line 116, in pytest_runtest_protocol runtestprotocol(item, nextitem=nextitem) File "/usr/lib/python3/dist-packages/_pytest/runner.py", line 135, in runtestprotocol reports.append(call_and_report(item, "call", log)) File "/usr/lib/python3/dist-packages/_pytest/runner.py", line 240, in call_and_report call = CallInfo.from_call( File "/usr/lib/python3/dist-packages/_pytest/runner.py", line 341, in from_call result: Optional[TResult] = func() File "/usr/lib/python3/dist-packages/_pytest/runner.py", line 241, in lambda: runtest_hook(item=item, **kwds), when=when, reraise=reraise File "/usr/lib/python3/dist-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3/dist-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3/dist-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3/dist-packages/_pytest/runner.py", line 173, in pytest_runtest_call item.runtest() File "/usr/lib/python3/dist-packages/_pytest/python.py", line 1632, in runtest self.ihook.pytest_pyfunc_call(pyfuncitem=self) File "/usr/lib/python3/dist-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3/dist-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3/dist-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3/dist-packages/_pytest/python.py", line 162, in pytest_pyfunc_call result = testfunction(**testargs) File "/usr/lib/python3/dist-packages/pytest_asyncio/plugin.py", line 478, in inner _loop.run_until_complete(task) File "/build/reproducible-path/aiorwlock-1.0.0/tests/test_rwlock.py", line 295, in test_readers_writers b2 = Bunch(w, N) File "/build/reproducible-path/aiorwlock-1.0.0/tests/test_rwlock.py", line 37, in __init__ t = asyncio.Task(task()) task: .task() running at /build/reproducible-path/aiorwlock-1.0.0/tests/test_rwlock.py:30> wait_for= created at /build/reproducible-path/aiorwlock-1.0.0/tests/test_rwlock.py:37> ERROR asyncio:conftest.py:44 Task was destroyed but it is pending! source_traceback: Object created at (most recent call last): File "", line 198, in _run_module_as_main File "", line 88, in _run_code File "/usr/lib/python3/dist-packages/pytest/__main__.py", line 7, in raise SystemExit(pytest.console_main()) File "/usr/lib/python3/dist-packages/_pytest/config/__init__.py", line 206, in console_main code = main() File "/usr/lib/python3/dist-packages/_pytest/config/__init__.py", line 178, in main ret: Union[ExitCode, int] = config.hook.pytest_cmdline_main( File "/usr/lib/python3/dist-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3/dist-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3/dist-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3/dist-packages/_pytest/main.py", line 332, in pytest_cmdline_main return wrap_session(config, _main) File "/usr/lib/python3/dist-packages/_pytest/main.py", line 285, in wrap_session session.exitstatus = doit(config, session) or 0 File "/usr/lib/python3/dist-packages/_pytest/main.py", line 339, in _main config.hook.pytest_runtestloop(session=session) File "/usr/lib/python3/dist-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3/dist-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3/dist-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3/dist-packages/_pytest/main.py", line 364, in pytest_runtestloop item.config.hook.pytest_runtest_protocol(item=item, nextitem=nextitem) File "/usr/lib/python3/dist-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3/dist-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3/dist-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3/dist-packages/_pytest/runner.py", line 116, in pytest_runtest_protocol runtestprotocol(item, nextitem=nextitem) File "/usr/lib/python3/dist-packages/_pytest/runner.py", line 135, in runtestprotocol reports.append(call_and_report(item, "call", log)) File "/usr/lib/python3/dist-packages/_pytest/runner.py", line 240, in call_and_report call = CallInfo.from_call( File "/usr/lib/python3/dist-packages/_pytest/runner.py", line 341, in from_call result: Optional[TResult] = func() File "/usr/lib/python3/dist-packages/_pytest/runner.py", line 241, in lambda: runtest_hook(item=item, **kwds), when=when, reraise=reraise File "/usr/lib/python3/dist-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3/dist-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3/dist-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3/dist-packages/_pytest/runner.py", line 173, in pytest_runtest_call item.runtest() File "/usr/lib/python3/dist-packages/_pytest/python.py", line 1632, in runtest self.ihook.pytest_pyfunc_call(pyfuncitem=self) File "/usr/lib/python3/dist-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3/dist-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3/dist-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3/dist-packages/_pytest/python.py", line 162, in pytest_pyfunc_call result = testfunction(**testargs) File "/usr/lib/python3/dist-packages/pytest_asyncio/plugin.py", line 478, in inner _loop.run_until_complete(task) File "/build/reproducible-path/aiorwlock-1.0.0/tests/test_rwlock.py", line 295, in test_readers_writers b2 = Bunch(w, N) File "/build/reproducible-path/aiorwlock-1.0.0/tests/test_rwlock.py", line 37, in __init__ t = asyncio.Task(task()) task: .task() running at /build/reproducible-path/aiorwlock-1.0.0/tests/test_rwlock.py:30> wait_for= created at /build/reproducible-path/aiorwlock-1.0.0/tests/test_rwlock.py:37> ERROR asyncio:conftest.py:44 Task was destroyed but it is pending! source_traceback: Object created at (most recent call last): File "", line 198, in _run_module_as_main File "", line 88, in _run_code File "/usr/lib/python3/dist-packages/pytest/__main__.py", line 7, in raise SystemExit(pytest.console_main()) File "/usr/lib/python3/dist-packages/_pytest/config/__init__.py", line 206, in console_main code = main() File "/usr/lib/python3/dist-packages/_pytest/config/__init__.py", line 178, in main ret: Union[ExitCode, int] = config.hook.pytest_cmdline_main( File "/usr/lib/python3/dist-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3/dist-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3/dist-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3/dist-packages/_pytest/main.py", line 332, in pytest_cmdline_main return wrap_session(config, _main) File "/usr/lib/python3/dist-packages/_pytest/main.py", line 285, in wrap_session session.exitstatus = doit(config, session) or 0 File "/usr/lib/python3/dist-packages/_pytest/main.py", line 339, in _main config.hook.pytest_runtestloop(session=session) File "/usr/lib/python3/dist-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3/dist-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3/dist-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3/dist-packages/_pytest/main.py", line 364, in pytest_runtestloop item.config.hook.pytest_runtest_protocol(item=item, nextitem=nextitem) File "/usr/lib/python3/dist-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3/dist-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3/dist-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3/dist-packages/_pytest/runner.py", line 116, in pytest_runtest_protocol runtestprotocol(item, nextitem=nextitem) File "/usr/lib/python3/dist-packages/_pytest/runner.py", line 135, in runtestprotocol reports.append(call_and_report(item, "call", log)) File "/usr/lib/python3/dist-packages/_pytest/runner.py", line 240, in call_and_report call = CallInfo.from_call( File "/usr/lib/python3/dist-packages/_pytest/runner.py", line 341, in from_call result: Optional[TResult] = func() File "/usr/lib/python3/dist-packages/_pytest/runner.py", line 241, in lambda: runtest_hook(item=item, **kwds), when=when, reraise=reraise File "/usr/lib/python3/dist-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3/dist-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3/dist-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3/dist-packages/_pytest/runner.py", line 173, in pytest_runtest_call item.runtest() File "/usr/lib/python3/dist-packages/_pytest/python.py", line 1632, in runtest self.ihook.pytest_pyfunc_call(pyfuncitem=self) File "/usr/lib/python3/dist-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3/dist-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3/dist-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3/dist-packages/_pytest/python.py", line 162, in pytest_pyfunc_call result = testfunction(**testargs) File "/usr/lib/python3/dist-packages/pytest_asyncio/plugin.py", line 478, in inner _loop.run_until_complete(task) File "/build/reproducible-path/aiorwlock-1.0.0/tests/test_rwlock.py", line 295, in test_readers_writers b2 = Bunch(w, N) File "/build/reproducible-path/aiorwlock-1.0.0/tests/test_rwlock.py", line 37, in __init__ t = asyncio.Task(task()) task: .task() running at /build/reproducible-path/aiorwlock-1.0.0/tests/test_rwlock.py:30> wait_for= created at /build/reproducible-path/aiorwlock-1.0.0/tests/test_rwlock.py:37> _ ERROR at teardown of test_raise_error_on_with_for_writer_lock[debug:true-slow-uvloop] _ cls = func = . at 0xf64b4ed8> when = 'teardown' reraise = (, ) @classmethod def from_call( cls, func: Callable[[], TResult], when: Literal["collect", "setup", "call", "teardown"], reraise: Optional[ Union[Type[BaseException], Tuple[Type[BaseException], ...]] ] = None, ) -> "CallInfo[TResult]": """Call func, wrapping the result in a CallInfo. :param func: The function to call. Called without arguments. :param when: The phase in which the function is called. :param reraise: Exception or exceptions that shall propagate if raised by the function, instead of being wrapped in the CallInfo. """ excinfo = None start = timing.time() precise_start = timing.perf_counter() try: > result: Optional[TResult] = func() /usr/lib/python3/dist-packages/_pytest/runner.py:341: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/dist-packages/_pytest/runner.py:241: in lambda: runtest_hook(item=item, **kwds), when=when, reraise=reraise /usr/lib/python3/dist-packages/pluggy/_hooks.py:513: in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) /usr/lib/python3/dist-packages/pluggy/_manager.py:120: in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) /usr/lib/python3/dist-packages/_pytest/threadexception.py:92: in pytest_runtest_teardown yield from thread_exception_runtest_hook() /usr/lib/python3/dist-packages/_pytest/threadexception.py:63: in thread_exception_runtest_hook yield /usr/lib/python3/dist-packages/_pytest/unraisableexception.py:95: in pytest_runtest_teardown yield from unraisable_exception_runtest_hook() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ def unraisable_exception_runtest_hook() -> Generator[None, None, None]: with catch_unraisable_exception() as cm: try: yield finally: if cm.unraisable: if cm.unraisable.err_msg is not None: err_msg = cm.unraisable.err_msg else: err_msg = "Exception ignored in" msg = f"{err_msg}: {cm.unraisable.object!r}\n\n" msg += "".join( traceback.format_exception( cm.unraisable.exc_type, cm.unraisable.exc_value, cm.unraisable.exc_traceback, ) ) > warnings.warn(pytest.PytestUnraisableExceptionWarning(msg)) E pytest.PytestUnraisableExceptionWarning: Exception ignored in: E E Traceback (most recent call last): E File "/build/reproducible-path/aiorwlock-1.0.0/tests/conftest.py", line 44, in event_loop E gc.collect() E ResourceWarning: unclosed /usr/lib/python3/dist-packages/_pytest/unraisableexception.py:80: PytestUnraisableExceptionWarning ________ ERROR at teardown of test_read_locked[debug:true-slow-uvloop] _________ cls = func = . at 0xf66cf6b8> when = 'teardown' reraise = (, ) @classmethod def from_call( cls, func: Callable[[], TResult], when: Literal["collect", "setup", "call", "teardown"], reraise: Optional[ Union[Type[BaseException], Tuple[Type[BaseException], ...]] ] = None, ) -> "CallInfo[TResult]": """Call func, wrapping the result in a CallInfo. :param func: The function to call. Called without arguments. :param when: The phase in which the function is called. :param reraise: Exception or exceptions that shall propagate if raised by the function, instead of being wrapped in the CallInfo. """ excinfo = None start = timing.time() precise_start = timing.perf_counter() try: > result: Optional[TResult] = func() /usr/lib/python3/dist-packages/_pytest/runner.py:341: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/dist-packages/_pytest/runner.py:241: in lambda: runtest_hook(item=item, **kwds), when=when, reraise=reraise /usr/lib/python3/dist-packages/pluggy/_hooks.py:513: in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) /usr/lib/python3/dist-packages/pluggy/_manager.py:120: in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) /usr/lib/python3/dist-packages/_pytest/threadexception.py:92: in pytest_runtest_teardown yield from thread_exception_runtest_hook() /usr/lib/python3/dist-packages/_pytest/threadexception.py:63: in thread_exception_runtest_hook yield /usr/lib/python3/dist-packages/_pytest/unraisableexception.py:95: in pytest_runtest_teardown yield from unraisable_exception_runtest_hook() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ def unraisable_exception_runtest_hook() -> Generator[None, None, None]: with catch_unraisable_exception() as cm: try: yield finally: if cm.unraisable: if cm.unraisable.err_msg is not None: err_msg = cm.unraisable.err_msg else: err_msg = "Exception ignored in" msg = f"{err_msg}: {cm.unraisable.object!r}\n\n" msg += "".join( traceback.format_exception( cm.unraisable.exc_type, cm.unraisable.exc_value, cm.unraisable.exc_traceback, ) ) > warnings.warn(pytest.PytestUnraisableExceptionWarning(msg)) E pytest.PytestUnraisableExceptionWarning: Exception ignored in: E E Traceback (most recent call last): E File "/build/reproducible-path/aiorwlock-1.0.0/tests/conftest.py", line 44, in event_loop E gc.collect() E ResourceWarning: unclosed /usr/lib/python3/dist-packages/_pytest/unraisableexception.py:80: PytestUnraisableExceptionWarning ________ ERROR at teardown of test_write_locked[debug:true-slow-uvloop] ________ cls = func = . at 0xf654c7a8> when = 'teardown' reraise = (, ) @classmethod def from_call( cls, func: Callable[[], TResult], when: Literal["collect", "setup", "call", "teardown"], reraise: Optional[ Union[Type[BaseException], Tuple[Type[BaseException], ...]] ] = None, ) -> "CallInfo[TResult]": """Call func, wrapping the result in a CallInfo. :param func: The function to call. Called without arguments. :param when: The phase in which the function is called. :param reraise: Exception or exceptions that shall propagate if raised by the function, instead of being wrapped in the CallInfo. """ excinfo = None start = timing.time() precise_start = timing.perf_counter() try: > result: Optional[TResult] = func() /usr/lib/python3/dist-packages/_pytest/runner.py:341: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/dist-packages/_pytest/runner.py:241: in lambda: runtest_hook(item=item, **kwds), when=when, reraise=reraise /usr/lib/python3/dist-packages/pluggy/_hooks.py:513: in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) /usr/lib/python3/dist-packages/pluggy/_manager.py:120: in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) /usr/lib/python3/dist-packages/_pytest/threadexception.py:92: in pytest_runtest_teardown yield from thread_exception_runtest_hook() /usr/lib/python3/dist-packages/_pytest/threadexception.py:63: in thread_exception_runtest_hook yield /usr/lib/python3/dist-packages/_pytest/unraisableexception.py:95: in pytest_runtest_teardown yield from unraisable_exception_runtest_hook() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ def unraisable_exception_runtest_hook() -> Generator[None, None, None]: with catch_unraisable_exception() as cm: try: yield finally: if cm.unraisable: if cm.unraisable.err_msg is not None: err_msg = cm.unraisable.err_msg else: err_msg = "Exception ignored in" msg = f"{err_msg}: {cm.unraisable.object!r}\n\n" msg += "".join( traceback.format_exception( cm.unraisable.exc_type, cm.unraisable.exc_value, cm.unraisable.exc_traceback, ) ) > warnings.warn(pytest.PytestUnraisableExceptionWarning(msg)) E pytest.PytestUnraisableExceptionWarning: Exception ignored in: E E Traceback (most recent call last): E File "/build/reproducible-path/aiorwlock-1.0.0/tests/conftest.py", line 44, in event_loop E gc.collect() E ResourceWarning: unclosed /usr/lib/python3/dist-packages/_pytest/unraisableexception.py:80: PytestUnraisableExceptionWarning _ ERROR at teardown of test_write_read_lock_multiple_tasks[debug:true-slow-uvloop] _ cls = func = . at 0xf65527f8> when = 'teardown' reraise = (, ) @classmethod def from_call( cls, func: Callable[[], TResult], when: Literal["collect", "setup", "call", "teardown"], reraise: Optional[ Union[Type[BaseException], Tuple[Type[BaseException], ...]] ] = None, ) -> "CallInfo[TResult]": """Call func, wrapping the result in a CallInfo. :param func: The function to call. Called without arguments. :param when: The phase in which the function is called. :param reraise: Exception or exceptions that shall propagate if raised by the function, instead of being wrapped in the CallInfo. """ excinfo = None start = timing.time() precise_start = timing.perf_counter() try: > result: Optional[TResult] = func() /usr/lib/python3/dist-packages/_pytest/runner.py:341: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/dist-packages/_pytest/runner.py:241: in lambda: runtest_hook(item=item, **kwds), when=when, reraise=reraise /usr/lib/python3/dist-packages/pluggy/_hooks.py:513: in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) /usr/lib/python3/dist-packages/pluggy/_manager.py:120: in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) /usr/lib/python3/dist-packages/_pytest/threadexception.py:92: in pytest_runtest_teardown yield from thread_exception_runtest_hook() /usr/lib/python3/dist-packages/_pytest/threadexception.py:63: in thread_exception_runtest_hook yield /usr/lib/python3/dist-packages/_pytest/unraisableexception.py:95: in pytest_runtest_teardown yield from unraisable_exception_runtest_hook() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ def unraisable_exception_runtest_hook() -> Generator[None, None, None]: with catch_unraisable_exception() as cm: try: yield finally: if cm.unraisable: if cm.unraisable.err_msg is not None: err_msg = cm.unraisable.err_msg else: err_msg = "Exception ignored in" msg = f"{err_msg}: {cm.unraisable.object!r}\n\n" msg += "".join( traceback.format_exception( cm.unraisable.exc_type, cm.unraisable.exc_value, cm.unraisable.exc_traceback, ) ) > warnings.warn(pytest.PytestUnraisableExceptionWarning(msg)) E pytest.PytestUnraisableExceptionWarning: Exception ignored in: E E Traceback (most recent call last): E File "/build/reproducible-path/aiorwlock-1.0.0/tests/conftest.py", line 44, in event_loop E gc.collect() E ResourceWarning: unclosed /usr/lib/python3/dist-packages/_pytest/unraisableexception.py:80: PytestUnraisableExceptionWarning ____ ERROR at teardown of test_read_context_manager[debug:true-slow-uvloop] ____ cls = func = . at 0xf6552e88> when = 'teardown' reraise = (, ) @classmethod def from_call( cls, func: Callable[[], TResult], when: Literal["collect", "setup", "call", "teardown"], reraise: Optional[ Union[Type[BaseException], Tuple[Type[BaseException], ...]] ] = None, ) -> "CallInfo[TResult]": """Call func, wrapping the result in a CallInfo. :param func: The function to call. Called without arguments. :param when: The phase in which the function is called. :param reraise: Exception or exceptions that shall propagate if raised by the function, instead of being wrapped in the CallInfo. """ excinfo = None start = timing.time() precise_start = timing.perf_counter() try: > result: Optional[TResult] = func() /usr/lib/python3/dist-packages/_pytest/runner.py:341: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/dist-packages/_pytest/runner.py:241: in lambda: runtest_hook(item=item, **kwds), when=when, reraise=reraise /usr/lib/python3/dist-packages/pluggy/_hooks.py:513: in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) /usr/lib/python3/dist-packages/pluggy/_manager.py:120: in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) /usr/lib/python3/dist-packages/_pytest/threadexception.py:92: in pytest_runtest_teardown yield from thread_exception_runtest_hook() /usr/lib/python3/dist-packages/_pytest/threadexception.py:63: in thread_exception_runtest_hook yield /usr/lib/python3/dist-packages/_pytest/unraisableexception.py:95: in pytest_runtest_teardown yield from unraisable_exception_runtest_hook() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ def unraisable_exception_runtest_hook() -> Generator[None, None, None]: with catch_unraisable_exception() as cm: try: yield finally: if cm.unraisable: if cm.unraisable.err_msg is not None: err_msg = cm.unraisable.err_msg else: err_msg = "Exception ignored in" msg = f"{err_msg}: {cm.unraisable.object!r}\n\n" msg += "".join( traceback.format_exception( cm.unraisable.exc_type, cm.unraisable.exc_value, cm.unraisable.exc_traceback, ) ) > warnings.warn(pytest.PytestUnraisableExceptionWarning(msg)) E pytest.PytestUnraisableExceptionWarning: Exception ignored in: E E Traceback (most recent call last): E File "/build/reproducible-path/aiorwlock-1.0.0/tests/conftest.py", line 44, in event_loop E gc.collect() E ResourceWarning: unclosed /usr/lib/python3/dist-packages/_pytest/unraisableexception.py:80: PytestUnraisableExceptionWarning ___ ERROR at teardown of test_write_context_manager[debug:true-slow-uvloop] ____ cls = func = . at 0xf65528e8> when = 'teardown' reraise = (, ) @classmethod def from_call( cls, func: Callable[[], TResult], when: Literal["collect", "setup", "call", "teardown"], reraise: Optional[ Union[Type[BaseException], Tuple[Type[BaseException], ...]] ] = None, ) -> "CallInfo[TResult]": """Call func, wrapping the result in a CallInfo. :param func: The function to call. Called without arguments. :param when: The phase in which the function is called. :param reraise: Exception or exceptions that shall propagate if raised by the function, instead of being wrapped in the CallInfo. """ excinfo = None start = timing.time() precise_start = timing.perf_counter() try: > result: Optional[TResult] = func() /usr/lib/python3/dist-packages/_pytest/runner.py:341: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/dist-packages/_pytest/runner.py:241: in lambda: runtest_hook(item=item, **kwds), when=when, reraise=reraise /usr/lib/python3/dist-packages/pluggy/_hooks.py:513: in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) /usr/lib/python3/dist-packages/pluggy/_manager.py:120: in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) /usr/lib/python3/dist-packages/_pytest/threadexception.py:92: in pytest_runtest_teardown yield from thread_exception_runtest_hook() /usr/lib/python3/dist-packages/_pytest/threadexception.py:63: in thread_exception_runtest_hook yield /usr/lib/python3/dist-packages/_pytest/unraisableexception.py:95: in pytest_runtest_teardown yield from unraisable_exception_runtest_hook() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ def unraisable_exception_runtest_hook() -> Generator[None, None, None]: with catch_unraisable_exception() as cm: try: yield finally: if cm.unraisable: if cm.unraisable.err_msg is not None: err_msg = cm.unraisable.err_msg else: err_msg = "Exception ignored in" msg = f"{err_msg}: {cm.unraisable.object!r}\n\n" msg += "".join( traceback.format_exception( cm.unraisable.exc_type, cm.unraisable.exc_value, cm.unraisable.exc_traceback, ) ) > warnings.warn(pytest.PytestUnraisableExceptionWarning(msg)) E pytest.PytestUnraisableExceptionWarning: Exception ignored in: E E Traceback (most recent call last): E File "/build/reproducible-path/aiorwlock-1.0.0/tests/conftest.py", line 44, in event_loop E gc.collect() E ResourceWarning: unclosed /usr/lib/python3/dist-packages/_pytest/unraisableexception.py:80: PytestUnraisableExceptionWarning ______ ERROR at teardown of test_await_read_lock[debug:true-slow-uvloop] _______ cls = func = . at 0xf653d7f8> when = 'teardown' reraise = (, ) @classmethod def from_call( cls, func: Callable[[], TResult], when: Literal["collect", "setup", "call", "teardown"], reraise: Optional[ Union[Type[BaseException], Tuple[Type[BaseException], ...]] ] = None, ) -> "CallInfo[TResult]": """Call func, wrapping the result in a CallInfo. :param func: The function to call. Called without arguments. :param when: The phase in which the function is called. :param reraise: Exception or exceptions that shall propagate if raised by the function, instead of being wrapped in the CallInfo. """ excinfo = None start = timing.time() precise_start = timing.perf_counter() try: > result: Optional[TResult] = func() /usr/lib/python3/dist-packages/_pytest/runner.py:341: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/dist-packages/_pytest/runner.py:241: in lambda: runtest_hook(item=item, **kwds), when=when, reraise=reraise /usr/lib/python3/dist-packages/pluggy/_hooks.py:513: in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) /usr/lib/python3/dist-packages/pluggy/_manager.py:120: in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) /usr/lib/python3/dist-packages/_pytest/threadexception.py:92: in pytest_runtest_teardown yield from thread_exception_runtest_hook() /usr/lib/python3/dist-packages/_pytest/threadexception.py:63: in thread_exception_runtest_hook yield /usr/lib/python3/dist-packages/_pytest/unraisableexception.py:95: in pytest_runtest_teardown yield from unraisable_exception_runtest_hook() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ def unraisable_exception_runtest_hook() -> Generator[None, None, None]: with catch_unraisable_exception() as cm: try: yield finally: if cm.unraisable: if cm.unraisable.err_msg is not None: err_msg = cm.unraisable.err_msg else: err_msg = "Exception ignored in" msg = f"{err_msg}: {cm.unraisable.object!r}\n\n" msg += "".join( traceback.format_exception( cm.unraisable.exc_type, cm.unraisable.exc_value, cm.unraisable.exc_traceback, ) ) > warnings.warn(pytest.PytestUnraisableExceptionWarning(msg)) E pytest.PytestUnraisableExceptionWarning: Exception ignored in: E E Traceback (most recent call last): E File "/build/reproducible-path/aiorwlock-1.0.0/tests/conftest.py", line 44, in event_loop E gc.collect() E ResourceWarning: unclosed /usr/lib/python3/dist-packages/_pytest/unraisableexception.py:80: PytestUnraisableExceptionWarning ______ ERROR at teardown of test_await_write_lock[debug:true-slow-uvloop] ______ cls = func = . at 0xf653de88> when = 'teardown' reraise = (, ) @classmethod def from_call( cls, func: Callable[[], TResult], when: Literal["collect", "setup", "call", "teardown"], reraise: Optional[ Union[Type[BaseException], Tuple[Type[BaseException], ...]] ] = None, ) -> "CallInfo[TResult]": """Call func, wrapping the result in a CallInfo. :param func: The function to call. Called without arguments. :param when: The phase in which the function is called. :param reraise: Exception or exceptions that shall propagate if raised by the function, instead of being wrapped in the CallInfo. """ excinfo = None start = timing.time() precise_start = timing.perf_counter() try: > result: Optional[TResult] = func() /usr/lib/python3/dist-packages/_pytest/runner.py:341: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/dist-packages/_pytest/runner.py:241: in lambda: runtest_hook(item=item, **kwds), when=when, reraise=reraise /usr/lib/python3/dist-packages/pluggy/_hooks.py:513: in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) /usr/lib/python3/dist-packages/pluggy/_manager.py:120: in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) /usr/lib/python3/dist-packages/_pytest/threadexception.py:92: in pytest_runtest_teardown yield from thread_exception_runtest_hook() /usr/lib/python3/dist-packages/_pytest/threadexception.py:63: in thread_exception_runtest_hook yield /usr/lib/python3/dist-packages/_pytest/unraisableexception.py:95: in pytest_runtest_teardown yield from unraisable_exception_runtest_hook() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ def unraisable_exception_runtest_hook() -> Generator[None, None, None]: with catch_unraisable_exception() as cm: try: yield finally: if cm.unraisable: if cm.unraisable.err_msg is not None: err_msg = cm.unraisable.err_msg else: err_msg = "Exception ignored in" msg = f"{err_msg}: {cm.unraisable.object!r}\n\n" msg += "".join( traceback.format_exception( cm.unraisable.exc_type, cm.unraisable.exc_value, cm.unraisable.exc_traceback, ) ) > warnings.warn(pytest.PytestUnraisableExceptionWarning(msg)) E pytest.PytestUnraisableExceptionWarning: Exception ignored in: E E Traceback (most recent call last): E File "/build/reproducible-path/aiorwlock-1.0.0/tests/conftest.py", line 44, in event_loop E gc.collect() E ResourceWarning: unclosed /usr/lib/python3/dist-packages/_pytest/unraisableexception.py:80: PytestUnraisableExceptionWarning _ ERROR at teardown of test_raise_error_on_with_for_reader_lock[debug:true-slow-pyloop] _ cls = func = . at 0xf64b4ed8> when = 'teardown' reraise = (, ) @classmethod def from_call( cls, func: Callable[[], TResult], when: Literal["collect", "setup", "call", "teardown"], reraise: Optional[ Union[Type[BaseException], Tuple[Type[BaseException], ...]] ] = None, ) -> "CallInfo[TResult]": """Call func, wrapping the result in a CallInfo. :param func: The function to call. Called without arguments. :param when: The phase in which the function is called. :param reraise: Exception or exceptions that shall propagate if raised by the function, instead of being wrapped in the CallInfo. """ excinfo = None start = timing.time() precise_start = timing.perf_counter() try: > result: Optional[TResult] = func() /usr/lib/python3/dist-packages/_pytest/runner.py:341: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/dist-packages/_pytest/runner.py:241: in lambda: runtest_hook(item=item, **kwds), when=when, reraise=reraise /usr/lib/python3/dist-packages/pluggy/_hooks.py:513: in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) /usr/lib/python3/dist-packages/pluggy/_manager.py:120: in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) /usr/lib/python3/dist-packages/_pytest/threadexception.py:92: in pytest_runtest_teardown yield from thread_exception_runtest_hook() /usr/lib/python3/dist-packages/_pytest/threadexception.py:63: in thread_exception_runtest_hook yield /usr/lib/python3/dist-packages/_pytest/unraisableexception.py:95: in pytest_runtest_teardown yield from unraisable_exception_runtest_hook() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ def unraisable_exception_runtest_hook() -> Generator[None, None, None]: with catch_unraisable_exception() as cm: try: yield finally: if cm.unraisable: if cm.unraisable.err_msg is not None: err_msg = cm.unraisable.err_msg else: err_msg = "Exception ignored in" msg = f"{err_msg}: {cm.unraisable.object!r}\n\n" msg += "".join( traceback.format_exception( cm.unraisable.exc_type, cm.unraisable.exc_value, cm.unraisable.exc_traceback, ) ) > warnings.warn(pytest.PytestUnraisableExceptionWarning(msg)) E pytest.PytestUnraisableExceptionWarning: Exception ignored in: E E Traceback (most recent call last): E File "/build/reproducible-path/aiorwlock-1.0.0/tests/conftest.py", line 44, in event_loop E gc.collect() E ResourceWarning: unclosed /usr/lib/python3/dist-packages/_pytest/unraisableexception.py:80: PytestUnraisableExceptionWarning ---------------------------- Captured log teardown ----------------------------- ERROR asyncio:base_events.py:1821 Task was destroyed but it is pending! source_traceback: Object created at (most recent call last): File "", line 198, in _run_module_as_main File "", line 88, in _run_code File "/usr/lib/python3/dist-packages/pytest/__main__.py", line 7, in raise SystemExit(pytest.console_main()) File "/usr/lib/python3/dist-packages/_pytest/config/__init__.py", line 206, in console_main code = main() File "/usr/lib/python3/dist-packages/_pytest/config/__init__.py", line 178, in main ret: Union[ExitCode, int] = config.hook.pytest_cmdline_main( File "/usr/lib/python3/dist-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3/dist-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3/dist-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3/dist-packages/_pytest/main.py", line 332, in pytest_cmdline_main return wrap_session(config, _main) File "/usr/lib/python3/dist-packages/_pytest/main.py", line 285, in wrap_session session.exitstatus = doit(config, session) or 0 File "/usr/lib/python3/dist-packages/_pytest/main.py", line 339, in _main config.hook.pytest_runtestloop(session=session) File "/usr/lib/python3/dist-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3/dist-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3/dist-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3/dist-packages/_pytest/main.py", line 364, in pytest_runtestloop item.config.hook.pytest_runtest_protocol(item=item, nextitem=nextitem) File "/usr/lib/python3/dist-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3/dist-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3/dist-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3/dist-packages/_pytest/runner.py", line 116, in pytest_runtest_protocol runtestprotocol(item, nextitem=nextitem) File "/usr/lib/python3/dist-packages/_pytest/runner.py", line 135, in runtestprotocol reports.append(call_and_report(item, "call", log)) File "/usr/lib/python3/dist-packages/_pytest/runner.py", line 240, in call_and_report call = CallInfo.from_call( File "/usr/lib/python3/dist-packages/_pytest/runner.py", line 341, in from_call result: Optional[TResult] = func() File "/usr/lib/python3/dist-packages/_pytest/runner.py", line 241, in lambda: runtest_hook(item=item, **kwds), when=when, reraise=reraise File "/usr/lib/python3/dist-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3/dist-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3/dist-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3/dist-packages/_pytest/runner.py", line 173, in pytest_runtest_call item.runtest() File "/usr/lib/python3/dist-packages/_pytest/python.py", line 1632, in runtest self.ihook.pytest_pyfunc_call(pyfuncitem=self) File "/usr/lib/python3/dist-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3/dist-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3/dist-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3/dist-packages/_pytest/python.py", line 162, in pytest_pyfunc_call result = testfunction(**testargs) File "/usr/lib/python3/dist-packages/pytest_asyncio/plugin.py", line 478, in inner _loop.run_until_complete(task) File "/usr/lib/python3.12/asyncio/base_events.py", line 674, in run_until_complete self.run_forever() File "/usr/lib/python3.12/asyncio/base_events.py", line 641, in run_forever self._run_once() File "/usr/lib/python3.12/asyncio/base_events.py", line 1979, in _run_once handle._run() File "/usr/lib/python3.12/asyncio/events.py", line 88, in _run self._context.run(self._callback, *self._args) File "/build/reproducible-path/aiorwlock-1.0.0/tests/test_rwlock.py", line 295, in test_readers_writers b2 = Bunch(w, N) File "/build/reproducible-path/aiorwlock-1.0.0/tests/test_rwlock.py", line 37, in __init__ t = asyncio.Task(task()) task: .task() running at /build/reproducible-path/aiorwlock-1.0.0/tests/test_rwlock.py:30> wait_for= created at /build/reproducible-path/aiorwlock-1.0.0/tests/test_rwlock.py:37> ERROR asyncio:base_events.py:1821 Task was destroyed but it is pending! source_traceback: Object created at (most recent call last): File "", line 198, in _run_module_as_main File "", line 88, in _run_code File "/usr/lib/python3/dist-packages/pytest/__main__.py", line 7, in raise SystemExit(pytest.console_main()) File "/usr/lib/python3/dist-packages/_pytest/config/__init__.py", line 206, in console_main code = main() File "/usr/lib/python3/dist-packages/_pytest/config/__init__.py", line 178, in main ret: Union[ExitCode, int] = config.hook.pytest_cmdline_main( File "/usr/lib/python3/dist-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3/dist-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3/dist-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3/dist-packages/_pytest/main.py", line 332, in pytest_cmdline_main return wrap_session(config, _main) File "/usr/lib/python3/dist-packages/_pytest/main.py", line 285, in wrap_session session.exitstatus = doit(config, session) or 0 File "/usr/lib/python3/dist-packages/_pytest/main.py", line 339, in _main config.hook.pytest_runtestloop(session=session) File "/usr/lib/python3/dist-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3/dist-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3/dist-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3/dist-packages/_pytest/main.py", line 364, in pytest_runtestloop item.config.hook.pytest_runtest_protocol(item=item, nextitem=nextitem) File "/usr/lib/python3/dist-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3/dist-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3/dist-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3/dist-packages/_pytest/runner.py", line 116, in pytest_runtest_protocol runtestprotocol(item, nextitem=nextitem) File "/usr/lib/python3/dist-packages/_pytest/runner.py", line 135, in runtestprotocol reports.append(call_and_report(item, "call", log)) File "/usr/lib/python3/dist-packages/_pytest/runner.py", line 240, in call_and_report call = CallInfo.from_call( File "/usr/lib/python3/dist-packages/_pytest/runner.py", line 341, in from_call result: Optional[TResult] = func() File "/usr/lib/python3/dist-packages/_pytest/runner.py", line 241, in lambda: runtest_hook(item=item, **kwds), when=when, reraise=reraise File "/usr/lib/python3/dist-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3/dist-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3/dist-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3/dist-packages/_pytest/runner.py", line 173, in pytest_runtest_call item.runtest() File "/usr/lib/python3/dist-packages/_pytest/python.py", line 1632, in runtest self.ihook.pytest_pyfunc_call(pyfuncitem=self) File "/usr/lib/python3/dist-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3/dist-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3/dist-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3/dist-packages/_pytest/python.py", line 162, in pytest_pyfunc_call result = testfunction(**testargs) File "/usr/lib/python3/dist-packages/pytest_asyncio/plugin.py", line 478, in inner _loop.run_until_complete(task) File "/usr/lib/python3.12/asyncio/base_events.py", line 674, in run_until_complete self.run_forever() File "/usr/lib/python3.12/asyncio/base_events.py", line 641, in run_forever self._run_once() File "/usr/lib/python3.12/asyncio/base_events.py", line 1979, in _run_once handle._run() File "/usr/lib/python3.12/asyncio/events.py", line 88, in _run self._context.run(self._callback, *self._args) File "/build/reproducible-path/aiorwlock-1.0.0/tests/test_rwlock.py", line 295, in test_readers_writers b2 = Bunch(w, N) File "/build/reproducible-path/aiorwlock-1.0.0/tests/test_rwlock.py", line 37, in __init__ t = asyncio.Task(task()) task: .task() running at /build/reproducible-path/aiorwlock-1.0.0/tests/test_rwlock.py:30> wait_for= created at /build/reproducible-path/aiorwlock-1.0.0/tests/test_rwlock.py:37> ERROR asyncio:base_events.py:1821 Task was destroyed but it is pending! source_traceback: Object created at (most recent call last): File "", line 198, in _run_module_as_main File "", line 88, in _run_code File "/usr/lib/python3/dist-packages/pytest/__main__.py", line 7, in raise SystemExit(pytest.console_main()) File "/usr/lib/python3/dist-packages/_pytest/config/__init__.py", line 206, in console_main code = main() File "/usr/lib/python3/dist-packages/_pytest/config/__init__.py", line 178, in main ret: Union[ExitCode, int] = config.hook.pytest_cmdline_main( File "/usr/lib/python3/dist-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3/dist-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3/dist-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3/dist-packages/_pytest/main.py", line 332, in pytest_cmdline_main return wrap_session(config, _main) File "/usr/lib/python3/dist-packages/_pytest/main.py", line 285, in wrap_session session.exitstatus = doit(config, session) or 0 File "/usr/lib/python3/dist-packages/_pytest/main.py", line 339, in _main config.hook.pytest_runtestloop(session=session) File "/usr/lib/python3/dist-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3/dist-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3/dist-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3/dist-packages/_pytest/main.py", line 364, in pytest_runtestloop item.config.hook.pytest_runtest_protocol(item=item, nextitem=nextitem) File "/usr/lib/python3/dist-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3/dist-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3/dist-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3/dist-packages/_pytest/runner.py", line 116, in pytest_runtest_protocol runtestprotocol(item, nextitem=nextitem) File "/usr/lib/python3/dist-packages/_pytest/runner.py", line 135, in runtestprotocol reports.append(call_and_report(item, "call", log)) File "/usr/lib/python3/dist-packages/_pytest/runner.py", line 240, in call_and_report call = CallInfo.from_call( File "/usr/lib/python3/dist-packages/_pytest/runner.py", line 341, in from_call result: Optional[TResult] = func() File "/usr/lib/python3/dist-packages/_pytest/runner.py", line 241, in lambda: runtest_hook(item=item, **kwds), when=when, reraise=reraise File "/usr/lib/python3/dist-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3/dist-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3/dist-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3/dist-packages/_pytest/runner.py", line 173, in pytest_runtest_call item.runtest() File "/usr/lib/python3/dist-packages/_pytest/python.py", line 1632, in runtest self.ihook.pytest_pyfunc_call(pyfuncitem=self) File "/usr/lib/python3/dist-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3/dist-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3/dist-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3/dist-packages/_pytest/python.py", line 162, in pytest_pyfunc_call result = testfunction(**testargs) File "/usr/lib/python3/dist-packages/pytest_asyncio/plugin.py", line 478, in inner _loop.run_until_complete(task) File "/usr/lib/python3.12/asyncio/base_events.py", line 674, in run_until_complete self.run_forever() File "/usr/lib/python3.12/asyncio/base_events.py", line 641, in run_forever self._run_once() File "/usr/lib/python3.12/asyncio/base_events.py", line 1979, in _run_once handle._run() File "/usr/lib/python3.12/asyncio/events.py", line 88, in _run self._context.run(self._callback, *self._args) File "/build/reproducible-path/aiorwlock-1.0.0/tests/test_rwlock.py", line 295, in test_readers_writers b2 = Bunch(w, N) File "/build/reproducible-path/aiorwlock-1.0.0/tests/test_rwlock.py", line 37, in __init__ t = asyncio.Task(task()) task: .task() running at /build/reproducible-path/aiorwlock-1.0.0/tests/test_rwlock.py:30> wait_for= created at /build/reproducible-path/aiorwlock-1.0.0/tests/test_rwlock.py:37> ERROR asyncio:base_events.py:1821 Task was destroyed but it is pending! source_traceback: Object created at (most recent call last): File "", line 198, in _run_module_as_main File "", line 88, in _run_code File "/usr/lib/python3/dist-packages/pytest/__main__.py", line 7, in raise SystemExit(pytest.console_main()) File "/usr/lib/python3/dist-packages/_pytest/config/__init__.py", line 206, in console_main code = main() File "/usr/lib/python3/dist-packages/_pytest/config/__init__.py", line 178, in main ret: Union[ExitCode, int] = config.hook.pytest_cmdline_main( File "/usr/lib/python3/dist-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3/dist-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3/dist-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3/dist-packages/_pytest/main.py", line 332, in pytest_cmdline_main return wrap_session(config, _main) File "/usr/lib/python3/dist-packages/_pytest/main.py", line 285, in wrap_session session.exitstatus = doit(config, session) or 0 File "/usr/lib/python3/dist-packages/_pytest/main.py", line 339, in _main config.hook.pytest_runtestloop(session=session) File "/usr/lib/python3/dist-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3/dist-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3/dist-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3/dist-packages/_pytest/main.py", line 364, in pytest_runtestloop item.config.hook.pytest_runtest_protocol(item=item, nextitem=nextitem) File "/usr/lib/python3/dist-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3/dist-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3/dist-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3/dist-packages/_pytest/runner.py", line 116, in pytest_runtest_protocol runtestprotocol(item, nextitem=nextitem) File "/usr/lib/python3/dist-packages/_pytest/runner.py", line 135, in runtestprotocol reports.append(call_and_report(item, "call", log)) File "/usr/lib/python3/dist-packages/_pytest/runner.py", line 240, in call_and_report call = CallInfo.from_call( File "/usr/lib/python3/dist-packages/_pytest/runner.py", line 341, in from_call result: Optional[TResult] = func() File "/usr/lib/python3/dist-packages/_pytest/runner.py", line 241, in lambda: runtest_hook(item=item, **kwds), when=when, reraise=reraise File "/usr/lib/python3/dist-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3/dist-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3/dist-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3/dist-packages/_pytest/runner.py", line 173, in pytest_runtest_call item.runtest() File "/usr/lib/python3/dist-packages/_pytest/python.py", line 1632, in runtest self.ihook.pytest_pyfunc_call(pyfuncitem=self) File "/usr/lib/python3/dist-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3/dist-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3/dist-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3/dist-packages/_pytest/python.py", line 162, in pytest_pyfunc_call result = testfunction(**testargs) File "/usr/lib/python3/dist-packages/pytest_asyncio/plugin.py", line 478, in inner _loop.run_until_complete(task) File "/usr/lib/python3.12/asyncio/base_events.py", line 674, in run_until_complete self.run_forever() File "/usr/lib/python3.12/asyncio/base_events.py", line 641, in run_forever self._run_once() File "/usr/lib/python3.12/asyncio/base_events.py", line 1979, in _run_once handle._run() File "/usr/lib/python3.12/asyncio/events.py", line 88, in _run self._context.run(self._callback, *self._args) File "/build/reproducible-path/aiorwlock-1.0.0/tests/test_rwlock.py", line 295, in test_readers_writers b2 = Bunch(w, N) File "/build/reproducible-path/aiorwlock-1.0.0/tests/test_rwlock.py", line 37, in __init__ t = asyncio.Task(task()) task: .task() running at /build/reproducible-path/aiorwlock-1.0.0/tests/test_rwlock.py:30> wait_for= created at /build/reproducible-path/aiorwlock-1.0.0/tests/test_rwlock.py:37> ERROR asyncio:base_events.py:1821 Task was destroyed but it is pending! source_traceback: Object created at (most recent call last): File "", line 198, in _run_module_as_main File "", line 88, in _run_code File "/usr/lib/python3/dist-packages/pytest/__main__.py", line 7, in raise SystemExit(pytest.console_main()) File "/usr/lib/python3/dist-packages/_pytest/config/__init__.py", line 206, in console_main code = main() File "/usr/lib/python3/dist-packages/_pytest/config/__init__.py", line 178, in main ret: Union[ExitCode, int] = config.hook.pytest_cmdline_main( File "/usr/lib/python3/dist-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3/dist-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3/dist-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3/dist-packages/_pytest/main.py", line 332, in pytest_cmdline_main return wrap_session(config, _main) File "/usr/lib/python3/dist-packages/_pytest/main.py", line 285, in wrap_session session.exitstatus = doit(config, session) or 0 File "/usr/lib/python3/dist-packages/_pytest/main.py", line 339, in _main config.hook.pytest_runtestloop(session=session) File "/usr/lib/python3/dist-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3/dist-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3/dist-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3/dist-packages/_pytest/main.py", line 364, in pytest_runtestloop item.config.hook.pytest_runtest_protocol(item=item, nextitem=nextitem) File "/usr/lib/python3/dist-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3/dist-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3/dist-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3/dist-packages/_pytest/runner.py", line 116, in pytest_runtest_protocol runtestprotocol(item, nextitem=nextitem) File "/usr/lib/python3/dist-packages/_pytest/runner.py", line 135, in runtestprotocol reports.append(call_and_report(item, "call", log)) File "/usr/lib/python3/dist-packages/_pytest/runner.py", line 240, in call_and_report call = CallInfo.from_call( File "/usr/lib/python3/dist-packages/_pytest/runner.py", line 341, in from_call result: Optional[TResult] = func() File "/usr/lib/python3/dist-packages/_pytest/runner.py", line 241, in lambda: runtest_hook(item=item, **kwds), when=when, reraise=reraise File "/usr/lib/python3/dist-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3/dist-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3/dist-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3/dist-packages/_pytest/runner.py", line 173, in pytest_runtest_call item.runtest() File "/usr/lib/python3/dist-packages/_pytest/python.py", line 1632, in runtest self.ihook.pytest_pyfunc_call(pyfuncitem=self) File "/usr/lib/python3/dist-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3/dist-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3/dist-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3/dist-packages/_pytest/python.py", line 162, in pytest_pyfunc_call result = testfunction(**testargs) File "/usr/lib/python3/dist-packages/pytest_asyncio/plugin.py", line 478, in inner _loop.run_until_complete(task) File "/usr/lib/python3.12/asyncio/base_events.py", line 674, in run_until_complete self.run_forever() File "/usr/lib/python3.12/asyncio/base_events.py", line 641, in run_forever self._run_once() File "/usr/lib/python3.12/asyncio/base_events.py", line 1979, in _run_once handle._run() File "/usr/lib/python3.12/asyncio/events.py", line 88, in _run self._context.run(self._callback, *self._args) File "/build/reproducible-path/aiorwlock-1.0.0/tests/test_rwlock.py", line 295, in test_readers_writers b2 = Bunch(w, N) File "/build/reproducible-path/aiorwlock-1.0.0/tests/test_rwlock.py", line 37, in __init__ t = asyncio.Task(task()) task: .task() running at /build/reproducible-path/aiorwlock-1.0.0/tests/test_rwlock.py:30> wait_for= created at /build/reproducible-path/aiorwlock-1.0.0/tests/test_rwlock.py:37> _ ERROR at teardown of test_raise_error_on_with_for_writer_lock[debug:true-slow-pyloop] _ cls = func = . at 0xf654ce38> when = 'teardown' reraise = (, ) @classmethod def from_call( cls, func: Callable[[], TResult], when: Literal["collect", "setup", "call", "teardown"], reraise: Optional[ Union[Type[BaseException], Tuple[Type[BaseException], ...]] ] = None, ) -> "CallInfo[TResult]": """Call func, wrapping the result in a CallInfo. :param func: The function to call. Called without arguments. :param when: The phase in which the function is called. :param reraise: Exception or exceptions that shall propagate if raised by the function, instead of being wrapped in the CallInfo. """ excinfo = None start = timing.time() precise_start = timing.perf_counter() try: > result: Optional[TResult] = func() /usr/lib/python3/dist-packages/_pytest/runner.py:341: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/dist-packages/_pytest/runner.py:241: in lambda: runtest_hook(item=item, **kwds), when=when, reraise=reraise /usr/lib/python3/dist-packages/pluggy/_hooks.py:513: in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) /usr/lib/python3/dist-packages/pluggy/_manager.py:120: in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) /usr/lib/python3/dist-packages/_pytest/threadexception.py:92: in pytest_runtest_teardown yield from thread_exception_runtest_hook() /usr/lib/python3/dist-packages/_pytest/threadexception.py:63: in thread_exception_runtest_hook yield /usr/lib/python3/dist-packages/_pytest/unraisableexception.py:95: in pytest_runtest_teardown yield from unraisable_exception_runtest_hook() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ def unraisable_exception_runtest_hook() -> Generator[None, None, None]: with catch_unraisable_exception() as cm: try: yield finally: if cm.unraisable: if cm.unraisable.err_msg is not None: err_msg = cm.unraisable.err_msg else: err_msg = "Exception ignored in" msg = f"{err_msg}: {cm.unraisable.object!r}\n\n" msg += "".join( traceback.format_exception( cm.unraisable.exc_type, cm.unraisable.exc_value, cm.unraisable.exc_traceback, ) ) > warnings.warn(pytest.PytestUnraisableExceptionWarning(msg)) E pytest.PytestUnraisableExceptionWarning: Exception ignored in: E E Traceback (most recent call last): E File "/build/reproducible-path/aiorwlock-1.0.0/tests/conftest.py", line 44, in event_loop E gc.collect() E ResourceWarning: unclosed /usr/lib/python3/dist-packages/_pytest/unraisableexception.py:80: PytestUnraisableExceptionWarning ________ ERROR at teardown of test_read_locked[debug:true-slow-pyloop] _________ cls = func = . at 0xf64eb7a8> when = 'teardown' reraise = (, ) @classmethod def from_call( cls, func: Callable[[], TResult], when: Literal["collect", "setup", "call", "teardown"], reraise: Optional[ Union[Type[BaseException], Tuple[Type[BaseException], ...]] ] = None, ) -> "CallInfo[TResult]": """Call func, wrapping the result in a CallInfo. :param func: The function to call. Called without arguments. :param when: The phase in which the function is called. :param reraise: Exception or exceptions that shall propagate if raised by the function, instead of being wrapped in the CallInfo. """ excinfo = None start = timing.time() precise_start = timing.perf_counter() try: > result: Optional[TResult] = func() /usr/lib/python3/dist-packages/_pytest/runner.py:341: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/dist-packages/_pytest/runner.py:241: in lambda: runtest_hook(item=item, **kwds), when=when, reraise=reraise /usr/lib/python3/dist-packages/pluggy/_hooks.py:513: in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) /usr/lib/python3/dist-packages/pluggy/_manager.py:120: in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) /usr/lib/python3/dist-packages/_pytest/threadexception.py:92: in pytest_runtest_teardown yield from thread_exception_runtest_hook() /usr/lib/python3/dist-packages/_pytest/threadexception.py:63: in thread_exception_runtest_hook yield /usr/lib/python3/dist-packages/_pytest/unraisableexception.py:95: in pytest_runtest_teardown yield from unraisable_exception_runtest_hook() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ def unraisable_exception_runtest_hook() -> Generator[None, None, None]: with catch_unraisable_exception() as cm: try: yield finally: if cm.unraisable: if cm.unraisable.err_msg is not None: err_msg = cm.unraisable.err_msg else: err_msg = "Exception ignored in" msg = f"{err_msg}: {cm.unraisable.object!r}\n\n" msg += "".join( traceback.format_exception( cm.unraisable.exc_type, cm.unraisable.exc_value, cm.unraisable.exc_traceback, ) ) > warnings.warn(pytest.PytestUnraisableExceptionWarning(msg)) E pytest.PytestUnraisableExceptionWarning: Exception ignored in: E E Traceback (most recent call last): E File "/build/reproducible-path/aiorwlock-1.0.0/tests/conftest.py", line 44, in event_loop E gc.collect() E ResourceWarning: unclosed /usr/lib/python3/dist-packages/_pytest/unraisableexception.py:80: PytestUnraisableExceptionWarning ________ ERROR at teardown of test_write_locked[debug:true-slow-pyloop] ________ cls = func = . at 0xf64ebe88> when = 'teardown' reraise = (, ) @classmethod def from_call( cls, func: Callable[[], TResult], when: Literal["collect", "setup", "call", "teardown"], reraise: Optional[ Union[Type[BaseException], Tuple[Type[BaseException], ...]] ] = None, ) -> "CallInfo[TResult]": """Call func, wrapping the result in a CallInfo. :param func: The function to call. Called without arguments. :param when: The phase in which the function is called. :param reraise: Exception or exceptions that shall propagate if raised by the function, instead of being wrapped in the CallInfo. """ excinfo = None start = timing.time() precise_start = timing.perf_counter() try: > result: Optional[TResult] = func() /usr/lib/python3/dist-packages/_pytest/runner.py:341: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/dist-packages/_pytest/runner.py:241: in lambda: runtest_hook(item=item, **kwds), when=when, reraise=reraise /usr/lib/python3/dist-packages/pluggy/_hooks.py:513: in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) /usr/lib/python3/dist-packages/pluggy/_manager.py:120: in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) /usr/lib/python3/dist-packages/_pytest/threadexception.py:92: in pytest_runtest_teardown yield from thread_exception_runtest_hook() /usr/lib/python3/dist-packages/_pytest/threadexception.py:63: in thread_exception_runtest_hook yield /usr/lib/python3/dist-packages/_pytest/unraisableexception.py:95: in pytest_runtest_teardown yield from unraisable_exception_runtest_hook() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ def unraisable_exception_runtest_hook() -> Generator[None, None, None]: with catch_unraisable_exception() as cm: try: yield finally: if cm.unraisable: if cm.unraisable.err_msg is not None: err_msg = cm.unraisable.err_msg else: err_msg = "Exception ignored in" msg = f"{err_msg}: {cm.unraisable.object!r}\n\n" msg += "".join( traceback.format_exception( cm.unraisable.exc_type, cm.unraisable.exc_value, cm.unraisable.exc_traceback, ) ) > warnings.warn(pytest.PytestUnraisableExceptionWarning(msg)) E pytest.PytestUnraisableExceptionWarning: Exception ignored in: E E Traceback (most recent call last): E File "/build/reproducible-path/aiorwlock-1.0.0/tests/conftest.py", line 44, in event_loop E gc.collect() E ResourceWarning: unclosed /usr/lib/python3/dist-packages/_pytest/unraisableexception.py:80: PytestUnraisableExceptionWarning _ ERROR at teardown of test_write_read_lock_multiple_tasks[debug:true-slow-pyloop] _ cls = func = . at 0xf64ebac8> when = 'teardown' reraise = (, ) @classmethod def from_call( cls, func: Callable[[], TResult], when: Literal["collect", "setup", "call", "teardown"], reraise: Optional[ Union[Type[BaseException], Tuple[Type[BaseException], ...]] ] = None, ) -> "CallInfo[TResult]": """Call func, wrapping the result in a CallInfo. :param func: The function to call. Called without arguments. :param when: The phase in which the function is called. :param reraise: Exception or exceptions that shall propagate if raised by the function, instead of being wrapped in the CallInfo. """ excinfo = None start = timing.time() precise_start = timing.perf_counter() try: > result: Optional[TResult] = func() /usr/lib/python3/dist-packages/_pytest/runner.py:341: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/dist-packages/_pytest/runner.py:241: in lambda: runtest_hook(item=item, **kwds), when=when, reraise=reraise /usr/lib/python3/dist-packages/pluggy/_hooks.py:513: in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) /usr/lib/python3/dist-packages/pluggy/_manager.py:120: in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) /usr/lib/python3/dist-packages/_pytest/threadexception.py:92: in pytest_runtest_teardown yield from thread_exception_runtest_hook() /usr/lib/python3/dist-packages/_pytest/threadexception.py:63: in thread_exception_runtest_hook yield /usr/lib/python3/dist-packages/_pytest/unraisableexception.py:95: in pytest_runtest_teardown yield from unraisable_exception_runtest_hook() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ def unraisable_exception_runtest_hook() -> Generator[None, None, None]: with catch_unraisable_exception() as cm: try: yield finally: if cm.unraisable: if cm.unraisable.err_msg is not None: err_msg = cm.unraisable.err_msg else: err_msg = "Exception ignored in" msg = f"{err_msg}: {cm.unraisable.object!r}\n\n" msg += "".join( traceback.format_exception( cm.unraisable.exc_type, cm.unraisable.exc_value, cm.unraisable.exc_traceback, ) ) > warnings.warn(pytest.PytestUnraisableExceptionWarning(msg)) E pytest.PytestUnraisableExceptionWarning: Exception ignored in: E E Traceback (most recent call last): E File "/build/reproducible-path/aiorwlock-1.0.0/tests/conftest.py", line 44, in event_loop E gc.collect() E ResourceWarning: unclosed /usr/lib/python3/dist-packages/_pytest/unraisableexception.py:80: PytestUnraisableExceptionWarning ____ ERROR at teardown of test_read_context_manager[debug:true-slow-pyloop] ____ cls = func = . at 0xf60657f8> when = 'teardown' reraise = (, ) @classmethod def from_call( cls, func: Callable[[], TResult], when: Literal["collect", "setup", "call", "teardown"], reraise: Optional[ Union[Type[BaseException], Tuple[Type[BaseException], ...]] ] = None, ) -> "CallInfo[TResult]": """Call func, wrapping the result in a CallInfo. :param func: The function to call. Called without arguments. :param when: The phase in which the function is called. :param reraise: Exception or exceptions that shall propagate if raised by the function, instead of being wrapped in the CallInfo. """ excinfo = None start = timing.time() precise_start = timing.perf_counter() try: > result: Optional[TResult] = func() /usr/lib/python3/dist-packages/_pytest/runner.py:341: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/dist-packages/_pytest/runner.py:241: in lambda: runtest_hook(item=item, **kwds), when=when, reraise=reraise /usr/lib/python3/dist-packages/pluggy/_hooks.py:513: in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) /usr/lib/python3/dist-packages/pluggy/_manager.py:120: in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) /usr/lib/python3/dist-packages/_pytest/threadexception.py:92: in pytest_runtest_teardown yield from thread_exception_runtest_hook() /usr/lib/python3/dist-packages/_pytest/threadexception.py:63: in thread_exception_runtest_hook yield /usr/lib/python3/dist-packages/_pytest/unraisableexception.py:95: in pytest_runtest_teardown yield from unraisable_exception_runtest_hook() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ def unraisable_exception_runtest_hook() -> Generator[None, None, None]: with catch_unraisable_exception() as cm: try: yield finally: if cm.unraisable: if cm.unraisable.err_msg is not None: err_msg = cm.unraisable.err_msg else: err_msg = "Exception ignored in" msg = f"{err_msg}: {cm.unraisable.object!r}\n\n" msg += "".join( traceback.format_exception( cm.unraisable.exc_type, cm.unraisable.exc_value, cm.unraisable.exc_traceback, ) ) > warnings.warn(pytest.PytestUnraisableExceptionWarning(msg)) E pytest.PytestUnraisableExceptionWarning: Exception ignored in: E E Traceback (most recent call last): E File "/build/reproducible-path/aiorwlock-1.0.0/tests/conftest.py", line 44, in event_loop E gc.collect() E ResourceWarning: unclosed /usr/lib/python3/dist-packages/_pytest/unraisableexception.py:80: PytestUnraisableExceptionWarning ___ ERROR at teardown of test_write_context_manager[debug:true-slow-pyloop] ____ cls = func = . at 0xf6065c58> when = 'teardown' reraise = (, ) @classmethod def from_call( cls, func: Callable[[], TResult], when: Literal["collect", "setup", "call", "teardown"], reraise: Optional[ Union[Type[BaseException], Tuple[Type[BaseException], ...]] ] = None, ) -> "CallInfo[TResult]": """Call func, wrapping the result in a CallInfo. :param func: The function to call. Called without arguments. :param when: The phase in which the function is called. :param reraise: Exception or exceptions that shall propagate if raised by the function, instead of being wrapped in the CallInfo. """ excinfo = None start = timing.time() precise_start = timing.perf_counter() try: > result: Optional[TResult] = func() /usr/lib/python3/dist-packages/_pytest/runner.py:341: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/dist-packages/_pytest/runner.py:241: in lambda: runtest_hook(item=item, **kwds), when=when, reraise=reraise /usr/lib/python3/dist-packages/pluggy/_hooks.py:513: in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) /usr/lib/python3/dist-packages/pluggy/_manager.py:120: in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) /usr/lib/python3/dist-packages/_pytest/threadexception.py:92: in pytest_runtest_teardown yield from thread_exception_runtest_hook() /usr/lib/python3/dist-packages/_pytest/threadexception.py:63: in thread_exception_runtest_hook yield /usr/lib/python3/dist-packages/_pytest/unraisableexception.py:95: in pytest_runtest_teardown yield from unraisable_exception_runtest_hook() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ def unraisable_exception_runtest_hook() -> Generator[None, None, None]: with catch_unraisable_exception() as cm: try: yield finally: if cm.unraisable: if cm.unraisable.err_msg is not None: err_msg = cm.unraisable.err_msg else: err_msg = "Exception ignored in" msg = f"{err_msg}: {cm.unraisable.object!r}\n\n" msg += "".join( traceback.format_exception( cm.unraisable.exc_type, cm.unraisable.exc_value, cm.unraisable.exc_traceback, ) ) > warnings.warn(pytest.PytestUnraisableExceptionWarning(msg)) E pytest.PytestUnraisableExceptionWarning: Exception ignored in: E E Traceback (most recent call last): E File "/build/reproducible-path/aiorwlock-1.0.0/tests/conftest.py", line 44, in event_loop E gc.collect() E ResourceWarning: unclosed /usr/lib/python3/dist-packages/_pytest/unraisableexception.py:80: PytestUnraisableExceptionWarning ______ ERROR at teardown of test_await_read_lock[debug:true-slow-pyloop] _______ cls = func = . at 0xf6065ac8> when = 'teardown' reraise = (, ) @classmethod def from_call( cls, func: Callable[[], TResult], when: Literal["collect", "setup", "call", "teardown"], reraise: Optional[ Union[Type[BaseException], Tuple[Type[BaseException], ...]] ] = None, ) -> "CallInfo[TResult]": """Call func, wrapping the result in a CallInfo. :param func: The function to call. Called without arguments. :param when: The phase in which the function is called. :param reraise: Exception or exceptions that shall propagate if raised by the function, instead of being wrapped in the CallInfo. """ excinfo = None start = timing.time() precise_start = timing.perf_counter() try: > result: Optional[TResult] = func() /usr/lib/python3/dist-packages/_pytest/runner.py:341: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/dist-packages/_pytest/runner.py:241: in lambda: runtest_hook(item=item, **kwds), when=when, reraise=reraise /usr/lib/python3/dist-packages/pluggy/_hooks.py:513: in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) /usr/lib/python3/dist-packages/pluggy/_manager.py:120: in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) /usr/lib/python3/dist-packages/_pytest/threadexception.py:92: in pytest_runtest_teardown yield from thread_exception_runtest_hook() /usr/lib/python3/dist-packages/_pytest/threadexception.py:63: in thread_exception_runtest_hook yield /usr/lib/python3/dist-packages/_pytest/unraisableexception.py:95: in pytest_runtest_teardown yield from unraisable_exception_runtest_hook() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ def unraisable_exception_runtest_hook() -> Generator[None, None, None]: with catch_unraisable_exception() as cm: try: yield finally: if cm.unraisable: if cm.unraisable.err_msg is not None: err_msg = cm.unraisable.err_msg else: err_msg = "Exception ignored in" msg = f"{err_msg}: {cm.unraisable.object!r}\n\n" msg += "".join( traceback.format_exception( cm.unraisable.exc_type, cm.unraisable.exc_value, cm.unraisable.exc_traceback, ) ) > warnings.warn(pytest.PytestUnraisableExceptionWarning(msg)) E pytest.PytestUnraisableExceptionWarning: Exception ignored in: E E Traceback (most recent call last): E File "/build/reproducible-path/aiorwlock-1.0.0/tests/conftest.py", line 44, in event_loop E gc.collect() E ResourceWarning: unclosed /usr/lib/python3/dist-packages/_pytest/unraisableexception.py:80: PytestUnraisableExceptionWarning ______ ERROR at teardown of test_await_write_lock[debug:true-slow-pyloop] ______ cls = func = . at 0xf60667f8> when = 'teardown' reraise = (, ) @classmethod def from_call( cls, func: Callable[[], TResult], when: Literal["collect", "setup", "call", "teardown"], reraise: Optional[ Union[Type[BaseException], Tuple[Type[BaseException], ...]] ] = None, ) -> "CallInfo[TResult]": """Call func, wrapping the result in a CallInfo. :param func: The function to call. Called without arguments. :param when: The phase in which the function is called. :param reraise: Exception or exceptions that shall propagate if raised by the function, instead of being wrapped in the CallInfo. """ excinfo = None start = timing.time() precise_start = timing.perf_counter() try: > result: Optional[TResult] = func() /usr/lib/python3/dist-packages/_pytest/runner.py:341: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/dist-packages/_pytest/runner.py:241: in lambda: runtest_hook(item=item, **kwds), when=when, reraise=reraise /usr/lib/python3/dist-packages/pluggy/_hooks.py:513: in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) /usr/lib/python3/dist-packages/pluggy/_manager.py:120: in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) /usr/lib/python3/dist-packages/_pytest/threadexception.py:92: in pytest_runtest_teardown yield from thread_exception_runtest_hook() /usr/lib/python3/dist-packages/_pytest/threadexception.py:63: in thread_exception_runtest_hook yield /usr/lib/python3/dist-packages/_pytest/unraisableexception.py:95: in pytest_runtest_teardown yield from unraisable_exception_runtest_hook() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ def unraisable_exception_runtest_hook() -> Generator[None, None, None]: with catch_unraisable_exception() as cm: try: yield finally: if cm.unraisable: if cm.unraisable.err_msg is not None: err_msg = cm.unraisable.err_msg else: err_msg = "Exception ignored in" msg = f"{err_msg}: {cm.unraisable.object!r}\n\n" msg += "".join( traceback.format_exception( cm.unraisable.exc_type, cm.unraisable.exc_value, cm.unraisable.exc_traceback, ) ) > warnings.warn(pytest.PytestUnraisableExceptionWarning(msg)) E pytest.PytestUnraisableExceptionWarning: Exception ignored in: E E Traceback (most recent call last): E File "/build/reproducible-path/aiorwlock-1.0.0/tests/conftest.py", line 44, in event_loop E gc.collect() E ResourceWarning: unclosed /usr/lib/python3/dist-packages/_pytest/unraisableexception.py:80: PytestUnraisableExceptionWarning __________ ERROR at teardown of test_current_task[debug:true-uvloop] ___________ cls = func = . at 0xf606bbb8> when = 'teardown' reraise = (, ) @classmethod def from_call( cls, func: Callable[[], TResult], when: Literal["collect", "setup", "call", "teardown"], reraise: Optional[ Union[Type[BaseException], Tuple[Type[BaseException], ...]] ] = None, ) -> "CallInfo[TResult]": """Call func, wrapping the result in a CallInfo. :param func: The function to call. Called without arguments. :param when: The phase in which the function is called. :param reraise: Exception or exceptions that shall propagate if raised by the function, instead of being wrapped in the CallInfo. """ excinfo = None start = timing.time() precise_start = timing.perf_counter() try: > result: Optional[TResult] = func() /usr/lib/python3/dist-packages/_pytest/runner.py:341: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/dist-packages/_pytest/runner.py:241: in lambda: runtest_hook(item=item, **kwds), when=when, reraise=reraise /usr/lib/python3/dist-packages/pluggy/_hooks.py:513: in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) /usr/lib/python3/dist-packages/pluggy/_manager.py:120: in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) /usr/lib/python3/dist-packages/_pytest/threadexception.py:92: in pytest_runtest_teardown yield from thread_exception_runtest_hook() /usr/lib/python3/dist-packages/_pytest/threadexception.py:63: in thread_exception_runtest_hook yield /usr/lib/python3/dist-packages/_pytest/unraisableexception.py:95: in pytest_runtest_teardown yield from unraisable_exception_runtest_hook() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ def unraisable_exception_runtest_hook() -> Generator[None, None, None]: with catch_unraisable_exception() as cm: try: yield finally: if cm.unraisable: if cm.unraisable.err_msg is not None: err_msg = cm.unraisable.err_msg else: err_msg = "Exception ignored in" msg = f"{err_msg}: {cm.unraisable.object!r}\n\n" msg += "".join( traceback.format_exception( cm.unraisable.exc_type, cm.unraisable.exc_value, cm.unraisable.exc_traceback, ) ) > warnings.warn(pytest.PytestUnraisableExceptionWarning(msg)) E pytest.PytestUnraisableExceptionWarning: Exception ignored in: E E Traceback (most recent call last): E File "/build/reproducible-path/aiorwlock-1.0.0/tests/conftest.py", line 44, in event_loop E gc.collect() E ResourceWarning: unclosed /usr/lib/python3/dist-packages/_pytest/unraisableexception.py:80: PytestUnraisableExceptionWarning ---------------------------- Captured log teardown ----------------------------- ERROR asyncio:conftest.py:44 Task was destroyed but it is pending! source_traceback: Object created at (most recent call last): File "", line 198, in _run_module_as_main File "", line 88, in _run_code File "/usr/lib/python3/dist-packages/pytest/__main__.py", line 7, in raise SystemExit(pytest.console_main()) File "/usr/lib/python3/dist-packages/_pytest/config/__init__.py", line 206, in console_main code = main() File "/usr/lib/python3/dist-packages/_pytest/config/__init__.py", line 178, in main ret: Union[ExitCode, int] = config.hook.pytest_cmdline_main( File "/usr/lib/python3/dist-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3/dist-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3/dist-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3/dist-packages/_pytest/main.py", line 332, in pytest_cmdline_main return wrap_session(config, _main) File "/usr/lib/python3/dist-packages/_pytest/main.py", line 285, in wrap_session session.exitstatus = doit(config, session) or 0 File "/usr/lib/python3/dist-packages/_pytest/main.py", line 339, in _main config.hook.pytest_runtestloop(session=session) File "/usr/lib/python3/dist-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3/dist-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3/dist-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3/dist-packages/_pytest/main.py", line 364, in pytest_runtestloop item.config.hook.pytest_runtest_protocol(item=item, nextitem=nextitem) File "/usr/lib/python3/dist-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3/dist-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3/dist-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3/dist-packages/_pytest/runner.py", line 116, in pytest_runtest_protocol runtestprotocol(item, nextitem=nextitem) File "/usr/lib/python3/dist-packages/_pytest/runner.py", line 135, in runtestprotocol reports.append(call_and_report(item, "call", log)) File "/usr/lib/python3/dist-packages/_pytest/runner.py", line 240, in call_and_report call = CallInfo.from_call( File "/usr/lib/python3/dist-packages/_pytest/runner.py", line 341, in from_call result: Optional[TResult] = func() File "/usr/lib/python3/dist-packages/_pytest/runner.py", line 241, in lambda: runtest_hook(item=item, **kwds), when=when, reraise=reraise File "/usr/lib/python3/dist-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3/dist-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3/dist-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3/dist-packages/_pytest/runner.py", line 173, in pytest_runtest_call item.runtest() File "/usr/lib/python3/dist-packages/_pytest/python.py", line 1632, in runtest self.ihook.pytest_pyfunc_call(pyfuncitem=self) File "/usr/lib/python3/dist-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3/dist-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3/dist-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3/dist-packages/_pytest/python.py", line 162, in pytest_pyfunc_call result = testfunction(**testargs) File "/usr/lib/python3/dist-packages/pytest_asyncio/plugin.py", line 478, in inner _loop.run_until_complete(task) File "/build/reproducible-path/aiorwlock-1.0.0/tests/test_rwlock.py", line 440, in test_writer_success_with_statement b2 = Bunch(w, 1) File "/build/reproducible-path/aiorwlock-1.0.0/tests/test_rwlock.py", line 37, in __init__ t = asyncio.Task(task()) task: .task() running at /build/reproducible-path/aiorwlock-1.0.0/tests/test_rwlock.py:30> wait_for= created at /build/reproducible-path/aiorwlock-1.0.0/tests/test_rwlock.py:37> __________ ERROR at teardown of test_current_task[debug:true-pyloop] ___________ cls = func = . at 0xf643f2f8> when = 'teardown' reraise = (, ) @classmethod def from_call( cls, func: Callable[[], TResult], when: Literal["collect", "setup", "call", "teardown"], reraise: Optional[ Union[Type[BaseException], Tuple[Type[BaseException], ...]] ] = None, ) -> "CallInfo[TResult]": """Call func, wrapping the result in a CallInfo. :param func: The function to call. Called without arguments. :param when: The phase in which the function is called. :param reraise: Exception or exceptions that shall propagate if raised by the function, instead of being wrapped in the CallInfo. """ excinfo = None start = timing.time() precise_start = timing.perf_counter() try: > result: Optional[TResult] = func() /usr/lib/python3/dist-packages/_pytest/runner.py:341: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/dist-packages/_pytest/runner.py:241: in lambda: runtest_hook(item=item, **kwds), when=when, reraise=reraise /usr/lib/python3/dist-packages/pluggy/_hooks.py:513: in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) /usr/lib/python3/dist-packages/pluggy/_manager.py:120: in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) /usr/lib/python3/dist-packages/_pytest/threadexception.py:92: in pytest_runtest_teardown yield from thread_exception_runtest_hook() /usr/lib/python3/dist-packages/_pytest/threadexception.py:63: in thread_exception_runtest_hook yield /usr/lib/python3/dist-packages/_pytest/unraisableexception.py:95: in pytest_runtest_teardown yield from unraisable_exception_runtest_hook() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ def unraisable_exception_runtest_hook() -> Generator[None, None, None]: with catch_unraisable_exception() as cm: try: yield finally: if cm.unraisable: if cm.unraisable.err_msg is not None: err_msg = cm.unraisable.err_msg else: err_msg = "Exception ignored in" msg = f"{err_msg}: {cm.unraisable.object!r}\n\n" msg += "".join( traceback.format_exception( cm.unraisable.exc_type, cm.unraisable.exc_value, cm.unraisable.exc_traceback, ) ) > warnings.warn(pytest.PytestUnraisableExceptionWarning(msg)) E pytest.PytestUnraisableExceptionWarning: Exception ignored in: E E Traceback (most recent call last): E File "/build/reproducible-path/aiorwlock-1.0.0/tests/conftest.py", line 44, in event_loop E gc.collect() E ResourceWarning: unclosed /usr/lib/python3/dist-packages/_pytest/unraisableexception.py:80: PytestUnraisableExceptionWarning ---------------------------- Captured log teardown ----------------------------- ERROR asyncio:base_events.py:1821 Task was destroyed but it is pending! source_traceback: Object created at (most recent call last): File "", line 198, in _run_module_as_main File "", line 88, in _run_code File "/usr/lib/python3/dist-packages/pytest/__main__.py", line 7, in raise SystemExit(pytest.console_main()) File "/usr/lib/python3/dist-packages/_pytest/config/__init__.py", line 206, in console_main code = main() File "/usr/lib/python3/dist-packages/_pytest/config/__init__.py", line 178, in main ret: Union[ExitCode, int] = config.hook.pytest_cmdline_main( File "/usr/lib/python3/dist-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3/dist-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3/dist-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3/dist-packages/_pytest/main.py", line 332, in pytest_cmdline_main return wrap_session(config, _main) File "/usr/lib/python3/dist-packages/_pytest/main.py", line 285, in wrap_session session.exitstatus = doit(config, session) or 0 File "/usr/lib/python3/dist-packages/_pytest/main.py", line 339, in _main config.hook.pytest_runtestloop(session=session) File "/usr/lib/python3/dist-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3/dist-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3/dist-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3/dist-packages/_pytest/main.py", line 364, in pytest_runtestloop item.config.hook.pytest_runtest_protocol(item=item, nextitem=nextitem) File "/usr/lib/python3/dist-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3/dist-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3/dist-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3/dist-packages/_pytest/runner.py", line 116, in pytest_runtest_protocol runtestprotocol(item, nextitem=nextitem) File "/usr/lib/python3/dist-packages/_pytest/runner.py", line 135, in runtestprotocol reports.append(call_and_report(item, "call", log)) File "/usr/lib/python3/dist-packages/_pytest/runner.py", line 240, in call_and_report call = CallInfo.from_call( File "/usr/lib/python3/dist-packages/_pytest/runner.py", line 341, in from_call result: Optional[TResult] = func() File "/usr/lib/python3/dist-packages/_pytest/runner.py", line 241, in lambda: runtest_hook(item=item, **kwds), when=when, reraise=reraise File "/usr/lib/python3/dist-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3/dist-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3/dist-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3/dist-packages/_pytest/runner.py", line 173, in pytest_runtest_call item.runtest() File "/usr/lib/python3/dist-packages/_pytest/python.py", line 1632, in runtest self.ihook.pytest_pyfunc_call(pyfuncitem=self) File "/usr/lib/python3/dist-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3/dist-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3/dist-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3/dist-packages/_pytest/python.py", line 162, in pytest_pyfunc_call result = testfunction(**testargs) File "/usr/lib/python3/dist-packages/pytest_asyncio/plugin.py", line 478, in inner _loop.run_until_complete(task) File "/usr/lib/python3.12/asyncio/base_events.py", line 674, in run_until_complete self.run_forever() File "/usr/lib/python3.12/asyncio/base_events.py", line 641, in run_forever self._run_once() File "/usr/lib/python3.12/asyncio/base_events.py", line 1979, in _run_once handle._run() File "/usr/lib/python3.12/asyncio/events.py", line 88, in _run self._context.run(self._callback, *self._args) File "/build/reproducible-path/aiorwlock-1.0.0/tests/test_rwlock.py", line 440, in test_writer_success_with_statement b2 = Bunch(w, 1) File "/build/reproducible-path/aiorwlock-1.0.0/tests/test_rwlock.py", line 37, in __init__ t = asyncio.Task(task()) task: .task() running at /build/reproducible-path/aiorwlock-1.0.0/tests/test_rwlock.py:30> wait_for= created at /build/reproducible-path/aiorwlock-1.0.0/tests/test_rwlock.py:37> _ ERROR at teardown of test_ctor_deprecated_implicit_not_running[debug:false-pyloop] _ cls = func = . at 0xf643f2f8> when = 'teardown' reraise = (, ) @classmethod def from_call( cls, func: Callable[[], TResult], when: Literal["collect", "setup", "call", "teardown"], reraise: Optional[ Union[Type[BaseException], Tuple[Type[BaseException], ...]] ] = None, ) -> "CallInfo[TResult]": """Call func, wrapping the result in a CallInfo. :param func: The function to call. Called without arguments. :param when: The phase in which the function is called. :param reraise: Exception or exceptions that shall propagate if raised by the function, instead of being wrapped in the CallInfo. """ excinfo = None start = timing.time() precise_start = timing.perf_counter() try: > result: Optional[TResult] = func() /usr/lib/python3/dist-packages/_pytest/runner.py:341: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/dist-packages/_pytest/runner.py:241: in lambda: runtest_hook(item=item, **kwds), when=when, reraise=reraise /usr/lib/python3/dist-packages/pluggy/_hooks.py:513: in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) /usr/lib/python3/dist-packages/pluggy/_manager.py:120: in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) /usr/lib/python3/dist-packages/_pytest/threadexception.py:92: in pytest_runtest_teardown yield from thread_exception_runtest_hook() /usr/lib/python3/dist-packages/_pytest/threadexception.py:63: in thread_exception_runtest_hook yield /usr/lib/python3/dist-packages/_pytest/unraisableexception.py:95: in pytest_runtest_teardown yield from unraisable_exception_runtest_hook() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ def unraisable_exception_runtest_hook() -> Generator[None, None, None]: with catch_unraisable_exception() as cm: try: yield finally: if cm.unraisable: if cm.unraisable.err_msg is not None: err_msg = cm.unraisable.err_msg else: err_msg = "Exception ignored in" msg = f"{err_msg}: {cm.unraisable.object!r}\n\n" msg += "".join( traceback.format_exception( cm.unraisable.exc_type, cm.unraisable.exc_value, cm.unraisable.exc_traceback, ) ) > warnings.warn(pytest.PytestUnraisableExceptionWarning(msg)) E pytest.PytestUnraisableExceptionWarning: Exception ignored in: E E Traceback (most recent call last): E File "/build/reproducible-path/aiorwlock-1.0.0/tests/conftest.py", line 44, in event_loop E gc.collect() E ResourceWarning: unclosed /usr/lib/python3/dist-packages/_pytest/unraisableexception.py:80: PytestUnraisableExceptionWarning _ ERROR at teardown of test_ctor_deprecated_explicit_non_running[debug:false-pyloop] _ cls = func = . at 0xf6443488> when = 'teardown' reraise = (, ) @classmethod def from_call( cls, func: Callable[[], TResult], when: Literal["collect", "setup", "call", "teardown"], reraise: Optional[ Union[Type[BaseException], Tuple[Type[BaseException], ...]] ] = None, ) -> "CallInfo[TResult]": """Call func, wrapping the result in a CallInfo. :param func: The function to call. Called without arguments. :param when: The phase in which the function is called. :param reraise: Exception or exceptions that shall propagate if raised by the function, instead of being wrapped in the CallInfo. """ excinfo = None start = timing.time() precise_start = timing.perf_counter() try: > result: Optional[TResult] = func() /usr/lib/python3/dist-packages/_pytest/runner.py:341: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/dist-packages/_pytest/runner.py:241: in lambda: runtest_hook(item=item, **kwds), when=when, reraise=reraise /usr/lib/python3/dist-packages/pluggy/_hooks.py:513: in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) /usr/lib/python3/dist-packages/pluggy/_manager.py:120: in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) /usr/lib/python3/dist-packages/_pytest/threadexception.py:92: in pytest_runtest_teardown yield from thread_exception_runtest_hook() /usr/lib/python3/dist-packages/_pytest/threadexception.py:63: in thread_exception_runtest_hook yield /usr/lib/python3/dist-packages/_pytest/unraisableexception.py:95: in pytest_runtest_teardown yield from unraisable_exception_runtest_hook() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ def unraisable_exception_runtest_hook() -> Generator[None, None, None]: with catch_unraisable_exception() as cm: try: yield finally: if cm.unraisable: if cm.unraisable.err_msg is not None: err_msg = cm.unraisable.err_msg else: err_msg = "Exception ignored in" msg = f"{err_msg}: {cm.unraisable.object!r}\n\n" msg += "".join( traceback.format_exception( cm.unraisable.exc_type, cm.unraisable.exc_value, cm.unraisable.exc_traceback, ) ) > warnings.warn(pytest.PytestUnraisableExceptionWarning(msg)) E pytest.PytestUnraisableExceptionWarning: Exception ignored in: E E Traceback (most recent call last): E File "/build/reproducible-path/aiorwlock-1.0.0/tests/conftest.py", line 44, in event_loop E gc.collect() E ResourceWarning: unclosed /usr/lib/python3/dist-packages/_pytest/unraisableexception.py:80: PytestUnraisableExceptionWarning ____ ERROR at teardown of test_ctor_loop_deprecated_arg[debug:false-pyloop] ____ cls = func = . at 0xf64439d8> when = 'teardown' reraise = (, ) @classmethod def from_call( cls, func: Callable[[], TResult], when: Literal["collect", "setup", "call", "teardown"], reraise: Optional[ Union[Type[BaseException], Tuple[Type[BaseException], ...]] ] = None, ) -> "CallInfo[TResult]": """Call func, wrapping the result in a CallInfo. :param func: The function to call. Called without arguments. :param when: The phase in which the function is called. :param reraise: Exception or exceptions that shall propagate if raised by the function, instead of being wrapped in the CallInfo. """ excinfo = None start = timing.time() precise_start = timing.perf_counter() try: > result: Optional[TResult] = func() /usr/lib/python3/dist-packages/_pytest/runner.py:341: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/dist-packages/_pytest/runner.py:241: in lambda: runtest_hook(item=item, **kwds), when=when, reraise=reraise /usr/lib/python3/dist-packages/pluggy/_hooks.py:513: in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) /usr/lib/python3/dist-packages/pluggy/_manager.py:120: in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) /usr/lib/python3/dist-packages/_pytest/threadexception.py:92: in pytest_runtest_teardown yield from thread_exception_runtest_hook() /usr/lib/python3/dist-packages/_pytest/threadexception.py:63: in thread_exception_runtest_hook yield /usr/lib/python3/dist-packages/_pytest/unraisableexception.py:95: in pytest_runtest_teardown yield from unraisable_exception_runtest_hook() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ def unraisable_exception_runtest_hook() -> Generator[None, None, None]: with catch_unraisable_exception() as cm: try: yield finally: if cm.unraisable: if cm.unraisable.err_msg is not None: err_msg = cm.unraisable.err_msg else: err_msg = "Exception ignored in" msg = f"{err_msg}: {cm.unraisable.object!r}\n\n" msg += "".join( traceback.format_exception( cm.unraisable.exc_type, cm.unraisable.exc_value, cm.unraisable.exc_traceback, ) ) > warnings.warn(pytest.PytestUnraisableExceptionWarning(msg)) E pytest.PytestUnraisableExceptionWarning: Exception ignored in: E E Traceback (most recent call last): E File "/build/reproducible-path/aiorwlock-1.0.0/tests/conftest.py", line 44, in event_loop E gc.collect() E ResourceWarning: unclosed /usr/lib/python3/dist-packages/_pytest/unraisableexception.py:80: PytestUnraisableExceptionWarning ________ ERROR at teardown of test_ctor_loop_reader[debug:false-pyloop] ________ cls = func = . at 0xf6443488> when = 'teardown' reraise = (, ) @classmethod def from_call( cls, func: Callable[[], TResult], when: Literal["collect", "setup", "call", "teardown"], reraise: Optional[ Union[Type[BaseException], Tuple[Type[BaseException], ...]] ] = None, ) -> "CallInfo[TResult]": """Call func, wrapping the result in a CallInfo. :param func: The function to call. Called without arguments. :param when: The phase in which the function is called. :param reraise: Exception or exceptions that shall propagate if raised by the function, instead of being wrapped in the CallInfo. """ excinfo = None start = timing.time() precise_start = timing.perf_counter() try: > result: Optional[TResult] = func() /usr/lib/python3/dist-packages/_pytest/runner.py:341: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/dist-packages/_pytest/runner.py:241: in lambda: runtest_hook(item=item, **kwds), when=when, reraise=reraise /usr/lib/python3/dist-packages/pluggy/_hooks.py:513: in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) /usr/lib/python3/dist-packages/pluggy/_manager.py:120: in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) /usr/lib/python3/dist-packages/_pytest/threadexception.py:92: in pytest_runtest_teardown yield from thread_exception_runtest_hook() /usr/lib/python3/dist-packages/_pytest/threadexception.py:63: in thread_exception_runtest_hook yield /usr/lib/python3/dist-packages/_pytest/unraisableexception.py:95: in pytest_runtest_teardown yield from unraisable_exception_runtest_hook() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ def unraisable_exception_runtest_hook() -> Generator[None, None, None]: with catch_unraisable_exception() as cm: try: yield finally: if cm.unraisable: if cm.unraisable.err_msg is not None: err_msg = cm.unraisable.err_msg else: err_msg = "Exception ignored in" msg = f"{err_msg}: {cm.unraisable.object!r}\n\n" msg += "".join( traceback.format_exception( cm.unraisable.exc_type, cm.unraisable.exc_value, cm.unraisable.exc_traceback, ) ) > warnings.warn(pytest.PytestUnraisableExceptionWarning(msg)) E pytest.PytestUnraisableExceptionWarning: Exception ignored in: E E Traceback (most recent call last): E File "/build/reproducible-path/aiorwlock-1.0.0/tests/conftest.py", line 44, in event_loop E gc.collect() E ResourceWarning: unclosed /usr/lib/python3/dist-packages/_pytest/unraisableexception.py:80: PytestUnraisableExceptionWarning _______ ERROR at teardown of test_ctor_noloop_reader[debug:false-pyloop] _______ cls = func = . at 0xf64439d8> when = 'teardown' reraise = (, ) @classmethod def from_call( cls, func: Callable[[], TResult], when: Literal["collect", "setup", "call", "teardown"], reraise: Optional[ Union[Type[BaseException], Tuple[Type[BaseException], ...]] ] = None, ) -> "CallInfo[TResult]": """Call func, wrapping the result in a CallInfo. :param func: The function to call. Called without arguments. :param when: The phase in which the function is called. :param reraise: Exception or exceptions that shall propagate if raised by the function, instead of being wrapped in the CallInfo. """ excinfo = None start = timing.time() precise_start = timing.perf_counter() try: > result: Optional[TResult] = func() /usr/lib/python3/dist-packages/_pytest/runner.py:341: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/dist-packages/_pytest/runner.py:241: in lambda: runtest_hook(item=item, **kwds), when=when, reraise=reraise /usr/lib/python3/dist-packages/pluggy/_hooks.py:513: in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) /usr/lib/python3/dist-packages/pluggy/_manager.py:120: in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) /usr/lib/python3/dist-packages/_pytest/threadexception.py:92: in pytest_runtest_teardown yield from thread_exception_runtest_hook() /usr/lib/python3/dist-packages/_pytest/threadexception.py:63: in thread_exception_runtest_hook yield /usr/lib/python3/dist-packages/_pytest/unraisableexception.py:95: in pytest_runtest_teardown yield from unraisable_exception_runtest_hook() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ def unraisable_exception_runtest_hook() -> Generator[None, None, None]: with catch_unraisable_exception() as cm: try: yield finally: if cm.unraisable: if cm.unraisable.err_msg is not None: err_msg = cm.unraisable.err_msg else: err_msg = "Exception ignored in" msg = f"{err_msg}: {cm.unraisable.object!r}\n\n" msg += "".join( traceback.format_exception( cm.unraisable.exc_type, cm.unraisable.exc_value, cm.unraisable.exc_traceback, ) ) > warnings.warn(pytest.PytestUnraisableExceptionWarning(msg)) E pytest.PytestUnraisableExceptionWarning: Exception ignored in: E E Traceback (most recent call last): E File "/build/reproducible-path/aiorwlock-1.0.0/tests/conftest.py", line 44, in event_loop E gc.collect() E ResourceWarning: unclosed /usr/lib/python3/dist-packages/_pytest/unraisableexception.py:80: PytestUnraisableExceptionWarning ________ ERROR at teardown of test_ctor_loop_writer[debug:false-pyloop] ________ cls = func = . at 0xf6443488> when = 'teardown' reraise = (, ) @classmethod def from_call( cls, func: Callable[[], TResult], when: Literal["collect", "setup", "call", "teardown"], reraise: Optional[ Union[Type[BaseException], Tuple[Type[BaseException], ...]] ] = None, ) -> "CallInfo[TResult]": """Call func, wrapping the result in a CallInfo. :param func: The function to call. Called without arguments. :param when: The phase in which the function is called. :param reraise: Exception or exceptions that shall propagate if raised by the function, instead of being wrapped in the CallInfo. """ excinfo = None start = timing.time() precise_start = timing.perf_counter() try: > result: Optional[TResult] = func() /usr/lib/python3/dist-packages/_pytest/runner.py:341: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/dist-packages/_pytest/runner.py:241: in lambda: runtest_hook(item=item, **kwds), when=when, reraise=reraise /usr/lib/python3/dist-packages/pluggy/_hooks.py:513: in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) /usr/lib/python3/dist-packages/pluggy/_manager.py:120: in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) /usr/lib/python3/dist-packages/_pytest/threadexception.py:92: in pytest_runtest_teardown yield from thread_exception_runtest_hook() /usr/lib/python3/dist-packages/_pytest/threadexception.py:63: in thread_exception_runtest_hook yield /usr/lib/python3/dist-packages/_pytest/unraisableexception.py:95: in pytest_runtest_teardown yield from unraisable_exception_runtest_hook() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ def unraisable_exception_runtest_hook() -> Generator[None, None, None]: with catch_unraisable_exception() as cm: try: yield finally: if cm.unraisable: if cm.unraisable.err_msg is not None: err_msg = cm.unraisable.err_msg else: err_msg = "Exception ignored in" msg = f"{err_msg}: {cm.unraisable.object!r}\n\n" msg += "".join( traceback.format_exception( cm.unraisable.exc_type, cm.unraisable.exc_value, cm.unraisable.exc_traceback, ) ) > warnings.warn(pytest.PytestUnraisableExceptionWarning(msg)) E pytest.PytestUnraisableExceptionWarning: Exception ignored in: E E Traceback (most recent call last): E File "/build/reproducible-path/aiorwlock-1.0.0/tests/conftest.py", line 44, in event_loop E gc.collect() E ResourceWarning: unclosed /usr/lib/python3/dist-packages/_pytest/unraisableexception.py:80: PytestUnraisableExceptionWarning _______ ERROR at teardown of test_ctor_noloop_writer[debug:false-pyloop] _______ cls = func = . at 0xf64439d8> when = 'teardown' reraise = (, ) @classmethod def from_call( cls, func: Callable[[], TResult], when: Literal["collect", "setup", "call", "teardown"], reraise: Optional[ Union[Type[BaseException], Tuple[Type[BaseException], ...]] ] = None, ) -> "CallInfo[TResult]": """Call func, wrapping the result in a CallInfo. :param func: The function to call. Called without arguments. :param when: The phase in which the function is called. :param reraise: Exception or exceptions that shall propagate if raised by the function, instead of being wrapped in the CallInfo. """ excinfo = None start = timing.time() precise_start = timing.perf_counter() try: > result: Optional[TResult] = func() /usr/lib/python3/dist-packages/_pytest/runner.py:341: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/dist-packages/_pytest/runner.py:241: in lambda: runtest_hook(item=item, **kwds), when=when, reraise=reraise /usr/lib/python3/dist-packages/pluggy/_hooks.py:513: in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) /usr/lib/python3/dist-packages/pluggy/_manager.py:120: in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) /usr/lib/python3/dist-packages/_pytest/threadexception.py:92: in pytest_runtest_teardown yield from thread_exception_runtest_hook() /usr/lib/python3/dist-packages/_pytest/threadexception.py:63: in thread_exception_runtest_hook yield /usr/lib/python3/dist-packages/_pytest/unraisableexception.py:95: in pytest_runtest_teardown yield from unraisable_exception_runtest_hook() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ def unraisable_exception_runtest_hook() -> Generator[None, None, None]: with catch_unraisable_exception() as cm: try: yield finally: if cm.unraisable: if cm.unraisable.err_msg is not None: err_msg = cm.unraisable.err_msg else: err_msg = "Exception ignored in" msg = f"{err_msg}: {cm.unraisable.object!r}\n\n" msg += "".join( traceback.format_exception( cm.unraisable.exc_type, cm.unraisable.exc_value, cm.unraisable.exc_traceback, ) ) > warnings.warn(pytest.PytestUnraisableExceptionWarning(msg)) E pytest.PytestUnraisableExceptionWarning: Exception ignored in: E E Traceback (most recent call last): E File "/build/reproducible-path/aiorwlock-1.0.0/tests/conftest.py", line 44, in event_loop E gc.collect() E ResourceWarning: unclosed /usr/lib/python3/dist-packages/_pytest/unraisableexception.py:80: PytestUnraisableExceptionWarning ______________ ERROR at teardown of test_repr[debug:false-pyloop] ______________ cls = func = . at 0xf6461d98> when = 'teardown' reraise = (, ) @classmethod def from_call( cls, func: Callable[[], TResult], when: Literal["collect", "setup", "call", "teardown"], reraise: Optional[ Union[Type[BaseException], Tuple[Type[BaseException], ...]] ] = None, ) -> "CallInfo[TResult]": """Call func, wrapping the result in a CallInfo. :param func: The function to call. Called without arguments. :param when: The phase in which the function is called. :param reraise: Exception or exceptions that shall propagate if raised by the function, instead of being wrapped in the CallInfo. """ excinfo = None start = timing.time() precise_start = timing.perf_counter() try: > result: Optional[TResult] = func() /usr/lib/python3/dist-packages/_pytest/runner.py:341: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/dist-packages/_pytest/runner.py:241: in lambda: runtest_hook(item=item, **kwds), when=when, reraise=reraise /usr/lib/python3/dist-packages/pluggy/_hooks.py:513: in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) /usr/lib/python3/dist-packages/pluggy/_manager.py:120: in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) /usr/lib/python3/dist-packages/_pytest/threadexception.py:92: in pytest_runtest_teardown yield from thread_exception_runtest_hook() /usr/lib/python3/dist-packages/_pytest/threadexception.py:63: in thread_exception_runtest_hook yield /usr/lib/python3/dist-packages/_pytest/unraisableexception.py:95: in pytest_runtest_teardown yield from unraisable_exception_runtest_hook() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ def unraisable_exception_runtest_hook() -> Generator[None, None, None]: with catch_unraisable_exception() as cm: try: yield finally: if cm.unraisable: if cm.unraisable.err_msg is not None: err_msg = cm.unraisable.err_msg else: err_msg = "Exception ignored in" msg = f"{err_msg}: {cm.unraisable.object!r}\n\n" msg += "".join( traceback.format_exception( cm.unraisable.exc_type, cm.unraisable.exc_value, cm.unraisable.exc_traceback, ) ) > warnings.warn(pytest.PytestUnraisableExceptionWarning(msg)) E pytest.PytestUnraisableExceptionWarning: Exception ignored in: E E Traceback (most recent call last): E File "/build/reproducible-path/aiorwlock-1.0.0/tests/conftest.py", line 44, in event_loop E gc.collect() E ResourceWarning: unclosed /usr/lib/python3/dist-packages/_pytest/unraisableexception.py:80: PytestUnraisableExceptionWarning ________ ERROR at teardown of test_release_unlocked[debug:false-pyloop] ________ cls = func = . at 0xf64439d8> when = 'teardown' reraise = (, ) @classmethod def from_call( cls, func: Callable[[], TResult], when: Literal["collect", "setup", "call", "teardown"], reraise: Optional[ Union[Type[BaseException], Tuple[Type[BaseException], ...]] ] = None, ) -> "CallInfo[TResult]": """Call func, wrapping the result in a CallInfo. :param func: The function to call. Called without arguments. :param when: The phase in which the function is called. :param reraise: Exception or exceptions that shall propagate if raised by the function, instead of being wrapped in the CallInfo. """ excinfo = None start = timing.time() precise_start = timing.perf_counter() try: > result: Optional[TResult] = func() /usr/lib/python3/dist-packages/_pytest/runner.py:341: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/dist-packages/_pytest/runner.py:241: in lambda: runtest_hook(item=item, **kwds), when=when, reraise=reraise /usr/lib/python3/dist-packages/pluggy/_hooks.py:513: in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) /usr/lib/python3/dist-packages/pluggy/_manager.py:120: in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) /usr/lib/python3/dist-packages/_pytest/threadexception.py:92: in pytest_runtest_teardown yield from thread_exception_runtest_hook() /usr/lib/python3/dist-packages/_pytest/threadexception.py:63: in thread_exception_runtest_hook yield /usr/lib/python3/dist-packages/_pytest/unraisableexception.py:95: in pytest_runtest_teardown yield from unraisable_exception_runtest_hook() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ def unraisable_exception_runtest_hook() -> Generator[None, None, None]: with catch_unraisable_exception() as cm: try: yield finally: if cm.unraisable: if cm.unraisable.err_msg is not None: err_msg = cm.unraisable.err_msg else: err_msg = "Exception ignored in" msg = f"{err_msg}: {cm.unraisable.object!r}\n\n" msg += "".join( traceback.format_exception( cm.unraisable.exc_type, cm.unraisable.exc_value, cm.unraisable.exc_traceback, ) ) > warnings.warn(pytest.PytestUnraisableExceptionWarning(msg)) E pytest.PytestUnraisableExceptionWarning: Exception ignored in: E E Traceback (most recent call last): E File "/build/reproducible-path/aiorwlock-1.0.0/tests/conftest.py", line 44, in event_loop E gc.collect() E ResourceWarning: unclosed /usr/lib/python3/dist-packages/_pytest/unraisableexception.py:80: PytestUnraisableExceptionWarning _______ ERROR at teardown of test_many_readers[debug:false-fast-pyloop] ________ cls = func = . at 0xf6443488> when = 'teardown' reraise = (, ) @classmethod def from_call( cls, func: Callable[[], TResult], when: Literal["collect", "setup", "call", "teardown"], reraise: Optional[ Union[Type[BaseException], Tuple[Type[BaseException], ...]] ] = None, ) -> "CallInfo[TResult]": """Call func, wrapping the result in a CallInfo. :param func: The function to call. Called without arguments. :param when: The phase in which the function is called. :param reraise: Exception or exceptions that shall propagate if raised by the function, instead of being wrapped in the CallInfo. """ excinfo = None start = timing.time() precise_start = timing.perf_counter() try: > result: Optional[TResult] = func() /usr/lib/python3/dist-packages/_pytest/runner.py:341: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/dist-packages/_pytest/runner.py:241: in lambda: runtest_hook(item=item, **kwds), when=when, reraise=reraise /usr/lib/python3/dist-packages/pluggy/_hooks.py:513: in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) /usr/lib/python3/dist-packages/pluggy/_manager.py:120: in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) /usr/lib/python3/dist-packages/_pytest/threadexception.py:92: in pytest_runtest_teardown yield from thread_exception_runtest_hook() /usr/lib/python3/dist-packages/_pytest/threadexception.py:63: in thread_exception_runtest_hook yield /usr/lib/python3/dist-packages/_pytest/unraisableexception.py:95: in pytest_runtest_teardown yield from unraisable_exception_runtest_hook() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ def unraisable_exception_runtest_hook() -> Generator[None, None, None]: with catch_unraisable_exception() as cm: try: yield finally: if cm.unraisable: if cm.unraisable.err_msg is not None: err_msg = cm.unraisable.err_msg else: err_msg = "Exception ignored in" msg = f"{err_msg}: {cm.unraisable.object!r}\n\n" msg += "".join( traceback.format_exception( cm.unraisable.exc_type, cm.unraisable.exc_value, cm.unraisable.exc_traceback, ) ) > warnings.warn(pytest.PytestUnraisableExceptionWarning(msg)) E pytest.PytestUnraisableExceptionWarning: Exception ignored in: E E Traceback (most recent call last): E File "/build/reproducible-path/aiorwlock-1.0.0/tests/conftest.py", line 44, in event_loop E gc.collect() E ResourceWarning: unclosed /usr/lib/python3/dist-packages/_pytest/unraisableexception.py:80: PytestUnraisableExceptionWarning _____ ERROR at teardown of test_reader_recursion[debug:false-fast-pyloop] ______ cls = func = . at 0xf64439d8> when = 'teardown' reraise = (, ) @classmethod def from_call( cls, func: Callable[[], TResult], when: Literal["collect", "setup", "call", "teardown"], reraise: Optional[ Union[Type[BaseException], Tuple[Type[BaseException], ...]] ] = None, ) -> "CallInfo[TResult]": """Call func, wrapping the result in a CallInfo. :param func: The function to call. Called without arguments. :param when: The phase in which the function is called. :param reraise: Exception or exceptions that shall propagate if raised by the function, instead of being wrapped in the CallInfo. """ excinfo = None start = timing.time() precise_start = timing.perf_counter() try: > result: Optional[TResult] = func() /usr/lib/python3/dist-packages/_pytest/runner.py:341: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/dist-packages/_pytest/runner.py:241: in lambda: runtest_hook(item=item, **kwds), when=when, reraise=reraise /usr/lib/python3/dist-packages/pluggy/_hooks.py:513: in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) /usr/lib/python3/dist-packages/pluggy/_manager.py:120: in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) /usr/lib/python3/dist-packages/_pytest/threadexception.py:92: in pytest_runtest_teardown yield from thread_exception_runtest_hook() /usr/lib/python3/dist-packages/_pytest/threadexception.py:63: in thread_exception_runtest_hook yield /usr/lib/python3/dist-packages/_pytest/unraisableexception.py:95: in pytest_runtest_teardown yield from unraisable_exception_runtest_hook() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ def unraisable_exception_runtest_hook() -> Generator[None, None, None]: with catch_unraisable_exception() as cm: try: yield finally: if cm.unraisable: if cm.unraisable.err_msg is not None: err_msg = cm.unraisable.err_msg else: err_msg = "Exception ignored in" msg = f"{err_msg}: {cm.unraisable.object!r}\n\n" msg += "".join( traceback.format_exception( cm.unraisable.exc_type, cm.unraisable.exc_value, cm.unraisable.exc_traceback, ) ) > warnings.warn(pytest.PytestUnraisableExceptionWarning(msg)) E pytest.PytestUnraisableExceptionWarning: Exception ignored in: E E Traceback (most recent call last): E File "/build/reproducible-path/aiorwlock-1.0.0/tests/conftest.py", line 44, in event_loop E gc.collect() E ResourceWarning: unclosed /usr/lib/python3/dist-packages/_pytest/unraisableexception.py:80: PytestUnraisableExceptionWarning _____ ERROR at teardown of test_writer_recursion[debug:false-fast-pyloop] ______ cls = func = . at 0xf6443488> when = 'teardown' reraise = (, ) @classmethod def from_call( cls, func: Callable[[], TResult], when: Literal["collect", "setup", "call", "teardown"], reraise: Optional[ Union[Type[BaseException], Tuple[Type[BaseException], ...]] ] = None, ) -> "CallInfo[TResult]": """Call func, wrapping the result in a CallInfo. :param func: The function to call. Called without arguments. :param when: The phase in which the function is called. :param reraise: Exception or exceptions that shall propagate if raised by the function, instead of being wrapped in the CallInfo. """ excinfo = None start = timing.time() precise_start = timing.perf_counter() try: > result: Optional[TResult] = func() /usr/lib/python3/dist-packages/_pytest/runner.py:341: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/dist-packages/_pytest/runner.py:241: in lambda: runtest_hook(item=item, **kwds), when=when, reraise=reraise /usr/lib/python3/dist-packages/pluggy/_hooks.py:513: in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) /usr/lib/python3/dist-packages/pluggy/_manager.py:120: in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) /usr/lib/python3/dist-packages/_pytest/threadexception.py:92: in pytest_runtest_teardown yield from thread_exception_runtest_hook() /usr/lib/python3/dist-packages/_pytest/threadexception.py:63: in thread_exception_runtest_hook yield /usr/lib/python3/dist-packages/_pytest/unraisableexception.py:95: in pytest_runtest_teardown yield from unraisable_exception_runtest_hook() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ def unraisable_exception_runtest_hook() -> Generator[None, None, None]: with catch_unraisable_exception() as cm: try: yield finally: if cm.unraisable: if cm.unraisable.err_msg is not None: err_msg = cm.unraisable.err_msg else: err_msg = "Exception ignored in" msg = f"{err_msg}: {cm.unraisable.object!r}\n\n" msg += "".join( traceback.format_exception( cm.unraisable.exc_type, cm.unraisable.exc_value, cm.unraisable.exc_traceback, ) ) > warnings.warn(pytest.PytestUnraisableExceptionWarning(msg)) E pytest.PytestUnraisableExceptionWarning: Exception ignored in: E E Traceback (most recent call last): E File "/build/reproducible-path/aiorwlock-1.0.0/tests/conftest.py", line 44, in event_loop E gc.collect() E ResourceWarning: unclosed /usr/lib/python3/dist-packages/_pytest/unraisableexception.py:80: PytestUnraisableExceptionWarning _ ERROR at teardown of test_writer_then_reader_recursion[debug:false-fast-pyloop] _ cls = func = . at 0xf64439d8> when = 'teardown' reraise = (, ) @classmethod def from_call( cls, func: Callable[[], TResult], when: Literal["collect", "setup", "call", "teardown"], reraise: Optional[ Union[Type[BaseException], Tuple[Type[BaseException], ...]] ] = None, ) -> "CallInfo[TResult]": """Call func, wrapping the result in a CallInfo. :param func: The function to call. Called without arguments. :param when: The phase in which the function is called. :param reraise: Exception or exceptions that shall propagate if raised by the function, instead of being wrapped in the CallInfo. """ excinfo = None start = timing.time() precise_start = timing.perf_counter() try: > result: Optional[TResult] = func() /usr/lib/python3/dist-packages/_pytest/runner.py:341: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/dist-packages/_pytest/runner.py:241: in lambda: runtest_hook(item=item, **kwds), when=when, reraise=reraise /usr/lib/python3/dist-packages/pluggy/_hooks.py:513: in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) /usr/lib/python3/dist-packages/pluggy/_manager.py:120: in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) /usr/lib/python3/dist-packages/_pytest/threadexception.py:92: in pytest_runtest_teardown yield from thread_exception_runtest_hook() /usr/lib/python3/dist-packages/_pytest/threadexception.py:63: in thread_exception_runtest_hook yield /usr/lib/python3/dist-packages/_pytest/unraisableexception.py:95: in pytest_runtest_teardown yield from unraisable_exception_runtest_hook() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ def unraisable_exception_runtest_hook() -> Generator[None, None, None]: with catch_unraisable_exception() as cm: try: yield finally: if cm.unraisable: if cm.unraisable.err_msg is not None: err_msg = cm.unraisable.err_msg else: err_msg = "Exception ignored in" msg = f"{err_msg}: {cm.unraisable.object!r}\n\n" msg += "".join( traceback.format_exception( cm.unraisable.exc_type, cm.unraisable.exc_value, cm.unraisable.exc_traceback, ) ) > warnings.warn(pytest.PytestUnraisableExceptionWarning(msg)) E pytest.PytestUnraisableExceptionWarning: Exception ignored in: E E Traceback (most recent call last): E File "/build/reproducible-path/aiorwlock-1.0.0/tests/conftest.py", line 44, in event_loop E gc.collect() E ResourceWarning: unclosed /usr/lib/python3/dist-packages/_pytest/unraisableexception.py:80: PytestUnraisableExceptionWarning ______ ERROR at teardown of test_readers_writers[debug:false-fast-pyloop] ______ cls = func = . at 0xf6443488> when = 'teardown' reraise = (, ) @classmethod def from_call( cls, func: Callable[[], TResult], when: Literal["collect", "setup", "call", "teardown"], reraise: Optional[ Union[Type[BaseException], Tuple[Type[BaseException], ...]] ] = None, ) -> "CallInfo[TResult]": """Call func, wrapping the result in a CallInfo. :param func: The function to call. Called without arguments. :param when: The phase in which the function is called. :param reraise: Exception or exceptions that shall propagate if raised by the function, instead of being wrapped in the CallInfo. """ excinfo = None start = timing.time() precise_start = timing.perf_counter() try: > result: Optional[TResult] = func() /usr/lib/python3/dist-packages/_pytest/runner.py:341: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/dist-packages/_pytest/runner.py:241: in lambda: runtest_hook(item=item, **kwds), when=when, reraise=reraise /usr/lib/python3/dist-packages/pluggy/_hooks.py:513: in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) /usr/lib/python3/dist-packages/pluggy/_manager.py:120: in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) /usr/lib/python3/dist-packages/_pytest/threadexception.py:92: in pytest_runtest_teardown yield from thread_exception_runtest_hook() /usr/lib/python3/dist-packages/_pytest/threadexception.py:63: in thread_exception_runtest_hook yield /usr/lib/python3/dist-packages/_pytest/unraisableexception.py:95: in pytest_runtest_teardown yield from unraisable_exception_runtest_hook() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ def unraisable_exception_runtest_hook() -> Generator[None, None, None]: with catch_unraisable_exception() as cm: try: yield finally: if cm.unraisable: if cm.unraisable.err_msg is not None: err_msg = cm.unraisable.err_msg else: err_msg = "Exception ignored in" msg = f"{err_msg}: {cm.unraisable.object!r}\n\n" msg += "".join( traceback.format_exception( cm.unraisable.exc_type, cm.unraisable.exc_value, cm.unraisable.exc_traceback, ) ) > warnings.warn(pytest.PytestUnraisableExceptionWarning(msg)) E pytest.PytestUnraisableExceptionWarning: Exception ignored in: E E Traceback (most recent call last): E File "/build/reproducible-path/aiorwlock-1.0.0/tests/conftest.py", line 44, in event_loop E gc.collect() E ResourceWarning: unclosed /usr/lib/python3/dist-packages/_pytest/unraisableexception.py:80: PytestUnraisableExceptionWarning _ ERROR at teardown of test_raise_error_on_with_for_reader_lock[debug:false-fast-pyloop] _ cls = func = . at 0xf64439d8> when = 'teardown' reraise = (, ) @classmethod def from_call( cls, func: Callable[[], TResult], when: Literal["collect", "setup", "call", "teardown"], reraise: Optional[ Union[Type[BaseException], Tuple[Type[BaseException], ...]] ] = None, ) -> "CallInfo[TResult]": """Call func, wrapping the result in a CallInfo. :param func: The function to call. Called without arguments. :param when: The phase in which the function is called. :param reraise: Exception or exceptions that shall propagate if raised by the function, instead of being wrapped in the CallInfo. """ excinfo = None start = timing.time() precise_start = timing.perf_counter() try: > result: Optional[TResult] = func() /usr/lib/python3/dist-packages/_pytest/runner.py:341: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/dist-packages/_pytest/runner.py:241: in lambda: runtest_hook(item=item, **kwds), when=when, reraise=reraise /usr/lib/python3/dist-packages/pluggy/_hooks.py:513: in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) /usr/lib/python3/dist-packages/pluggy/_manager.py:120: in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) /usr/lib/python3/dist-packages/_pytest/threadexception.py:92: in pytest_runtest_teardown yield from thread_exception_runtest_hook() /usr/lib/python3/dist-packages/_pytest/threadexception.py:63: in thread_exception_runtest_hook yield /usr/lib/python3/dist-packages/_pytest/unraisableexception.py:95: in pytest_runtest_teardown yield from unraisable_exception_runtest_hook() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ def unraisable_exception_runtest_hook() -> Generator[None, None, None]: with catch_unraisable_exception() as cm: try: yield finally: if cm.unraisable: if cm.unraisable.err_msg is not None: err_msg = cm.unraisable.err_msg else: err_msg = "Exception ignored in" msg = f"{err_msg}: {cm.unraisable.object!r}\n\n" msg += "".join( traceback.format_exception( cm.unraisable.exc_type, cm.unraisable.exc_value, cm.unraisable.exc_traceback, ) ) > warnings.warn(pytest.PytestUnraisableExceptionWarning(msg)) E pytest.PytestUnraisableExceptionWarning: Exception ignored in: E E Traceback (most recent call last): E File "/build/reproducible-path/aiorwlock-1.0.0/tests/conftest.py", line 44, in event_loop E gc.collect() E ResourceWarning: unclosed /usr/lib/python3/dist-packages/_pytest/unraisableexception.py:80: PytestUnraisableExceptionWarning _ ERROR at teardown of test_raise_error_on_with_for_writer_lock[debug:false-fast-pyloop] _ cls = func = . at 0xf5fd6de8> when = 'teardown' reraise = (, ) @classmethod def from_call( cls, func: Callable[[], TResult], when: Literal["collect", "setup", "call", "teardown"], reraise: Optional[ Union[Type[BaseException], Tuple[Type[BaseException], ...]] ] = None, ) -> "CallInfo[TResult]": """Call func, wrapping the result in a CallInfo. :param func: The function to call. Called without arguments. :param when: The phase in which the function is called. :param reraise: Exception or exceptions that shall propagate if raised by the function, instead of being wrapped in the CallInfo. """ excinfo = None start = timing.time() precise_start = timing.perf_counter() try: > result: Optional[TResult] = func() /usr/lib/python3/dist-packages/_pytest/runner.py:341: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/dist-packages/_pytest/runner.py:241: in lambda: runtest_hook(item=item, **kwds), when=when, reraise=reraise /usr/lib/python3/dist-packages/pluggy/_hooks.py:513: in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) /usr/lib/python3/dist-packages/pluggy/_manager.py:120: in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) /usr/lib/python3/dist-packages/_pytest/threadexception.py:92: in pytest_runtest_teardown yield from thread_exception_runtest_hook() /usr/lib/python3/dist-packages/_pytest/threadexception.py:63: in thread_exception_runtest_hook yield /usr/lib/python3/dist-packages/_pytest/unraisableexception.py:95: in pytest_runtest_teardown yield from unraisable_exception_runtest_hook() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ def unraisable_exception_runtest_hook() -> Generator[None, None, None]: with catch_unraisable_exception() as cm: try: yield finally: if cm.unraisable: if cm.unraisable.err_msg is not None: err_msg = cm.unraisable.err_msg else: err_msg = "Exception ignored in" msg = f"{err_msg}: {cm.unraisable.object!r}\n\n" msg += "".join( traceback.format_exception( cm.unraisable.exc_type, cm.unraisable.exc_value, cm.unraisable.exc_traceback, ) ) > warnings.warn(pytest.PytestUnraisableExceptionWarning(msg)) E pytest.PytestUnraisableExceptionWarning: Exception ignored in: E E Traceback (most recent call last): E File "/build/reproducible-path/aiorwlock-1.0.0/tests/conftest.py", line 44, in event_loop E gc.collect() E ResourceWarning: unclosed /usr/lib/python3/dist-packages/_pytest/unraisableexception.py:80: PytestUnraisableExceptionWarning ________ ERROR at teardown of test_read_locked[debug:false-fast-pyloop] ________ cls = func = . at 0xf64439d8> when = 'teardown' reraise = (, ) @classmethod def from_call( cls, func: Callable[[], TResult], when: Literal["collect", "setup", "call", "teardown"], reraise: Optional[ Union[Type[BaseException], Tuple[Type[BaseException], ...]] ] = None, ) -> "CallInfo[TResult]": """Call func, wrapping the result in a CallInfo. :param func: The function to call. Called without arguments. :param when: The phase in which the function is called. :param reraise: Exception or exceptions that shall propagate if raised by the function, instead of being wrapped in the CallInfo. """ excinfo = None start = timing.time() precise_start = timing.perf_counter() try: > result: Optional[TResult] = func() /usr/lib/python3/dist-packages/_pytest/runner.py:341: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/dist-packages/_pytest/runner.py:241: in lambda: runtest_hook(item=item, **kwds), when=when, reraise=reraise /usr/lib/python3/dist-packages/pluggy/_hooks.py:513: in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) /usr/lib/python3/dist-packages/pluggy/_manager.py:120: in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) /usr/lib/python3/dist-packages/_pytest/threadexception.py:92: in pytest_runtest_teardown yield from thread_exception_runtest_hook() /usr/lib/python3/dist-packages/_pytest/threadexception.py:63: in thread_exception_runtest_hook yield /usr/lib/python3/dist-packages/_pytest/unraisableexception.py:95: in pytest_runtest_teardown yield from unraisable_exception_runtest_hook() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ def unraisable_exception_runtest_hook() -> Generator[None, None, None]: with catch_unraisable_exception() as cm: try: yield finally: if cm.unraisable: if cm.unraisable.err_msg is not None: err_msg = cm.unraisable.err_msg else: err_msg = "Exception ignored in" msg = f"{err_msg}: {cm.unraisable.object!r}\n\n" msg += "".join( traceback.format_exception( cm.unraisable.exc_type, cm.unraisable.exc_value, cm.unraisable.exc_traceback, ) ) > warnings.warn(pytest.PytestUnraisableExceptionWarning(msg)) E pytest.PytestUnraisableExceptionWarning: Exception ignored in: E E Traceback (most recent call last): E File "/build/reproducible-path/aiorwlock-1.0.0/tests/conftest.py", line 44, in event_loop E gc.collect() E ResourceWarning: unclosed /usr/lib/python3/dist-packages/_pytest/unraisableexception.py:80: PytestUnraisableExceptionWarning _______ ERROR at teardown of test_write_locked[debug:false-fast-pyloop] ________ cls = func = . at 0xf5fd6de8> when = 'teardown' reraise = (, ) @classmethod def from_call( cls, func: Callable[[], TResult], when: Literal["collect", "setup", "call", "teardown"], reraise: Optional[ Union[Type[BaseException], Tuple[Type[BaseException], ...]] ] = None, ) -> "CallInfo[TResult]": """Call func, wrapping the result in a CallInfo. :param func: The function to call. Called without arguments. :param when: The phase in which the function is called. :param reraise: Exception or exceptions that shall propagate if raised by the function, instead of being wrapped in the CallInfo. """ excinfo = None start = timing.time() precise_start = timing.perf_counter() try: > result: Optional[TResult] = func() /usr/lib/python3/dist-packages/_pytest/runner.py:341: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/dist-packages/_pytest/runner.py:241: in lambda: runtest_hook(item=item, **kwds), when=when, reraise=reraise /usr/lib/python3/dist-packages/pluggy/_hooks.py:513: in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) /usr/lib/python3/dist-packages/pluggy/_manager.py:120: in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) /usr/lib/python3/dist-packages/_pytest/threadexception.py:92: in pytest_runtest_teardown yield from thread_exception_runtest_hook() /usr/lib/python3/dist-packages/_pytest/threadexception.py:63: in thread_exception_runtest_hook yield /usr/lib/python3/dist-packages/_pytest/unraisableexception.py:95: in pytest_runtest_teardown yield from unraisable_exception_runtest_hook() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ def unraisable_exception_runtest_hook() -> Generator[None, None, None]: with catch_unraisable_exception() as cm: try: yield finally: if cm.unraisable: if cm.unraisable.err_msg is not None: err_msg = cm.unraisable.err_msg else: err_msg = "Exception ignored in" msg = f"{err_msg}: {cm.unraisable.object!r}\n\n" msg += "".join( traceback.format_exception( cm.unraisable.exc_type, cm.unraisable.exc_value, cm.unraisable.exc_traceback, ) ) > warnings.warn(pytest.PytestUnraisableExceptionWarning(msg)) E pytest.PytestUnraisableExceptionWarning: Exception ignored in: E E Traceback (most recent call last): E File "/build/reproducible-path/aiorwlock-1.0.0/tests/conftest.py", line 44, in event_loop E gc.collect() E ResourceWarning: unclosed /usr/lib/python3/dist-packages/_pytest/unraisableexception.py:80: PytestUnraisableExceptionWarning _ ERROR at teardown of test_write_read_lock_multiple_tasks[debug:false-fast-pyloop] _ cls = func = . at 0xf64439d8> when = 'teardown' reraise = (, ) @classmethod def from_call( cls, func: Callable[[], TResult], when: Literal["collect", "setup", "call", "teardown"], reraise: Optional[ Union[Type[BaseException], Tuple[Type[BaseException], ...]] ] = None, ) -> "CallInfo[TResult]": """Call func, wrapping the result in a CallInfo. :param func: The function to call. Called without arguments. :param when: The phase in which the function is called. :param reraise: Exception or exceptions that shall propagate if raised by the function, instead of being wrapped in the CallInfo. """ excinfo = None start = timing.time() precise_start = timing.perf_counter() try: > result: Optional[TResult] = func() /usr/lib/python3/dist-packages/_pytest/runner.py:341: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/dist-packages/_pytest/runner.py:241: in lambda: runtest_hook(item=item, **kwds), when=when, reraise=reraise /usr/lib/python3/dist-packages/pluggy/_hooks.py:513: in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) /usr/lib/python3/dist-packages/pluggy/_manager.py:120: in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) /usr/lib/python3/dist-packages/_pytest/threadexception.py:92: in pytest_runtest_teardown yield from thread_exception_runtest_hook() /usr/lib/python3/dist-packages/_pytest/threadexception.py:63: in thread_exception_runtest_hook yield /usr/lib/python3/dist-packages/_pytest/unraisableexception.py:95: in pytest_runtest_teardown yield from unraisable_exception_runtest_hook() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ def unraisable_exception_runtest_hook() -> Generator[None, None, None]: with catch_unraisable_exception() as cm: try: yield finally: if cm.unraisable: if cm.unraisable.err_msg is not None: err_msg = cm.unraisable.err_msg else: err_msg = "Exception ignored in" msg = f"{err_msg}: {cm.unraisable.object!r}\n\n" msg += "".join( traceback.format_exception( cm.unraisable.exc_type, cm.unraisable.exc_value, cm.unraisable.exc_traceback, ) ) > warnings.warn(pytest.PytestUnraisableExceptionWarning(msg)) E pytest.PytestUnraisableExceptionWarning: Exception ignored in: E E Traceback (most recent call last): E File "/build/reproducible-path/aiorwlock-1.0.0/tests/conftest.py", line 44, in event_loop E gc.collect() E ResourceWarning: unclosed /usr/lib/python3/dist-packages/_pytest/unraisableexception.py:80: PytestUnraisableExceptionWarning ___ ERROR at teardown of test_read_context_manager[debug:false-fast-pyloop] ____ cls = func = . at 0xf5fd6de8> when = 'teardown' reraise = (, ) @classmethod def from_call( cls, func: Callable[[], TResult], when: Literal["collect", "setup", "call", "teardown"], reraise: Optional[ Union[Type[BaseException], Tuple[Type[BaseException], ...]] ] = None, ) -> "CallInfo[TResult]": """Call func, wrapping the result in a CallInfo. :param func: The function to call. Called without arguments. :param when: The phase in which the function is called. :param reraise: Exception or exceptions that shall propagate if raised by the function, instead of being wrapped in the CallInfo. """ excinfo = None start = timing.time() precise_start = timing.perf_counter() try: > result: Optional[TResult] = func() /usr/lib/python3/dist-packages/_pytest/runner.py:341: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/dist-packages/_pytest/runner.py:241: in lambda: runtest_hook(item=item, **kwds), when=when, reraise=reraise /usr/lib/python3/dist-packages/pluggy/_hooks.py:513: in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) /usr/lib/python3/dist-packages/pluggy/_manager.py:120: in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) /usr/lib/python3/dist-packages/_pytest/threadexception.py:92: in pytest_runtest_teardown yield from thread_exception_runtest_hook() /usr/lib/python3/dist-packages/_pytest/threadexception.py:63: in thread_exception_runtest_hook yield /usr/lib/python3/dist-packages/_pytest/unraisableexception.py:95: in pytest_runtest_teardown yield from unraisable_exception_runtest_hook() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ def unraisable_exception_runtest_hook() -> Generator[None, None, None]: with catch_unraisable_exception() as cm: try: yield finally: if cm.unraisable: if cm.unraisable.err_msg is not None: err_msg = cm.unraisable.err_msg else: err_msg = "Exception ignored in" msg = f"{err_msg}: {cm.unraisable.object!r}\n\n" msg += "".join( traceback.format_exception( cm.unraisable.exc_type, cm.unraisable.exc_value, cm.unraisable.exc_traceback, ) ) > warnings.warn(pytest.PytestUnraisableExceptionWarning(msg)) E pytest.PytestUnraisableExceptionWarning: Exception ignored in: E E Traceback (most recent call last): E File "/build/reproducible-path/aiorwlock-1.0.0/tests/conftest.py", line 44, in event_loop E gc.collect() E ResourceWarning: unclosed /usr/lib/python3/dist-packages/_pytest/unraisableexception.py:80: PytestUnraisableExceptionWarning ___ ERROR at teardown of test_write_context_manager[debug:false-fast-pyloop] ___ cls = func = . at 0xf64439d8> when = 'teardown' reraise = (, ) @classmethod def from_call( cls, func: Callable[[], TResult], when: Literal["collect", "setup", "call", "teardown"], reraise: Optional[ Union[Type[BaseException], Tuple[Type[BaseException], ...]] ] = None, ) -> "CallInfo[TResult]": """Call func, wrapping the result in a CallInfo. :param func: The function to call. Called without arguments. :param when: The phase in which the function is called. :param reraise: Exception or exceptions that shall propagate if raised by the function, instead of being wrapped in the CallInfo. """ excinfo = None start = timing.time() precise_start = timing.perf_counter() try: > result: Optional[TResult] = func() /usr/lib/python3/dist-packages/_pytest/runner.py:341: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/dist-packages/_pytest/runner.py:241: in lambda: runtest_hook(item=item, **kwds), when=when, reraise=reraise /usr/lib/python3/dist-packages/pluggy/_hooks.py:513: in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) /usr/lib/python3/dist-packages/pluggy/_manager.py:120: in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) /usr/lib/python3/dist-packages/_pytest/threadexception.py:92: in pytest_runtest_teardown yield from thread_exception_runtest_hook() /usr/lib/python3/dist-packages/_pytest/threadexception.py:63: in thread_exception_runtest_hook yield /usr/lib/python3/dist-packages/_pytest/unraisableexception.py:95: in pytest_runtest_teardown yield from unraisable_exception_runtest_hook() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ def unraisable_exception_runtest_hook() -> Generator[None, None, None]: with catch_unraisable_exception() as cm: try: yield finally: if cm.unraisable: if cm.unraisable.err_msg is not None: err_msg = cm.unraisable.err_msg else: err_msg = "Exception ignored in" msg = f"{err_msg}: {cm.unraisable.object!r}\n\n" msg += "".join( traceback.format_exception( cm.unraisable.exc_type, cm.unraisable.exc_value, cm.unraisable.exc_traceback, ) ) > warnings.warn(pytest.PytestUnraisableExceptionWarning(msg)) E pytest.PytestUnraisableExceptionWarning: Exception ignored in: E E Traceback (most recent call last): E File "/build/reproducible-path/aiorwlock-1.0.0/tests/conftest.py", line 44, in event_loop E gc.collect() E ResourceWarning: unclosed /usr/lib/python3/dist-packages/_pytest/unraisableexception.py:80: PytestUnraisableExceptionWarning ______ ERROR at teardown of test_await_read_lock[debug:false-fast-pyloop] ______ cls = func = . at 0xf5fd6de8> when = 'teardown' reraise = (, ) @classmethod def from_call( cls, func: Callable[[], TResult], when: Literal["collect", "setup", "call", "teardown"], reraise: Optional[ Union[Type[BaseException], Tuple[Type[BaseException], ...]] ] = None, ) -> "CallInfo[TResult]": """Call func, wrapping the result in a CallInfo. :param func: The function to call. Called without arguments. :param when: The phase in which the function is called. :param reraise: Exception or exceptions that shall propagate if raised by the function, instead of being wrapped in the CallInfo. """ excinfo = None start = timing.time() precise_start = timing.perf_counter() try: > result: Optional[TResult] = func() /usr/lib/python3/dist-packages/_pytest/runner.py:341: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/dist-packages/_pytest/runner.py:241: in lambda: runtest_hook(item=item, **kwds), when=when, reraise=reraise /usr/lib/python3/dist-packages/pluggy/_hooks.py:513: in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) /usr/lib/python3/dist-packages/pluggy/_manager.py:120: in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) /usr/lib/python3/dist-packages/_pytest/threadexception.py:92: in pytest_runtest_teardown yield from thread_exception_runtest_hook() /usr/lib/python3/dist-packages/_pytest/threadexception.py:63: in thread_exception_runtest_hook yield /usr/lib/python3/dist-packages/_pytest/unraisableexception.py:95: in pytest_runtest_teardown yield from unraisable_exception_runtest_hook() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ def unraisable_exception_runtest_hook() -> Generator[None, None, None]: with catch_unraisable_exception() as cm: try: yield finally: if cm.unraisable: if cm.unraisable.err_msg is not None: err_msg = cm.unraisable.err_msg else: err_msg = "Exception ignored in" msg = f"{err_msg}: {cm.unraisable.object!r}\n\n" msg += "".join( traceback.format_exception( cm.unraisable.exc_type, cm.unraisable.exc_value, cm.unraisable.exc_traceback, ) ) > warnings.warn(pytest.PytestUnraisableExceptionWarning(msg)) E pytest.PytestUnraisableExceptionWarning: Exception ignored in: E E Traceback (most recent call last): E File "/build/reproducible-path/aiorwlock-1.0.0/tests/conftest.py", line 44, in event_loop E gc.collect() E ResourceWarning: unclosed /usr/lib/python3/dist-packages/_pytest/unraisableexception.py:80: PytestUnraisableExceptionWarning _____ ERROR at teardown of test_await_write_lock[debug:false-fast-pyloop] ______ cls = func = . at 0xf64439d8> when = 'teardown' reraise = (, ) @classmethod def from_call( cls, func: Callable[[], TResult], when: Literal["collect", "setup", "call", "teardown"], reraise: Optional[ Union[Type[BaseException], Tuple[Type[BaseException], ...]] ] = None, ) -> "CallInfo[TResult]": """Call func, wrapping the result in a CallInfo. :param func: The function to call. Called without arguments. :param when: The phase in which the function is called. :param reraise: Exception or exceptions that shall propagate if raised by the function, instead of being wrapped in the CallInfo. """ excinfo = None start = timing.time() precise_start = timing.perf_counter() try: > result: Optional[TResult] = func() /usr/lib/python3/dist-packages/_pytest/runner.py:341: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/dist-packages/_pytest/runner.py:241: in lambda: runtest_hook(item=item, **kwds), when=when, reraise=reraise /usr/lib/python3/dist-packages/pluggy/_hooks.py:513: in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) /usr/lib/python3/dist-packages/pluggy/_manager.py:120: in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) /usr/lib/python3/dist-packages/_pytest/threadexception.py:92: in pytest_runtest_teardown yield from thread_exception_runtest_hook() /usr/lib/python3/dist-packages/_pytest/threadexception.py:63: in thread_exception_runtest_hook yield /usr/lib/python3/dist-packages/_pytest/unraisableexception.py:95: in pytest_runtest_teardown yield from unraisable_exception_runtest_hook() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ def unraisable_exception_runtest_hook() -> Generator[None, None, None]: with catch_unraisable_exception() as cm: try: yield finally: if cm.unraisable: if cm.unraisable.err_msg is not None: err_msg = cm.unraisable.err_msg else: err_msg = "Exception ignored in" msg = f"{err_msg}: {cm.unraisable.object!r}\n\n" msg += "".join( traceback.format_exception( cm.unraisable.exc_type, cm.unraisable.exc_value, cm.unraisable.exc_traceback, ) ) > warnings.warn(pytest.PytestUnraisableExceptionWarning(msg)) E pytest.PytestUnraisableExceptionWarning: Exception ignored in: E E Traceback (most recent call last): E File "/build/reproducible-path/aiorwlock-1.0.0/tests/conftest.py", line 44, in event_loop E gc.collect() E ResourceWarning: unclosed /usr/lib/python3/dist-packages/_pytest/unraisableexception.py:80: PytestUnraisableExceptionWarning _______ ERROR at teardown of test_many_readers[debug:false-fast-uvloop] ________ cls = func = . at 0xf5fd6de8> when = 'teardown' reraise = (, ) @classmethod def from_call( cls, func: Callable[[], TResult], when: Literal["collect", "setup", "call", "teardown"], reraise: Optional[ Union[Type[BaseException], Tuple[Type[BaseException], ...]] ] = None, ) -> "CallInfo[TResult]": """Call func, wrapping the result in a CallInfo. :param func: The function to call. Called without arguments. :param when: The phase in which the function is called. :param reraise: Exception or exceptions that shall propagate if raised by the function, instead of being wrapped in the CallInfo. """ excinfo = None start = timing.time() precise_start = timing.perf_counter() try: > result: Optional[TResult] = func() /usr/lib/python3/dist-packages/_pytest/runner.py:341: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/dist-packages/_pytest/runner.py:241: in lambda: runtest_hook(item=item, **kwds), when=when, reraise=reraise /usr/lib/python3/dist-packages/pluggy/_hooks.py:513: in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) /usr/lib/python3/dist-packages/pluggy/_manager.py:120: in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) /usr/lib/python3/dist-packages/_pytest/threadexception.py:92: in pytest_runtest_teardown yield from thread_exception_runtest_hook() /usr/lib/python3/dist-packages/_pytest/threadexception.py:63: in thread_exception_runtest_hook yield /usr/lib/python3/dist-packages/_pytest/unraisableexception.py:95: in pytest_runtest_teardown yield from unraisable_exception_runtest_hook() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ def unraisable_exception_runtest_hook() -> Generator[None, None, None]: with catch_unraisable_exception() as cm: try: yield finally: if cm.unraisable: if cm.unraisable.err_msg is not None: err_msg = cm.unraisable.err_msg else: err_msg = "Exception ignored in" msg = f"{err_msg}: {cm.unraisable.object!r}\n\n" msg += "".join( traceback.format_exception( cm.unraisable.exc_type, cm.unraisable.exc_value, cm.unraisable.exc_traceback, ) ) > warnings.warn(pytest.PytestUnraisableExceptionWarning(msg)) E pytest.PytestUnraisableExceptionWarning: Exception ignored in: E E Traceback (most recent call last): E File "/build/reproducible-path/aiorwlock-1.0.0/tests/conftest.py", line 44, in event_loop E gc.collect() E ResourceWarning: unclosed /usr/lib/python3/dist-packages/_pytest/unraisableexception.py:80: PytestUnraisableExceptionWarning _____ ERROR at teardown of test_reader_recursion[debug:false-fast-uvloop] ______ cls = func = . at 0xf5fd4c58> when = 'teardown' reraise = (, ) @classmethod def from_call( cls, func: Callable[[], TResult], when: Literal["collect", "setup", "call", "teardown"], reraise: Optional[ Union[Type[BaseException], Tuple[Type[BaseException], ...]] ] = None, ) -> "CallInfo[TResult]": """Call func, wrapping the result in a CallInfo. :param func: The function to call. Called without arguments. :param when: The phase in which the function is called. :param reraise: Exception or exceptions that shall propagate if raised by the function, instead of being wrapped in the CallInfo. """ excinfo = None start = timing.time() precise_start = timing.perf_counter() try: > result: Optional[TResult] = func() /usr/lib/python3/dist-packages/_pytest/runner.py:341: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/dist-packages/_pytest/runner.py:241: in lambda: runtest_hook(item=item, **kwds), when=when, reraise=reraise /usr/lib/python3/dist-packages/pluggy/_hooks.py:513: in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) /usr/lib/python3/dist-packages/pluggy/_manager.py:120: in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) /usr/lib/python3/dist-packages/_pytest/threadexception.py:92: in pytest_runtest_teardown yield from thread_exception_runtest_hook() /usr/lib/python3/dist-packages/_pytest/threadexception.py:63: in thread_exception_runtest_hook yield /usr/lib/python3/dist-packages/_pytest/unraisableexception.py:95: in pytest_runtest_teardown yield from unraisable_exception_runtest_hook() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ def unraisable_exception_runtest_hook() -> Generator[None, None, None]: with catch_unraisable_exception() as cm: try: yield finally: if cm.unraisable: if cm.unraisable.err_msg is not None: err_msg = cm.unraisable.err_msg else: err_msg = "Exception ignored in" msg = f"{err_msg}: {cm.unraisable.object!r}\n\n" msg += "".join( traceback.format_exception( cm.unraisable.exc_type, cm.unraisable.exc_value, cm.unraisable.exc_traceback, ) ) > warnings.warn(pytest.PytestUnraisableExceptionWarning(msg)) E pytest.PytestUnraisableExceptionWarning: Exception ignored in: E E Traceback (most recent call last): E File "/build/reproducible-path/aiorwlock-1.0.0/tests/conftest.py", line 44, in event_loop E gc.collect() E ResourceWarning: unclosed /usr/lib/python3/dist-packages/_pytest/unraisableexception.py:80: PytestUnraisableExceptionWarning _____ ERROR at teardown of test_writer_recursion[debug:false-fast-uvloop] ______ cls = func = . at 0xf5fd4618> when = 'teardown' reraise = (, ) @classmethod def from_call( cls, func: Callable[[], TResult], when: Literal["collect", "setup", "call", "teardown"], reraise: Optional[ Union[Type[BaseException], Tuple[Type[BaseException], ...]] ] = None, ) -> "CallInfo[TResult]": """Call func, wrapping the result in a CallInfo. :param func: The function to call. Called without arguments. :param when: The phase in which the function is called. :param reraise: Exception or exceptions that shall propagate if raised by the function, instead of being wrapped in the CallInfo. """ excinfo = None start = timing.time() precise_start = timing.perf_counter() try: > result: Optional[TResult] = func() /usr/lib/python3/dist-packages/_pytest/runner.py:341: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/dist-packages/_pytest/runner.py:241: in lambda: runtest_hook(item=item, **kwds), when=when, reraise=reraise /usr/lib/python3/dist-packages/pluggy/_hooks.py:513: in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) /usr/lib/python3/dist-packages/pluggy/_manager.py:120: in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) /usr/lib/python3/dist-packages/_pytest/threadexception.py:92: in pytest_runtest_teardown yield from thread_exception_runtest_hook() /usr/lib/python3/dist-packages/_pytest/threadexception.py:63: in thread_exception_runtest_hook yield /usr/lib/python3/dist-packages/_pytest/unraisableexception.py:95: in pytest_runtest_teardown yield from unraisable_exception_runtest_hook() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ def unraisable_exception_runtest_hook() -> Generator[None, None, None]: with catch_unraisable_exception() as cm: try: yield finally: if cm.unraisable: if cm.unraisable.err_msg is not None: err_msg = cm.unraisable.err_msg else: err_msg = "Exception ignored in" msg = f"{err_msg}: {cm.unraisable.object!r}\n\n" msg += "".join( traceback.format_exception( cm.unraisable.exc_type, cm.unraisable.exc_value, cm.unraisable.exc_traceback, ) ) > warnings.warn(pytest.PytestUnraisableExceptionWarning(msg)) E pytest.PytestUnraisableExceptionWarning: Exception ignored in: E E Traceback (most recent call last): E File "/build/reproducible-path/aiorwlock-1.0.0/tests/conftest.py", line 44, in event_loop E gc.collect() E ResourceWarning: unclosed /usr/lib/python3/dist-packages/_pytest/unraisableexception.py:80: PytestUnraisableExceptionWarning _ ERROR at teardown of test_writer_then_reader_recursion[debug:false-fast-uvloop] _ cls = func = . at 0xf5fd4c58> when = 'teardown' reraise = (, ) @classmethod def from_call( cls, func: Callable[[], TResult], when: Literal["collect", "setup", "call", "teardown"], reraise: Optional[ Union[Type[BaseException], Tuple[Type[BaseException], ...]] ] = None, ) -> "CallInfo[TResult]": """Call func, wrapping the result in a CallInfo. :param func: The function to call. Called without arguments. :param when: The phase in which the function is called. :param reraise: Exception or exceptions that shall propagate if raised by the function, instead of being wrapped in the CallInfo. """ excinfo = None start = timing.time() precise_start = timing.perf_counter() try: > result: Optional[TResult] = func() /usr/lib/python3/dist-packages/_pytest/runner.py:341: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/dist-packages/_pytest/runner.py:241: in lambda: runtest_hook(item=item, **kwds), when=when, reraise=reraise /usr/lib/python3/dist-packages/pluggy/_hooks.py:513: in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) /usr/lib/python3/dist-packages/pluggy/_manager.py:120: in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) /usr/lib/python3/dist-packages/_pytest/threadexception.py:92: in pytest_runtest_teardown yield from thread_exception_runtest_hook() /usr/lib/python3/dist-packages/_pytest/threadexception.py:63: in thread_exception_runtest_hook yield /usr/lib/python3/dist-packages/_pytest/unraisableexception.py:95: in pytest_runtest_teardown yield from unraisable_exception_runtest_hook() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ def unraisable_exception_runtest_hook() -> Generator[None, None, None]: with catch_unraisable_exception() as cm: try: yield finally: if cm.unraisable: if cm.unraisable.err_msg is not None: err_msg = cm.unraisable.err_msg else: err_msg = "Exception ignored in" msg = f"{err_msg}: {cm.unraisable.object!r}\n\n" msg += "".join( traceback.format_exception( cm.unraisable.exc_type, cm.unraisable.exc_value, cm.unraisable.exc_traceback, ) ) > warnings.warn(pytest.PytestUnraisableExceptionWarning(msg)) E pytest.PytestUnraisableExceptionWarning: Exception ignored in: E E Traceback (most recent call last): E File "/build/reproducible-path/aiorwlock-1.0.0/tests/conftest.py", line 44, in event_loop E gc.collect() E ResourceWarning: unclosed /usr/lib/python3/dist-packages/_pytest/unraisableexception.py:80: PytestUnraisableExceptionWarning ______ ERROR at teardown of test_readers_writers[debug:false-fast-uvloop] ______ cls = func = . at 0xf5fd4618> when = 'teardown' reraise = (, ) @classmethod def from_call( cls, func: Callable[[], TResult], when: Literal["collect", "setup", "call", "teardown"], reraise: Optional[ Union[Type[BaseException], Tuple[Type[BaseException], ...]] ] = None, ) -> "CallInfo[TResult]": """Call func, wrapping the result in a CallInfo. :param func: The function to call. Called without arguments. :param when: The phase in which the function is called. :param reraise: Exception or exceptions that shall propagate if raised by the function, instead of being wrapped in the CallInfo. """ excinfo = None start = timing.time() precise_start = timing.perf_counter() try: > result: Optional[TResult] = func() /usr/lib/python3/dist-packages/_pytest/runner.py:341: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/dist-packages/_pytest/runner.py:241: in lambda: runtest_hook(item=item, **kwds), when=when, reraise=reraise /usr/lib/python3/dist-packages/pluggy/_hooks.py:513: in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) /usr/lib/python3/dist-packages/pluggy/_manager.py:120: in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) /usr/lib/python3/dist-packages/_pytest/threadexception.py:92: in pytest_runtest_teardown yield from thread_exception_runtest_hook() /usr/lib/python3/dist-packages/_pytest/threadexception.py:63: in thread_exception_runtest_hook yield /usr/lib/python3/dist-packages/_pytest/unraisableexception.py:95: in pytest_runtest_teardown yield from unraisable_exception_runtest_hook() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ def unraisable_exception_runtest_hook() -> Generator[None, None, None]: with catch_unraisable_exception() as cm: try: yield finally: if cm.unraisable: if cm.unraisable.err_msg is not None: err_msg = cm.unraisable.err_msg else: err_msg = "Exception ignored in" msg = f"{err_msg}: {cm.unraisable.object!r}\n\n" msg += "".join( traceback.format_exception( cm.unraisable.exc_type, cm.unraisable.exc_value, cm.unraisable.exc_traceback, ) ) > warnings.warn(pytest.PytestUnraisableExceptionWarning(msg)) E pytest.PytestUnraisableExceptionWarning: Exception ignored in: E E Traceback (most recent call last): E File "/build/reproducible-path/aiorwlock-1.0.0/tests/conftest.py", line 44, in event_loop E gc.collect() E ResourceWarning: unclosed /usr/lib/python3/dist-packages/_pytest/unraisableexception.py:80: PytestUnraisableExceptionWarning _ ERROR at teardown of test_raise_error_on_with_for_reader_lock[debug:false-fast-uvloop] _ cls = func = . at 0xf5fd4c58> when = 'teardown' reraise = (, ) @classmethod def from_call( cls, func: Callable[[], TResult], when: Literal["collect", "setup", "call", "teardown"], reraise: Optional[ Union[Type[BaseException], Tuple[Type[BaseException], ...]] ] = None, ) -> "CallInfo[TResult]": """Call func, wrapping the result in a CallInfo. :param func: The function to call. Called without arguments. :param when: The phase in which the function is called. :param reraise: Exception or exceptions that shall propagate if raised by the function, instead of being wrapped in the CallInfo. """ excinfo = None start = timing.time() precise_start = timing.perf_counter() try: > result: Optional[TResult] = func() /usr/lib/python3/dist-packages/_pytest/runner.py:341: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/dist-packages/_pytest/runner.py:241: in lambda: runtest_hook(item=item, **kwds), when=when, reraise=reraise /usr/lib/python3/dist-packages/pluggy/_hooks.py:513: in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) /usr/lib/python3/dist-packages/pluggy/_manager.py:120: in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) /usr/lib/python3/dist-packages/_pytest/threadexception.py:92: in pytest_runtest_teardown yield from thread_exception_runtest_hook() /usr/lib/python3/dist-packages/_pytest/threadexception.py:63: in thread_exception_runtest_hook yield /usr/lib/python3/dist-packages/_pytest/unraisableexception.py:95: in pytest_runtest_teardown yield from unraisable_exception_runtest_hook() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ def unraisable_exception_runtest_hook() -> Generator[None, None, None]: with catch_unraisable_exception() as cm: try: yield finally: if cm.unraisable: if cm.unraisable.err_msg is not None: err_msg = cm.unraisable.err_msg else: err_msg = "Exception ignored in" msg = f"{err_msg}: {cm.unraisable.object!r}\n\n" msg += "".join( traceback.format_exception( cm.unraisable.exc_type, cm.unraisable.exc_value, cm.unraisable.exc_traceback, ) ) > warnings.warn(pytest.PytestUnraisableExceptionWarning(msg)) E pytest.PytestUnraisableExceptionWarning: Exception ignored in: E E Traceback (most recent call last): E File "/build/reproducible-path/aiorwlock-1.0.0/tests/conftest.py", line 44, in event_loop E gc.collect() E ResourceWarning: unclosed /usr/lib/python3/dist-packages/_pytest/unraisableexception.py:80: PytestUnraisableExceptionWarning _ ERROR at teardown of test_raise_error_on_with_for_writer_lock[debug:false-fast-uvloop] _ cls = func = . at 0xf5fd4618> when = 'teardown' reraise = (, ) @classmethod def from_call( cls, func: Callable[[], TResult], when: Literal["collect", "setup", "call", "teardown"], reraise: Optional[ Union[Type[BaseException], Tuple[Type[BaseException], ...]] ] = None, ) -> "CallInfo[TResult]": """Call func, wrapping the result in a CallInfo. :param func: The function to call. Called without arguments. :param when: The phase in which the function is called. :param reraise: Exception or exceptions that shall propagate if raised by the function, instead of being wrapped in the CallInfo. """ excinfo = None start = timing.time() precise_start = timing.perf_counter() try: > result: Optional[TResult] = func() /usr/lib/python3/dist-packages/_pytest/runner.py:341: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/dist-packages/_pytest/runner.py:241: in lambda: runtest_hook(item=item, **kwds), when=when, reraise=reraise /usr/lib/python3/dist-packages/pluggy/_hooks.py:513: in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) /usr/lib/python3/dist-packages/pluggy/_manager.py:120: in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) /usr/lib/python3/dist-packages/_pytest/threadexception.py:92: in pytest_runtest_teardown yield from thread_exception_runtest_hook() /usr/lib/python3/dist-packages/_pytest/threadexception.py:63: in thread_exception_runtest_hook yield /usr/lib/python3/dist-packages/_pytest/unraisableexception.py:95: in pytest_runtest_teardown yield from unraisable_exception_runtest_hook() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ def unraisable_exception_runtest_hook() -> Generator[None, None, None]: with catch_unraisable_exception() as cm: try: yield finally: if cm.unraisable: if cm.unraisable.err_msg is not None: err_msg = cm.unraisable.err_msg else: err_msg = "Exception ignored in" msg = f"{err_msg}: {cm.unraisable.object!r}\n\n" msg += "".join( traceback.format_exception( cm.unraisable.exc_type, cm.unraisable.exc_value, cm.unraisable.exc_traceback, ) ) > warnings.warn(pytest.PytestUnraisableExceptionWarning(msg)) E pytest.PytestUnraisableExceptionWarning: Exception ignored in: E E Traceback (most recent call last): E File "/build/reproducible-path/aiorwlock-1.0.0/tests/conftest.py", line 44, in event_loop E gc.collect() E ResourceWarning: unclosed /usr/lib/python3/dist-packages/_pytest/unraisableexception.py:80: PytestUnraisableExceptionWarning ________ ERROR at teardown of test_read_locked[debug:false-fast-uvloop] ________ cls = func = . at 0xf5fd4c58> when = 'teardown' reraise = (, ) @classmethod def from_call( cls, func: Callable[[], TResult], when: Literal["collect", "setup", "call", "teardown"], reraise: Optional[ Union[Type[BaseException], Tuple[Type[BaseException], ...]] ] = None, ) -> "CallInfo[TResult]": """Call func, wrapping the result in a CallInfo. :param func: The function to call. Called without arguments. :param when: The phase in which the function is called. :param reraise: Exception or exceptions that shall propagate if raised by the function, instead of being wrapped in the CallInfo. """ excinfo = None start = timing.time() precise_start = timing.perf_counter() try: > result: Optional[TResult] = func() /usr/lib/python3/dist-packages/_pytest/runner.py:341: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/dist-packages/_pytest/runner.py:241: in lambda: runtest_hook(item=item, **kwds), when=when, reraise=reraise /usr/lib/python3/dist-packages/pluggy/_hooks.py:513: in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) /usr/lib/python3/dist-packages/pluggy/_manager.py:120: in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) /usr/lib/python3/dist-packages/_pytest/threadexception.py:92: in pytest_runtest_teardown yield from thread_exception_runtest_hook() /usr/lib/python3/dist-packages/_pytest/threadexception.py:63: in thread_exception_runtest_hook yield /usr/lib/python3/dist-packages/_pytest/unraisableexception.py:95: in pytest_runtest_teardown yield from unraisable_exception_runtest_hook() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ def unraisable_exception_runtest_hook() -> Generator[None, None, None]: with catch_unraisable_exception() as cm: try: yield finally: if cm.unraisable: if cm.unraisable.err_msg is not None: err_msg = cm.unraisable.err_msg else: err_msg = "Exception ignored in" msg = f"{err_msg}: {cm.unraisable.object!r}\n\n" msg += "".join( traceback.format_exception( cm.unraisable.exc_type, cm.unraisable.exc_value, cm.unraisable.exc_traceback, ) ) > warnings.warn(pytest.PytestUnraisableExceptionWarning(msg)) E pytest.PytestUnraisableExceptionWarning: Exception ignored in: E E Traceback (most recent call last): E File "/build/reproducible-path/aiorwlock-1.0.0/tests/conftest.py", line 44, in event_loop E gc.collect() E ResourceWarning: unclosed /usr/lib/python3/dist-packages/_pytest/unraisableexception.py:80: PytestUnraisableExceptionWarning _______ ERROR at teardown of test_write_locked[debug:false-fast-uvloop] ________ cls = func = . at 0xf5fd4618> when = 'teardown' reraise = (, ) @classmethod def from_call( cls, func: Callable[[], TResult], when: Literal["collect", "setup", "call", "teardown"], reraise: Optional[ Union[Type[BaseException], Tuple[Type[BaseException], ...]] ] = None, ) -> "CallInfo[TResult]": """Call func, wrapping the result in a CallInfo. :param func: The function to call. Called without arguments. :param when: The phase in which the function is called. :param reraise: Exception or exceptions that shall propagate if raised by the function, instead of being wrapped in the CallInfo. """ excinfo = None start = timing.time() precise_start = timing.perf_counter() try: > result: Optional[TResult] = func() /usr/lib/python3/dist-packages/_pytest/runner.py:341: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/dist-packages/_pytest/runner.py:241: in lambda: runtest_hook(item=item, **kwds), when=when, reraise=reraise /usr/lib/python3/dist-packages/pluggy/_hooks.py:513: in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) /usr/lib/python3/dist-packages/pluggy/_manager.py:120: in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) /usr/lib/python3/dist-packages/_pytest/threadexception.py:92: in pytest_runtest_teardown yield from thread_exception_runtest_hook() /usr/lib/python3/dist-packages/_pytest/threadexception.py:63: in thread_exception_runtest_hook yield /usr/lib/python3/dist-packages/_pytest/unraisableexception.py:95: in pytest_runtest_teardown yield from unraisable_exception_runtest_hook() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ def unraisable_exception_runtest_hook() -> Generator[None, None, None]: with catch_unraisable_exception() as cm: try: yield finally: if cm.unraisable: if cm.unraisable.err_msg is not None: err_msg = cm.unraisable.err_msg else: err_msg = "Exception ignored in" msg = f"{err_msg}: {cm.unraisable.object!r}\n\n" msg += "".join( traceback.format_exception( cm.unraisable.exc_type, cm.unraisable.exc_value, cm.unraisable.exc_traceback, ) ) > warnings.warn(pytest.PytestUnraisableExceptionWarning(msg)) E pytest.PytestUnraisableExceptionWarning: Exception ignored in: E E Traceback (most recent call last): E File "/build/reproducible-path/aiorwlock-1.0.0/tests/conftest.py", line 44, in event_loop E gc.collect() E ResourceWarning: unclosed /usr/lib/python3/dist-packages/_pytest/unraisableexception.py:80: PytestUnraisableExceptionWarning _ ERROR at teardown of test_write_read_lock_multiple_tasks[debug:false-fast-uvloop] _ cls = func = . at 0xf5fd4c58> when = 'teardown' reraise = (, ) @classmethod def from_call( cls, func: Callable[[], TResult], when: Literal["collect", "setup", "call", "teardown"], reraise: Optional[ Union[Type[BaseException], Tuple[Type[BaseException], ...]] ] = None, ) -> "CallInfo[TResult]": """Call func, wrapping the result in a CallInfo. :param func: The function to call. Called without arguments. :param when: The phase in which the function is called. :param reraise: Exception or exceptions that shall propagate if raised by the function, instead of being wrapped in the CallInfo. """ excinfo = None start = timing.time() precise_start = timing.perf_counter() try: > result: Optional[TResult] = func() /usr/lib/python3/dist-packages/_pytest/runner.py:341: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/dist-packages/_pytest/runner.py:241: in lambda: runtest_hook(item=item, **kwds), when=when, reraise=reraise /usr/lib/python3/dist-packages/pluggy/_hooks.py:513: in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) /usr/lib/python3/dist-packages/pluggy/_manager.py:120: in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) /usr/lib/python3/dist-packages/_pytest/threadexception.py:92: in pytest_runtest_teardown yield from thread_exception_runtest_hook() /usr/lib/python3/dist-packages/_pytest/threadexception.py:63: in thread_exception_runtest_hook yield /usr/lib/python3/dist-packages/_pytest/unraisableexception.py:95: in pytest_runtest_teardown yield from unraisable_exception_runtest_hook() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ def unraisable_exception_runtest_hook() -> Generator[None, None, None]: with catch_unraisable_exception() as cm: try: yield finally: if cm.unraisable: if cm.unraisable.err_msg is not None: err_msg = cm.unraisable.err_msg else: err_msg = "Exception ignored in" msg = f"{err_msg}: {cm.unraisable.object!r}\n\n" msg += "".join( traceback.format_exception( cm.unraisable.exc_type, cm.unraisable.exc_value, cm.unraisable.exc_traceback, ) ) > warnings.warn(pytest.PytestUnraisableExceptionWarning(msg)) E pytest.PytestUnraisableExceptionWarning: Exception ignored in: E E Traceback (most recent call last): E File "/build/reproducible-path/aiorwlock-1.0.0/tests/conftest.py", line 44, in event_loop E gc.collect() E ResourceWarning: unclosed /usr/lib/python3/dist-packages/_pytest/unraisableexception.py:80: PytestUnraisableExceptionWarning ___ ERROR at teardown of test_read_context_manager[debug:false-fast-uvloop] ____ cls = func = . at 0xf5fd4618> when = 'teardown' reraise = (, ) @classmethod def from_call( cls, func: Callable[[], TResult], when: Literal["collect", "setup", "call", "teardown"], reraise: Optional[ Union[Type[BaseException], Tuple[Type[BaseException], ...]] ] = None, ) -> "CallInfo[TResult]": """Call func, wrapping the result in a CallInfo. :param func: The function to call. Called without arguments. :param when: The phase in which the function is called. :param reraise: Exception or exceptions that shall propagate if raised by the function, instead of being wrapped in the CallInfo. """ excinfo = None start = timing.time() precise_start = timing.perf_counter() try: > result: Optional[TResult] = func() /usr/lib/python3/dist-packages/_pytest/runner.py:341: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/dist-packages/_pytest/runner.py:241: in lambda: runtest_hook(item=item, **kwds), when=when, reraise=reraise /usr/lib/python3/dist-packages/pluggy/_hooks.py:513: in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) /usr/lib/python3/dist-packages/pluggy/_manager.py:120: in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) /usr/lib/python3/dist-packages/_pytest/threadexception.py:92: in pytest_runtest_teardown yield from thread_exception_runtest_hook() /usr/lib/python3/dist-packages/_pytest/threadexception.py:63: in thread_exception_runtest_hook yield /usr/lib/python3/dist-packages/_pytest/unraisableexception.py:95: in pytest_runtest_teardown yield from unraisable_exception_runtest_hook() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ def unraisable_exception_runtest_hook() -> Generator[None, None, None]: with catch_unraisable_exception() as cm: try: yield finally: if cm.unraisable: if cm.unraisable.err_msg is not None: err_msg = cm.unraisable.err_msg else: err_msg = "Exception ignored in" msg = f"{err_msg}: {cm.unraisable.object!r}\n\n" msg += "".join( traceback.format_exception( cm.unraisable.exc_type, cm.unraisable.exc_value, cm.unraisable.exc_traceback, ) ) > warnings.warn(pytest.PytestUnraisableExceptionWarning(msg)) E pytest.PytestUnraisableExceptionWarning: Exception ignored in: E E Traceback (most recent call last): E File "/build/reproducible-path/aiorwlock-1.0.0/tests/conftest.py", line 44, in event_loop E gc.collect() E ResourceWarning: unclosed /usr/lib/python3/dist-packages/_pytest/unraisableexception.py:80: PytestUnraisableExceptionWarning ___ ERROR at teardown of test_write_context_manager[debug:false-fast-uvloop] ___ cls = func = . at 0xf5fd4c58> when = 'teardown' reraise = (, ) @classmethod def from_call( cls, func: Callable[[], TResult], when: Literal["collect", "setup", "call", "teardown"], reraise: Optional[ Union[Type[BaseException], Tuple[Type[BaseException], ...]] ] = None, ) -> "CallInfo[TResult]": """Call func, wrapping the result in a CallInfo. :param func: The function to call. Called without arguments. :param when: The phase in which the function is called. :param reraise: Exception or exceptions that shall propagate if raised by the function, instead of being wrapped in the CallInfo. """ excinfo = None start = timing.time() precise_start = timing.perf_counter() try: > result: Optional[TResult] = func() /usr/lib/python3/dist-packages/_pytest/runner.py:341: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/dist-packages/_pytest/runner.py:241: in lambda: runtest_hook(item=item, **kwds), when=when, reraise=reraise /usr/lib/python3/dist-packages/pluggy/_hooks.py:513: in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) /usr/lib/python3/dist-packages/pluggy/_manager.py:120: in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) /usr/lib/python3/dist-packages/_pytest/threadexception.py:92: in pytest_runtest_teardown yield from thread_exception_runtest_hook() /usr/lib/python3/dist-packages/_pytest/threadexception.py:63: in thread_exception_runtest_hook yield /usr/lib/python3/dist-packages/_pytest/unraisableexception.py:95: in pytest_runtest_teardown yield from unraisable_exception_runtest_hook() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ def unraisable_exception_runtest_hook() -> Generator[None, None, None]: with catch_unraisable_exception() as cm: try: yield finally: if cm.unraisable: if cm.unraisable.err_msg is not None: err_msg = cm.unraisable.err_msg else: err_msg = "Exception ignored in" msg = f"{err_msg}: {cm.unraisable.object!r}\n\n" msg += "".join( traceback.format_exception( cm.unraisable.exc_type, cm.unraisable.exc_value, cm.unraisable.exc_traceback, ) ) > warnings.warn(pytest.PytestUnraisableExceptionWarning(msg)) E pytest.PytestUnraisableExceptionWarning: Exception ignored in: E E Traceback (most recent call last): E File "/build/reproducible-path/aiorwlock-1.0.0/tests/conftest.py", line 44, in event_loop E gc.collect() E ResourceWarning: unclosed /usr/lib/python3/dist-packages/_pytest/unraisableexception.py:80: PytestUnraisableExceptionWarning ______ ERROR at teardown of test_await_read_lock[debug:false-fast-uvloop] ______ cls = func = . at 0xf5fd4618> when = 'teardown' reraise = (, ) @classmethod def from_call( cls, func: Callable[[], TResult], when: Literal["collect", "setup", "call", "teardown"], reraise: Optional[ Union[Type[BaseException], Tuple[Type[BaseException], ...]] ] = None, ) -> "CallInfo[TResult]": """Call func, wrapping the result in a CallInfo. :param func: The function to call. Called without arguments. :param when: The phase in which the function is called. :param reraise: Exception or exceptions that shall propagate if raised by the function, instead of being wrapped in the CallInfo. """ excinfo = None start = timing.time() precise_start = timing.perf_counter() try: > result: Optional[TResult] = func() /usr/lib/python3/dist-packages/_pytest/runner.py:341: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/dist-packages/_pytest/runner.py:241: in lambda: runtest_hook(item=item, **kwds), when=when, reraise=reraise /usr/lib/python3/dist-packages/pluggy/_hooks.py:513: in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) /usr/lib/python3/dist-packages/pluggy/_manager.py:120: in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) /usr/lib/python3/dist-packages/_pytest/threadexception.py:92: in pytest_runtest_teardown yield from thread_exception_runtest_hook() /usr/lib/python3/dist-packages/_pytest/threadexception.py:63: in thread_exception_runtest_hook yield /usr/lib/python3/dist-packages/_pytest/unraisableexception.py:95: in pytest_runtest_teardown yield from unraisable_exception_runtest_hook() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ def unraisable_exception_runtest_hook() -> Generator[None, None, None]: with catch_unraisable_exception() as cm: try: yield finally: if cm.unraisable: if cm.unraisable.err_msg is not None: err_msg = cm.unraisable.err_msg else: err_msg = "Exception ignored in" msg = f"{err_msg}: {cm.unraisable.object!r}\n\n" msg += "".join( traceback.format_exception( cm.unraisable.exc_type, cm.unraisable.exc_value, cm.unraisable.exc_traceback, ) ) > warnings.warn(pytest.PytestUnraisableExceptionWarning(msg)) E pytest.PytestUnraisableExceptionWarning: Exception ignored in: E E Traceback (most recent call last): E File "/build/reproducible-path/aiorwlock-1.0.0/tests/conftest.py", line 44, in event_loop E gc.collect() E ResourceWarning: unclosed /usr/lib/python3/dist-packages/_pytest/unraisableexception.py:80: PytestUnraisableExceptionWarning _____ ERROR at teardown of test_await_write_lock[debug:false-fast-uvloop] ______ cls = func = . at 0xf5fd4c58> when = 'teardown' reraise = (, ) @classmethod def from_call( cls, func: Callable[[], TResult], when: Literal["collect", "setup", "call", "teardown"], reraise: Optional[ Union[Type[BaseException], Tuple[Type[BaseException], ...]] ] = None, ) -> "CallInfo[TResult]": """Call func, wrapping the result in a CallInfo. :param func: The function to call. Called without arguments. :param when: The phase in which the function is called. :param reraise: Exception or exceptions that shall propagate if raised by the function, instead of being wrapped in the CallInfo. """ excinfo = None start = timing.time() precise_start = timing.perf_counter() try: > result: Optional[TResult] = func() /usr/lib/python3/dist-packages/_pytest/runner.py:341: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/dist-packages/_pytest/runner.py:241: in lambda: runtest_hook(item=item, **kwds), when=when, reraise=reraise /usr/lib/python3/dist-packages/pluggy/_hooks.py:513: in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) /usr/lib/python3/dist-packages/pluggy/_manager.py:120: in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) /usr/lib/python3/dist-packages/_pytest/threadexception.py:92: in pytest_runtest_teardown yield from thread_exception_runtest_hook() /usr/lib/python3/dist-packages/_pytest/threadexception.py:63: in thread_exception_runtest_hook yield /usr/lib/python3/dist-packages/_pytest/unraisableexception.py:95: in pytest_runtest_teardown yield from unraisable_exception_runtest_hook() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ def unraisable_exception_runtest_hook() -> Generator[None, None, None]: with catch_unraisable_exception() as cm: try: yield finally: if cm.unraisable: if cm.unraisable.err_msg is not None: err_msg = cm.unraisable.err_msg else: err_msg = "Exception ignored in" msg = f"{err_msg}: {cm.unraisable.object!r}\n\n" msg += "".join( traceback.format_exception( cm.unraisable.exc_type, cm.unraisable.exc_value, cm.unraisable.exc_traceback, ) ) > warnings.warn(pytest.PytestUnraisableExceptionWarning(msg)) E pytest.PytestUnraisableExceptionWarning: Exception ignored in: E E Traceback (most recent call last): E File "/build/reproducible-path/aiorwlock-1.0.0/tests/conftest.py", line 44, in event_loop E gc.collect() E ResourceWarning: unclosed /usr/lib/python3/dist-packages/_pytest/unraisableexception.py:80: PytestUnraisableExceptionWarning _ ERROR at teardown of test_ctor_deprecated_implicit_not_running[debug:false-uvloop] _ cls = func = . at 0xf5fd4618> when = 'teardown' reraise = (, ) @classmethod def from_call( cls, func: Callable[[], TResult], when: Literal["collect", "setup", "call", "teardown"], reraise: Optional[ Union[Type[BaseException], Tuple[Type[BaseException], ...]] ] = None, ) -> "CallInfo[TResult]": """Call func, wrapping the result in a CallInfo. :param func: The function to call. Called without arguments. :param when: The phase in which the function is called. :param reraise: Exception or exceptions that shall propagate if raised by the function, instead of being wrapped in the CallInfo. """ excinfo = None start = timing.time() precise_start = timing.perf_counter() try: > result: Optional[TResult] = func() /usr/lib/python3/dist-packages/_pytest/runner.py:341: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/dist-packages/_pytest/runner.py:241: in lambda: runtest_hook(item=item, **kwds), when=when, reraise=reraise /usr/lib/python3/dist-packages/pluggy/_hooks.py:513: in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) /usr/lib/python3/dist-packages/pluggy/_manager.py:120: in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) /usr/lib/python3/dist-packages/_pytest/threadexception.py:92: in pytest_runtest_teardown yield from thread_exception_runtest_hook() /usr/lib/python3/dist-packages/_pytest/threadexception.py:63: in thread_exception_runtest_hook yield /usr/lib/python3/dist-packages/_pytest/unraisableexception.py:95: in pytest_runtest_teardown yield from unraisable_exception_runtest_hook() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ def unraisable_exception_runtest_hook() -> Generator[None, None, None]: with catch_unraisable_exception() as cm: try: yield finally: if cm.unraisable: if cm.unraisable.err_msg is not None: err_msg = cm.unraisable.err_msg else: err_msg = "Exception ignored in" msg = f"{err_msg}: {cm.unraisable.object!r}\n\n" msg += "".join( traceback.format_exception( cm.unraisable.exc_type, cm.unraisable.exc_value, cm.unraisable.exc_traceback, ) ) > warnings.warn(pytest.PytestUnraisableExceptionWarning(msg)) E pytest.PytestUnraisableExceptionWarning: Exception ignored in: E E Traceback (most recent call last): E File "/build/reproducible-path/aiorwlock-1.0.0/tests/conftest.py", line 44, in event_loop E gc.collect() E ResourceWarning: unclosed /usr/lib/python3/dist-packages/_pytest/unraisableexception.py:80: PytestUnraisableExceptionWarning _ ERROR at teardown of test_ctor_deprecated_explicit_non_running[debug:false-uvloop] _ cls = func = . at 0xf5fd4c58> when = 'teardown' reraise = (, ) @classmethod def from_call( cls, func: Callable[[], TResult], when: Literal["collect", "setup", "call", "teardown"], reraise: Optional[ Union[Type[BaseException], Tuple[Type[BaseException], ...]] ] = None, ) -> "CallInfo[TResult]": """Call func, wrapping the result in a CallInfo. :param func: The function to call. Called without arguments. :param when: The phase in which the function is called. :param reraise: Exception or exceptions that shall propagate if raised by the function, instead of being wrapped in the CallInfo. """ excinfo = None start = timing.time() precise_start = timing.perf_counter() try: > result: Optional[TResult] = func() /usr/lib/python3/dist-packages/_pytest/runner.py:341: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/dist-packages/_pytest/runner.py:241: in lambda: runtest_hook(item=item, **kwds), when=when, reraise=reraise /usr/lib/python3/dist-packages/pluggy/_hooks.py:513: in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) /usr/lib/python3/dist-packages/pluggy/_manager.py:120: in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) /usr/lib/python3/dist-packages/_pytest/threadexception.py:92: in pytest_runtest_teardown yield from thread_exception_runtest_hook() /usr/lib/python3/dist-packages/_pytest/threadexception.py:63: in thread_exception_runtest_hook yield /usr/lib/python3/dist-packages/_pytest/unraisableexception.py:95: in pytest_runtest_teardown yield from unraisable_exception_runtest_hook() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ def unraisable_exception_runtest_hook() -> Generator[None, None, None]: with catch_unraisable_exception() as cm: try: yield finally: if cm.unraisable: if cm.unraisable.err_msg is not None: err_msg = cm.unraisable.err_msg else: err_msg = "Exception ignored in" msg = f"{err_msg}: {cm.unraisable.object!r}\n\n" msg += "".join( traceback.format_exception( cm.unraisable.exc_type, cm.unraisable.exc_value, cm.unraisable.exc_traceback, ) ) > warnings.warn(pytest.PytestUnraisableExceptionWarning(msg)) E pytest.PytestUnraisableExceptionWarning: Exception ignored in: E E Traceback (most recent call last): E File "/build/reproducible-path/aiorwlock-1.0.0/tests/conftest.py", line 44, in event_loop E gc.collect() E ResourceWarning: unclosed /usr/lib/python3/dist-packages/_pytest/unraisableexception.py:80: PytestUnraisableExceptionWarning ____ ERROR at teardown of test_ctor_loop_deprecated_arg[debug:false-uvloop] ____ cls = func = . at 0xf6309a78> when = 'teardown' reraise = (, ) @classmethod def from_call( cls, func: Callable[[], TResult], when: Literal["collect", "setup", "call", "teardown"], reraise: Optional[ Union[Type[BaseException], Tuple[Type[BaseException], ...]] ] = None, ) -> "CallInfo[TResult]": """Call func, wrapping the result in a CallInfo. :param func: The function to call. Called without arguments. :param when: The phase in which the function is called. :param reraise: Exception or exceptions that shall propagate if raised by the function, instead of being wrapped in the CallInfo. """ excinfo = None start = timing.time() precise_start = timing.perf_counter() try: > result: Optional[TResult] = func() /usr/lib/python3/dist-packages/_pytest/runner.py:341: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/dist-packages/_pytest/runner.py:241: in lambda: runtest_hook(item=item, **kwds), when=when, reraise=reraise /usr/lib/python3/dist-packages/pluggy/_hooks.py:513: in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) /usr/lib/python3/dist-packages/pluggy/_manager.py:120: in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) /usr/lib/python3/dist-packages/_pytest/threadexception.py:92: in pytest_runtest_teardown yield from thread_exception_runtest_hook() /usr/lib/python3/dist-packages/_pytest/threadexception.py:63: in thread_exception_runtest_hook yield /usr/lib/python3/dist-packages/_pytest/unraisableexception.py:95: in pytest_runtest_teardown yield from unraisable_exception_runtest_hook() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ def unraisable_exception_runtest_hook() -> Generator[None, None, None]: with catch_unraisable_exception() as cm: try: yield finally: if cm.unraisable: if cm.unraisable.err_msg is not None: err_msg = cm.unraisable.err_msg else: err_msg = "Exception ignored in" msg = f"{err_msg}: {cm.unraisable.object!r}\n\n" msg += "".join( traceback.format_exception( cm.unraisable.exc_type, cm.unraisable.exc_value, cm.unraisable.exc_traceback, ) ) > warnings.warn(pytest.PytestUnraisableExceptionWarning(msg)) E pytest.PytestUnraisableExceptionWarning: Exception ignored in: E E Traceback (most recent call last): E File "/build/reproducible-path/aiorwlock-1.0.0/tests/conftest.py", line 44, in event_loop E gc.collect() E ResourceWarning: unclosed /usr/lib/python3/dist-packages/_pytest/unraisableexception.py:80: PytestUnraisableExceptionWarning ________ ERROR at teardown of test_ctor_loop_reader[debug:false-uvloop] ________ cls = func = . at 0xf5fd4c58> when = 'teardown' reraise = (, ) @classmethod def from_call( cls, func: Callable[[], TResult], when: Literal["collect", "setup", "call", "teardown"], reraise: Optional[ Union[Type[BaseException], Tuple[Type[BaseException], ...]] ] = None, ) -> "CallInfo[TResult]": """Call func, wrapping the result in a CallInfo. :param func: The function to call. Called without arguments. :param when: The phase in which the function is called. :param reraise: Exception or exceptions that shall propagate if raised by the function, instead of being wrapped in the CallInfo. """ excinfo = None start = timing.time() precise_start = timing.perf_counter() try: > result: Optional[TResult] = func() /usr/lib/python3/dist-packages/_pytest/runner.py:341: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/dist-packages/_pytest/runner.py:241: in lambda: runtest_hook(item=item, **kwds), when=when, reraise=reraise /usr/lib/python3/dist-packages/pluggy/_hooks.py:513: in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) /usr/lib/python3/dist-packages/pluggy/_manager.py:120: in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) /usr/lib/python3/dist-packages/_pytest/threadexception.py:92: in pytest_runtest_teardown yield from thread_exception_runtest_hook() /usr/lib/python3/dist-packages/_pytest/threadexception.py:63: in thread_exception_runtest_hook yield /usr/lib/python3/dist-packages/_pytest/unraisableexception.py:95: in pytest_runtest_teardown yield from unraisable_exception_runtest_hook() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ def unraisable_exception_runtest_hook() -> Generator[None, None, None]: with catch_unraisable_exception() as cm: try: yield finally: if cm.unraisable: if cm.unraisable.err_msg is not None: err_msg = cm.unraisable.err_msg else: err_msg = "Exception ignored in" msg = f"{err_msg}: {cm.unraisable.object!r}\n\n" msg += "".join( traceback.format_exception( cm.unraisable.exc_type, cm.unraisable.exc_value, cm.unraisable.exc_traceback, ) ) > warnings.warn(pytest.PytestUnraisableExceptionWarning(msg)) E pytest.PytestUnraisableExceptionWarning: Exception ignored in: E E Traceback (most recent call last): E File "/build/reproducible-path/aiorwlock-1.0.0/tests/conftest.py", line 44, in event_loop E gc.collect() E ResourceWarning: unclosed /usr/lib/python3/dist-packages/_pytest/unraisableexception.py:80: PytestUnraisableExceptionWarning _______ ERROR at teardown of test_ctor_noloop_reader[debug:false-uvloop] _______ cls = func = . at 0xf6309a78> when = 'teardown' reraise = (, ) @classmethod def from_call( cls, func: Callable[[], TResult], when: Literal["collect", "setup", "call", "teardown"], reraise: Optional[ Union[Type[BaseException], Tuple[Type[BaseException], ...]] ] = None, ) -> "CallInfo[TResult]": """Call func, wrapping the result in a CallInfo. :param func: The function to call. Called without arguments. :param when: The phase in which the function is called. :param reraise: Exception or exceptions that shall propagate if raised by the function, instead of being wrapped in the CallInfo. """ excinfo = None start = timing.time() precise_start = timing.perf_counter() try: > result: Optional[TResult] = func() /usr/lib/python3/dist-packages/_pytest/runner.py:341: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/dist-packages/_pytest/runner.py:241: in lambda: runtest_hook(item=item, **kwds), when=when, reraise=reraise /usr/lib/python3/dist-packages/pluggy/_hooks.py:513: in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) /usr/lib/python3/dist-packages/pluggy/_manager.py:120: in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) /usr/lib/python3/dist-packages/_pytest/threadexception.py:92: in pytest_runtest_teardown yield from thread_exception_runtest_hook() /usr/lib/python3/dist-packages/_pytest/threadexception.py:63: in thread_exception_runtest_hook yield /usr/lib/python3/dist-packages/_pytest/unraisableexception.py:95: in pytest_runtest_teardown yield from unraisable_exception_runtest_hook() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ def unraisable_exception_runtest_hook() -> Generator[None, None, None]: with catch_unraisable_exception() as cm: try: yield finally: if cm.unraisable: if cm.unraisable.err_msg is not None: err_msg = cm.unraisable.err_msg else: err_msg = "Exception ignored in" msg = f"{err_msg}: {cm.unraisable.object!r}\n\n" msg += "".join( traceback.format_exception( cm.unraisable.exc_type, cm.unraisable.exc_value, cm.unraisable.exc_traceback, ) ) > warnings.warn(pytest.PytestUnraisableExceptionWarning(msg)) E pytest.PytestUnraisableExceptionWarning: Exception ignored in: E E Traceback (most recent call last): E File "/build/reproducible-path/aiorwlock-1.0.0/tests/conftest.py", line 44, in event_loop E gc.collect() E ResourceWarning: unclosed /usr/lib/python3/dist-packages/_pytest/unraisableexception.py:80: PytestUnraisableExceptionWarning ________ ERROR at teardown of test_ctor_loop_writer[debug:false-uvloop] ________ cls = func = . at 0xf5fd4c58> when = 'teardown' reraise = (, ) @classmethod def from_call( cls, func: Callable[[], TResult], when: Literal["collect", "setup", "call", "teardown"], reraise: Optional[ Union[Type[BaseException], Tuple[Type[BaseException], ...]] ] = None, ) -> "CallInfo[TResult]": """Call func, wrapping the result in a CallInfo. :param func: The function to call. Called without arguments. :param when: The phase in which the function is called. :param reraise: Exception or exceptions that shall propagate if raised by the function, instead of being wrapped in the CallInfo. """ excinfo = None start = timing.time() precise_start = timing.perf_counter() try: > result: Optional[TResult] = func() /usr/lib/python3/dist-packages/_pytest/runner.py:341: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/dist-packages/_pytest/runner.py:241: in lambda: runtest_hook(item=item, **kwds), when=when, reraise=reraise /usr/lib/python3/dist-packages/pluggy/_hooks.py:513: in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) /usr/lib/python3/dist-packages/pluggy/_manager.py:120: in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) /usr/lib/python3/dist-packages/_pytest/threadexception.py:92: in pytest_runtest_teardown yield from thread_exception_runtest_hook() /usr/lib/python3/dist-packages/_pytest/threadexception.py:63: in thread_exception_runtest_hook yield /usr/lib/python3/dist-packages/_pytest/unraisableexception.py:95: in pytest_runtest_teardown yield from unraisable_exception_runtest_hook() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ def unraisable_exception_runtest_hook() -> Generator[None, None, None]: with catch_unraisable_exception() as cm: try: yield finally: if cm.unraisable: if cm.unraisable.err_msg is not None: err_msg = cm.unraisable.err_msg else: err_msg = "Exception ignored in" msg = f"{err_msg}: {cm.unraisable.object!r}\n\n" msg += "".join( traceback.format_exception( cm.unraisable.exc_type, cm.unraisable.exc_value, cm.unraisable.exc_traceback, ) ) > warnings.warn(pytest.PytestUnraisableExceptionWarning(msg)) E pytest.PytestUnraisableExceptionWarning: Exception ignored in: E E Traceback (most recent call last): E File "/build/reproducible-path/aiorwlock-1.0.0/tests/conftest.py", line 44, in event_loop E gc.collect() E ResourceWarning: unclosed /usr/lib/python3/dist-packages/_pytest/unraisableexception.py:80: PytestUnraisableExceptionWarning _______ ERROR at teardown of test_ctor_noloop_writer[debug:false-uvloop] _______ cls = func = . at 0xf6309a78> when = 'teardown' reraise = (, ) @classmethod def from_call( cls, func: Callable[[], TResult], when: Literal["collect", "setup", "call", "teardown"], reraise: Optional[ Union[Type[BaseException], Tuple[Type[BaseException], ...]] ] = None, ) -> "CallInfo[TResult]": """Call func, wrapping the result in a CallInfo. :param func: The function to call. Called without arguments. :param when: The phase in which the function is called. :param reraise: Exception or exceptions that shall propagate if raised by the function, instead of being wrapped in the CallInfo. """ excinfo = None start = timing.time() precise_start = timing.perf_counter() try: > result: Optional[TResult] = func() /usr/lib/python3/dist-packages/_pytest/runner.py:341: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/dist-packages/_pytest/runner.py:241: in lambda: runtest_hook(item=item, **kwds), when=when, reraise=reraise /usr/lib/python3/dist-packages/pluggy/_hooks.py:513: in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) /usr/lib/python3/dist-packages/pluggy/_manager.py:120: in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) /usr/lib/python3/dist-packages/_pytest/threadexception.py:92: in pytest_runtest_teardown yield from thread_exception_runtest_hook() /usr/lib/python3/dist-packages/_pytest/threadexception.py:63: in thread_exception_runtest_hook yield /usr/lib/python3/dist-packages/_pytest/unraisableexception.py:95: in pytest_runtest_teardown yield from unraisable_exception_runtest_hook() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ def unraisable_exception_runtest_hook() -> Generator[None, None, None]: with catch_unraisable_exception() as cm: try: yield finally: if cm.unraisable: if cm.unraisable.err_msg is not None: err_msg = cm.unraisable.err_msg else: err_msg = "Exception ignored in" msg = f"{err_msg}: {cm.unraisable.object!r}\n\n" msg += "".join( traceback.format_exception( cm.unraisable.exc_type, cm.unraisable.exc_value, cm.unraisable.exc_traceback, ) ) > warnings.warn(pytest.PytestUnraisableExceptionWarning(msg)) E pytest.PytestUnraisableExceptionWarning: Exception ignored in: E E Traceback (most recent call last): E File "/build/reproducible-path/aiorwlock-1.0.0/tests/conftest.py", line 44, in event_loop E gc.collect() E ResourceWarning: unclosed /usr/lib/python3/dist-packages/_pytest/unraisableexception.py:80: PytestUnraisableExceptionWarning ______________ ERROR at teardown of test_repr[debug:false-uvloop] ______________ cls = func = . at 0xf600ce88> when = 'teardown' reraise = (, ) @classmethod def from_call( cls, func: Callable[[], TResult], when: Literal["collect", "setup", "call", "teardown"], reraise: Optional[ Union[Type[BaseException], Tuple[Type[BaseException], ...]] ] = None, ) -> "CallInfo[TResult]": """Call func, wrapping the result in a CallInfo. :param func: The function to call. Called without arguments. :param when: The phase in which the function is called. :param reraise: Exception or exceptions that shall propagate if raised by the function, instead of being wrapped in the CallInfo. """ excinfo = None start = timing.time() precise_start = timing.perf_counter() try: > result: Optional[TResult] = func() /usr/lib/python3/dist-packages/_pytest/runner.py:341: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/dist-packages/_pytest/runner.py:241: in lambda: runtest_hook(item=item, **kwds), when=when, reraise=reraise /usr/lib/python3/dist-packages/pluggy/_hooks.py:513: in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) /usr/lib/python3/dist-packages/pluggy/_manager.py:120: in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) /usr/lib/python3/dist-packages/_pytest/threadexception.py:92: in pytest_runtest_teardown yield from thread_exception_runtest_hook() /usr/lib/python3/dist-packages/_pytest/threadexception.py:63: in thread_exception_runtest_hook yield /usr/lib/python3/dist-packages/_pytest/unraisableexception.py:95: in pytest_runtest_teardown yield from unraisable_exception_runtest_hook() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ def unraisable_exception_runtest_hook() -> Generator[None, None, None]: with catch_unraisable_exception() as cm: try: yield finally: if cm.unraisable: if cm.unraisable.err_msg is not None: err_msg = cm.unraisable.err_msg else: err_msg = "Exception ignored in" msg = f"{err_msg}: {cm.unraisable.object!r}\n\n" msg += "".join( traceback.format_exception( cm.unraisable.exc_type, cm.unraisable.exc_value, cm.unraisable.exc_traceback, ) ) > warnings.warn(pytest.PytestUnraisableExceptionWarning(msg)) E pytest.PytestUnraisableExceptionWarning: Exception ignored in: E E Traceback (most recent call last): E File "/build/reproducible-path/aiorwlock-1.0.0/tests/conftest.py", line 44, in event_loop E gc.collect() E ResourceWarning: unclosed /usr/lib/python3/dist-packages/_pytest/unraisableexception.py:80: PytestUnraisableExceptionWarning ________ ERROR at teardown of test_release_unlocked[debug:false-uvloop] ________ cls = func = . at 0xf600c988> when = 'teardown' reraise = (, ) @classmethod def from_call( cls, func: Callable[[], TResult], when: Literal["collect", "setup", "call", "teardown"], reraise: Optional[ Union[Type[BaseException], Tuple[Type[BaseException], ...]] ] = None, ) -> "CallInfo[TResult]": """Call func, wrapping the result in a CallInfo. :param func: The function to call. Called without arguments. :param when: The phase in which the function is called. :param reraise: Exception or exceptions that shall propagate if raised by the function, instead of being wrapped in the CallInfo. """ excinfo = None start = timing.time() precise_start = timing.perf_counter() try: > result: Optional[TResult] = func() /usr/lib/python3/dist-packages/_pytest/runner.py:341: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/dist-packages/_pytest/runner.py:241: in lambda: runtest_hook(item=item, **kwds), when=when, reraise=reraise /usr/lib/python3/dist-packages/pluggy/_hooks.py:513: in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) /usr/lib/python3/dist-packages/pluggy/_manager.py:120: in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) /usr/lib/python3/dist-packages/_pytest/threadexception.py:92: in pytest_runtest_teardown yield from thread_exception_runtest_hook() /usr/lib/python3/dist-packages/_pytest/threadexception.py:63: in thread_exception_runtest_hook yield /usr/lib/python3/dist-packages/_pytest/unraisableexception.py:95: in pytest_runtest_teardown yield from unraisable_exception_runtest_hook() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ def unraisable_exception_runtest_hook() -> Generator[None, None, None]: with catch_unraisable_exception() as cm: try: yield finally: if cm.unraisable: if cm.unraisable.err_msg is not None: err_msg = cm.unraisable.err_msg else: err_msg = "Exception ignored in" msg = f"{err_msg}: {cm.unraisable.object!r}\n\n" msg += "".join( traceback.format_exception( cm.unraisable.exc_type, cm.unraisable.exc_value, cm.unraisable.exc_traceback, ) ) > warnings.warn(pytest.PytestUnraisableExceptionWarning(msg)) E pytest.PytestUnraisableExceptionWarning: Exception ignored in: E E Traceback (most recent call last): E File "/build/reproducible-path/aiorwlock-1.0.0/tests/conftest.py", line 44, in event_loop E gc.collect() E ResourceWarning: unclosed /usr/lib/python3/dist-packages/_pytest/unraisableexception.py:80: PytestUnraisableExceptionWarning _______ ERROR at teardown of test_many_readers[debug:false-slow-uvloop] ________ cls = func = . at 0xf60359d8> when = 'teardown' reraise = (, ) @classmethod def from_call( cls, func: Callable[[], TResult], when: Literal["collect", "setup", "call", "teardown"], reraise: Optional[ Union[Type[BaseException], Tuple[Type[BaseException], ...]] ] = None, ) -> "CallInfo[TResult]": """Call func, wrapping the result in a CallInfo. :param func: The function to call. Called without arguments. :param when: The phase in which the function is called. :param reraise: Exception or exceptions that shall propagate if raised by the function, instead of being wrapped in the CallInfo. """ excinfo = None start = timing.time() precise_start = timing.perf_counter() try: > result: Optional[TResult] = func() /usr/lib/python3/dist-packages/_pytest/runner.py:341: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/dist-packages/_pytest/runner.py:241: in lambda: runtest_hook(item=item, **kwds), when=when, reraise=reraise /usr/lib/python3/dist-packages/pluggy/_hooks.py:513: in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) /usr/lib/python3/dist-packages/pluggy/_manager.py:120: in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) /usr/lib/python3/dist-packages/_pytest/threadexception.py:92: in pytest_runtest_teardown yield from thread_exception_runtest_hook() /usr/lib/python3/dist-packages/_pytest/threadexception.py:63: in thread_exception_runtest_hook yield /usr/lib/python3/dist-packages/_pytest/unraisableexception.py:95: in pytest_runtest_teardown yield from unraisable_exception_runtest_hook() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ def unraisable_exception_runtest_hook() -> Generator[None, None, None]: with catch_unraisable_exception() as cm: try: yield finally: if cm.unraisable: if cm.unraisable.err_msg is not None: err_msg = cm.unraisable.err_msg else: err_msg = "Exception ignored in" msg = f"{err_msg}: {cm.unraisable.object!r}\n\n" msg += "".join( traceback.format_exception( cm.unraisable.exc_type, cm.unraisable.exc_value, cm.unraisable.exc_traceback, ) ) > warnings.warn(pytest.PytestUnraisableExceptionWarning(msg)) E pytest.PytestUnraisableExceptionWarning: Exception ignored in: E E Traceback (most recent call last): E File "/build/reproducible-path/aiorwlock-1.0.0/tests/conftest.py", line 44, in event_loop E gc.collect() E ResourceWarning: unclosed /usr/lib/python3/dist-packages/_pytest/unraisableexception.py:80: PytestUnraisableExceptionWarning _____ ERROR at teardown of test_reader_recursion[debug:false-slow-uvloop] ______ cls = func = . at 0xf600c988> when = 'teardown' reraise = (, ) @classmethod def from_call( cls, func: Callable[[], TResult], when: Literal["collect", "setup", "call", "teardown"], reraise: Optional[ Union[Type[BaseException], Tuple[Type[BaseException], ...]] ] = None, ) -> "CallInfo[TResult]": """Call func, wrapping the result in a CallInfo. :param func: The function to call. Called without arguments. :param when: The phase in which the function is called. :param reraise: Exception or exceptions that shall propagate if raised by the function, instead of being wrapped in the CallInfo. """ excinfo = None start = timing.time() precise_start = timing.perf_counter() try: > result: Optional[TResult] = func() /usr/lib/python3/dist-packages/_pytest/runner.py:341: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/dist-packages/_pytest/runner.py:241: in lambda: runtest_hook(item=item, **kwds), when=when, reraise=reraise /usr/lib/python3/dist-packages/pluggy/_hooks.py:513: in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) /usr/lib/python3/dist-packages/pluggy/_manager.py:120: in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) /usr/lib/python3/dist-packages/_pytest/threadexception.py:92: in pytest_runtest_teardown yield from thread_exception_runtest_hook() /usr/lib/python3/dist-packages/_pytest/threadexception.py:63: in thread_exception_runtest_hook yield /usr/lib/python3/dist-packages/_pytest/unraisableexception.py:95: in pytest_runtest_teardown yield from unraisable_exception_runtest_hook() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ def unraisable_exception_runtest_hook() -> Generator[None, None, None]: with catch_unraisable_exception() as cm: try: yield finally: if cm.unraisable: if cm.unraisable.err_msg is not None: err_msg = cm.unraisable.err_msg else: err_msg = "Exception ignored in" msg = f"{err_msg}: {cm.unraisable.object!r}\n\n" msg += "".join( traceback.format_exception( cm.unraisable.exc_type, cm.unraisable.exc_value, cm.unraisable.exc_traceback, ) ) > warnings.warn(pytest.PytestUnraisableExceptionWarning(msg)) E pytest.PytestUnraisableExceptionWarning: Exception ignored in: E E Traceback (most recent call last): E File "/build/reproducible-path/aiorwlock-1.0.0/tests/conftest.py", line 44, in event_loop E gc.collect() E ResourceWarning: unclosed /usr/lib/python3/dist-packages/_pytest/unraisableexception.py:80: PytestUnraisableExceptionWarning _____ ERROR at teardown of test_writer_recursion[debug:false-slow-uvloop] ______ cls = func = . at 0xf5fd4c58> when = 'teardown' reraise = (, ) @classmethod def from_call( cls, func: Callable[[], TResult], when: Literal["collect", "setup", "call", "teardown"], reraise: Optional[ Union[Type[BaseException], Tuple[Type[BaseException], ...]] ] = None, ) -> "CallInfo[TResult]": """Call func, wrapping the result in a CallInfo. :param func: The function to call. Called without arguments. :param when: The phase in which the function is called. :param reraise: Exception or exceptions that shall propagate if raised by the function, instead of being wrapped in the CallInfo. """ excinfo = None start = timing.time() precise_start = timing.perf_counter() try: > result: Optional[TResult] = func() /usr/lib/python3/dist-packages/_pytest/runner.py:341: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/dist-packages/_pytest/runner.py:241: in lambda: runtest_hook(item=item, **kwds), when=when, reraise=reraise /usr/lib/python3/dist-packages/pluggy/_hooks.py:513: in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) /usr/lib/python3/dist-packages/pluggy/_manager.py:120: in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) /usr/lib/python3/dist-packages/_pytest/threadexception.py:92: in pytest_runtest_teardown yield from thread_exception_runtest_hook() /usr/lib/python3/dist-packages/_pytest/threadexception.py:63: in thread_exception_runtest_hook yield /usr/lib/python3/dist-packages/_pytest/unraisableexception.py:95: in pytest_runtest_teardown yield from unraisable_exception_runtest_hook() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ def unraisable_exception_runtest_hook() -> Generator[None, None, None]: with catch_unraisable_exception() as cm: try: yield finally: if cm.unraisable: if cm.unraisable.err_msg is not None: err_msg = cm.unraisable.err_msg else: err_msg = "Exception ignored in" msg = f"{err_msg}: {cm.unraisable.object!r}\n\n" msg += "".join( traceback.format_exception( cm.unraisable.exc_type, cm.unraisable.exc_value, cm.unraisable.exc_traceback, ) ) > warnings.warn(pytest.PytestUnraisableExceptionWarning(msg)) E pytest.PytestUnraisableExceptionWarning: Exception ignored in: E E Traceback (most recent call last): E File "/build/reproducible-path/aiorwlock-1.0.0/tests/conftest.py", line 44, in event_loop E gc.collect() E ResourceWarning: unclosed /usr/lib/python3/dist-packages/_pytest/unraisableexception.py:80: PytestUnraisableExceptionWarning _ ERROR at teardown of test_writer_then_reader_recursion[debug:false-slow-uvloop] _ cls = func = . at 0xf6035e88> when = 'teardown' reraise = (, ) @classmethod def from_call( cls, func: Callable[[], TResult], when: Literal["collect", "setup", "call", "teardown"], reraise: Optional[ Union[Type[BaseException], Tuple[Type[BaseException], ...]] ] = None, ) -> "CallInfo[TResult]": """Call func, wrapping the result in a CallInfo. :param func: The function to call. Called without arguments. :param when: The phase in which the function is called. :param reraise: Exception or exceptions that shall propagate if raised by the function, instead of being wrapped in the CallInfo. """ excinfo = None start = timing.time() precise_start = timing.perf_counter() try: > result: Optional[TResult] = func() /usr/lib/python3/dist-packages/_pytest/runner.py:341: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/dist-packages/_pytest/runner.py:241: in lambda: runtest_hook(item=item, **kwds), when=when, reraise=reraise /usr/lib/python3/dist-packages/pluggy/_hooks.py:513: in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) /usr/lib/python3/dist-packages/pluggy/_manager.py:120: in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) /usr/lib/python3/dist-packages/_pytest/threadexception.py:92: in pytest_runtest_teardown yield from thread_exception_runtest_hook() /usr/lib/python3/dist-packages/_pytest/threadexception.py:63: in thread_exception_runtest_hook yield /usr/lib/python3/dist-packages/_pytest/unraisableexception.py:95: in pytest_runtest_teardown yield from unraisable_exception_runtest_hook() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ def unraisable_exception_runtest_hook() -> Generator[None, None, None]: with catch_unraisable_exception() as cm: try: yield finally: if cm.unraisable: if cm.unraisable.err_msg is not None: err_msg = cm.unraisable.err_msg else: err_msg = "Exception ignored in" msg = f"{err_msg}: {cm.unraisable.object!r}\n\n" msg += "".join( traceback.format_exception( cm.unraisable.exc_type, cm.unraisable.exc_value, cm.unraisable.exc_traceback, ) ) > warnings.warn(pytest.PytestUnraisableExceptionWarning(msg)) E pytest.PytestUnraisableExceptionWarning: Exception ignored in: E E Traceback (most recent call last): E File "/build/reproducible-path/aiorwlock-1.0.0/tests/conftest.py", line 44, in event_loop E gc.collect() E ResourceWarning: unclosed /usr/lib/python3/dist-packages/_pytest/unraisableexception.py:80: PytestUnraisableExceptionWarning ---------------------------- Captured log teardown ----------------------------- ERROR asyncio:conftest.py:44 Task was destroyed but it is pending! task: .task() running at /build/reproducible-path/aiorwlock-1.0.0/tests/test_rwlock.py:30> wait_for= cb=[gather.._done_callback() at /usr/lib/python3.12/asyncio/tasks.py:767]> ERROR asyncio:conftest.py:44 Task was destroyed but it is pending! task: .task() running at /build/reproducible-path/aiorwlock-1.0.0/tests/test_rwlock.py:30> wait_for= cb=[gather.._done_callback() at /usr/lib/python3.12/asyncio/tasks.py:767]> ERROR asyncio:conftest.py:44 Task was destroyed but it is pending! task: .task() running at /build/reproducible-path/aiorwlock-1.0.0/tests/test_rwlock.py:30> wait_for= cb=[gather.._done_callback() at /usr/lib/python3.12/asyncio/tasks.py:767]> ERROR asyncio:conftest.py:44 Task was destroyed but it is pending! task: .task() running at /build/reproducible-path/aiorwlock-1.0.0/tests/test_rwlock.py:30> wait_for= cb=[gather.._done_callback() at /usr/lib/python3.12/asyncio/tasks.py:767]> ______ ERROR at teardown of test_readers_writers[debug:false-slow-uvloop] ______ cls = func = . at 0xf60125c8> when = 'teardown' reraise = (, ) @classmethod def from_call( cls, func: Callable[[], TResult], when: Literal["collect", "setup", "call", "teardown"], reraise: Optional[ Union[Type[BaseException], Tuple[Type[BaseException], ...]] ] = None, ) -> "CallInfo[TResult]": """Call func, wrapping the result in a CallInfo. :param func: The function to call. Called without arguments. :param when: The phase in which the function is called. :param reraise: Exception or exceptions that shall propagate if raised by the function, instead of being wrapped in the CallInfo. """ excinfo = None start = timing.time() precise_start = timing.perf_counter() try: > result: Optional[TResult] = func() /usr/lib/python3/dist-packages/_pytest/runner.py:341: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/dist-packages/_pytest/runner.py:241: in lambda: runtest_hook(item=item, **kwds), when=when, reraise=reraise /usr/lib/python3/dist-packages/pluggy/_hooks.py:513: in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) /usr/lib/python3/dist-packages/pluggy/_manager.py:120: in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) /usr/lib/python3/dist-packages/_pytest/threadexception.py:92: in pytest_runtest_teardown yield from thread_exception_runtest_hook() /usr/lib/python3/dist-packages/_pytest/threadexception.py:63: in thread_exception_runtest_hook yield /usr/lib/python3/dist-packages/_pytest/unraisableexception.py:95: in pytest_runtest_teardown yield from unraisable_exception_runtest_hook() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ def unraisable_exception_runtest_hook() -> Generator[None, None, None]: with catch_unraisable_exception() as cm: try: yield finally: if cm.unraisable: if cm.unraisable.err_msg is not None: err_msg = cm.unraisable.err_msg else: err_msg = "Exception ignored in" msg = f"{err_msg}: {cm.unraisable.object!r}\n\n" msg += "".join( traceback.format_exception( cm.unraisable.exc_type, cm.unraisable.exc_value, cm.unraisable.exc_traceback, ) ) > warnings.warn(pytest.PytestUnraisableExceptionWarning(msg)) E pytest.PytestUnraisableExceptionWarning: Exception ignored in: E E Traceback (most recent call last): E File "/build/reproducible-path/aiorwlock-1.0.0/tests/conftest.py", line 44, in event_loop E gc.collect() E ResourceWarning: unclosed /usr/lib/python3/dist-packages/_pytest/unraisableexception.py:80: PytestUnraisableExceptionWarning ---------------------------- Captured log teardown ----------------------------- ERROR asyncio:conftest.py:44 Task was destroyed but it is pending! task: .task() running at /build/reproducible-path/aiorwlock-1.0.0/tests/test_rwlock.py:30> wait_for= cb=[gather.._done_callback() at /usr/lib/python3.12/asyncio/tasks.py:767]> ERROR asyncio:conftest.py:44 Task was destroyed but it is pending! task: .task() running at /build/reproducible-path/aiorwlock-1.0.0/tests/test_rwlock.py:30> wait_for= cb=[gather.._done_callback() at /usr/lib/python3.12/asyncio/tasks.py:767]> ERROR asyncio:conftest.py:44 Task was destroyed but it is pending! task: .task() running at /build/reproducible-path/aiorwlock-1.0.0/tests/test_rwlock.py:30> wait_for= cb=[gather.._done_callback() at /usr/lib/python3.12/asyncio/tasks.py:767]> ERROR asyncio:conftest.py:44 Task was destroyed but it is pending! task: .task() running at /build/reproducible-path/aiorwlock-1.0.0/tests/test_rwlock.py:30> wait_for= cb=[gather.._done_callback() at /usr/lib/python3.12/asyncio/tasks.py:767]> _ ERROR at teardown of test_raise_error_on_with_for_reader_lock[debug:false-slow-uvloop] _ cls = func = . at 0xf600c988> when = 'teardown' reraise = (, ) @classmethod def from_call( cls, func: Callable[[], TResult], when: Literal["collect", "setup", "call", "teardown"], reraise: Optional[ Union[Type[BaseException], Tuple[Type[BaseException], ...]] ] = None, ) -> "CallInfo[TResult]": """Call func, wrapping the result in a CallInfo. :param func: The function to call. Called without arguments. :param when: The phase in which the function is called. :param reraise: Exception or exceptions that shall propagate if raised by the function, instead of being wrapped in the CallInfo. """ excinfo = None start = timing.time() precise_start = timing.perf_counter() try: > result: Optional[TResult] = func() /usr/lib/python3/dist-packages/_pytest/runner.py:341: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/dist-packages/_pytest/runner.py:241: in lambda: runtest_hook(item=item, **kwds), when=when, reraise=reraise /usr/lib/python3/dist-packages/pluggy/_hooks.py:513: in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) /usr/lib/python3/dist-packages/pluggy/_manager.py:120: in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) /usr/lib/python3/dist-packages/_pytest/threadexception.py:92: in pytest_runtest_teardown yield from thread_exception_runtest_hook() /usr/lib/python3/dist-packages/_pytest/threadexception.py:63: in thread_exception_runtest_hook yield /usr/lib/python3/dist-packages/_pytest/unraisableexception.py:95: in pytest_runtest_teardown yield from unraisable_exception_runtest_hook() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ def unraisable_exception_runtest_hook() -> Generator[None, None, None]: with catch_unraisable_exception() as cm: try: yield finally: if cm.unraisable: if cm.unraisable.err_msg is not None: err_msg = cm.unraisable.err_msg else: err_msg = "Exception ignored in" msg = f"{err_msg}: {cm.unraisable.object!r}\n\n" msg += "".join( traceback.format_exception( cm.unraisable.exc_type, cm.unraisable.exc_value, cm.unraisable.exc_traceback, ) ) > warnings.warn(pytest.PytestUnraisableExceptionWarning(msg)) E pytest.PytestUnraisableExceptionWarning: Exception ignored in: E E Traceback (most recent call last): E File "/build/reproducible-path/aiorwlock-1.0.0/tests/conftest.py", line 44, in event_loop E gc.collect() E ResourceWarning: unclosed /usr/lib/python3/dist-packages/_pytest/unraisableexception.py:80: PytestUnraisableExceptionWarning ---------------------------- Captured log teardown ----------------------------- ERROR asyncio:conftest.py:44 Task was destroyed but it is pending! task: .task() running at /build/reproducible-path/aiorwlock-1.0.0/tests/test_rwlock.py:30> wait_for=> ERROR asyncio:conftest.py:44 Task was destroyed but it is pending! task: .task() running at /build/reproducible-path/aiorwlock-1.0.0/tests/test_rwlock.py:30> wait_for=> ERROR asyncio:conftest.py:44 Task was destroyed but it is pending! task: .task() running at /build/reproducible-path/aiorwlock-1.0.0/tests/test_rwlock.py:30> wait_for=> ERROR asyncio:conftest.py:44 Task was destroyed but it is pending! task: .task() running at /build/reproducible-path/aiorwlock-1.0.0/tests/test_rwlock.py:30> wait_for=> ERROR asyncio:conftest.py:44 Task was destroyed but it is pending! task: .task() running at /build/reproducible-path/aiorwlock-1.0.0/tests/test_rwlock.py:30> wait_for=> _ ERROR at teardown of test_raise_error_on_with_for_writer_lock[debug:false-slow-uvloop] _ cls = func = . at 0xf6012f78> when = 'teardown' reraise = (, ) @classmethod def from_call( cls, func: Callable[[], TResult], when: Literal["collect", "setup", "call", "teardown"], reraise: Optional[ Union[Type[BaseException], Tuple[Type[BaseException], ...]] ] = None, ) -> "CallInfo[TResult]": """Call func, wrapping the result in a CallInfo. :param func: The function to call. Called without arguments. :param when: The phase in which the function is called. :param reraise: Exception or exceptions that shall propagate if raised by the function, instead of being wrapped in the CallInfo. """ excinfo = None start = timing.time() precise_start = timing.perf_counter() try: > result: Optional[TResult] = func() /usr/lib/python3/dist-packages/_pytest/runner.py:341: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/dist-packages/_pytest/runner.py:241: in lambda: runtest_hook(item=item, **kwds), when=when, reraise=reraise /usr/lib/python3/dist-packages/pluggy/_hooks.py:513: in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) /usr/lib/python3/dist-packages/pluggy/_manager.py:120: in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) /usr/lib/python3/dist-packages/_pytest/threadexception.py:92: in pytest_runtest_teardown yield from thread_exception_runtest_hook() /usr/lib/python3/dist-packages/_pytest/threadexception.py:63: in thread_exception_runtest_hook yield /usr/lib/python3/dist-packages/_pytest/unraisableexception.py:95: in pytest_runtest_teardown yield from unraisable_exception_runtest_hook() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ def unraisable_exception_runtest_hook() -> Generator[None, None, None]: with catch_unraisable_exception() as cm: try: yield finally: if cm.unraisable: if cm.unraisable.err_msg is not None: err_msg = cm.unraisable.err_msg else: err_msg = "Exception ignored in" msg = f"{err_msg}: {cm.unraisable.object!r}\n\n" msg += "".join( traceback.format_exception( cm.unraisable.exc_type, cm.unraisable.exc_value, cm.unraisable.exc_traceback, ) ) > warnings.warn(pytest.PytestUnraisableExceptionWarning(msg)) E pytest.PytestUnraisableExceptionWarning: Exception ignored in: E E Traceback (most recent call last): E File "/build/reproducible-path/aiorwlock-1.0.0/tests/conftest.py", line 44, in event_loop E gc.collect() E ResourceWarning: unclosed /usr/lib/python3/dist-packages/_pytest/unraisableexception.py:80: PytestUnraisableExceptionWarning ________ ERROR at teardown of test_read_locked[debug:false-slow-uvloop] ________ cls = func = . at 0xf64a67f8> when = 'teardown' reraise = (, ) @classmethod def from_call( cls, func: Callable[[], TResult], when: Literal["collect", "setup", "call", "teardown"], reraise: Optional[ Union[Type[BaseException], Tuple[Type[BaseException], ...]] ] = None, ) -> "CallInfo[TResult]": """Call func, wrapping the result in a CallInfo. :param func: The function to call. Called without arguments. :param when: The phase in which the function is called. :param reraise: Exception or exceptions that shall propagate if raised by the function, instead of being wrapped in the CallInfo. """ excinfo = None start = timing.time() precise_start = timing.perf_counter() try: > result: Optional[TResult] = func() /usr/lib/python3/dist-packages/_pytest/runner.py:341: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/dist-packages/_pytest/runner.py:241: in lambda: runtest_hook(item=item, **kwds), when=when, reraise=reraise /usr/lib/python3/dist-packages/pluggy/_hooks.py:513: in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) /usr/lib/python3/dist-packages/pluggy/_manager.py:120: in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) /usr/lib/python3/dist-packages/_pytest/threadexception.py:92: in pytest_runtest_teardown yield from thread_exception_runtest_hook() /usr/lib/python3/dist-packages/_pytest/threadexception.py:63: in thread_exception_runtest_hook yield /usr/lib/python3/dist-packages/_pytest/unraisableexception.py:95: in pytest_runtest_teardown yield from unraisable_exception_runtest_hook() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ def unraisable_exception_runtest_hook() -> Generator[None, None, None]: with catch_unraisable_exception() as cm: try: yield finally: if cm.unraisable: if cm.unraisable.err_msg is not None: err_msg = cm.unraisable.err_msg else: err_msg = "Exception ignored in" msg = f"{err_msg}: {cm.unraisable.object!r}\n\n" msg += "".join( traceback.format_exception( cm.unraisable.exc_type, cm.unraisable.exc_value, cm.unraisable.exc_traceback, ) ) > warnings.warn(pytest.PytestUnraisableExceptionWarning(msg)) E pytest.PytestUnraisableExceptionWarning: Exception ignored in: E E Traceback (most recent call last): E File "/build/reproducible-path/aiorwlock-1.0.0/tests/conftest.py", line 44, in event_loop E gc.collect() E ResourceWarning: unclosed /usr/lib/python3/dist-packages/_pytest/unraisableexception.py:80: PytestUnraisableExceptionWarning _______ ERROR at teardown of test_write_locked[debug:false-slow-uvloop] ________ cls = func = . at 0xf64a6de8> when = 'teardown' reraise = (, ) @classmethod def from_call( cls, func: Callable[[], TResult], when: Literal["collect", "setup", "call", "teardown"], reraise: Optional[ Union[Type[BaseException], Tuple[Type[BaseException], ...]] ] = None, ) -> "CallInfo[TResult]": """Call func, wrapping the result in a CallInfo. :param func: The function to call. Called without arguments. :param when: The phase in which the function is called. :param reraise: Exception or exceptions that shall propagate if raised by the function, instead of being wrapped in the CallInfo. """ excinfo = None start = timing.time() precise_start = timing.perf_counter() try: > result: Optional[TResult] = func() /usr/lib/python3/dist-packages/_pytest/runner.py:341: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/dist-packages/_pytest/runner.py:241: in lambda: runtest_hook(item=item, **kwds), when=when, reraise=reraise /usr/lib/python3/dist-packages/pluggy/_hooks.py:513: in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) /usr/lib/python3/dist-packages/pluggy/_manager.py:120: in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) /usr/lib/python3/dist-packages/_pytest/threadexception.py:92: in pytest_runtest_teardown yield from thread_exception_runtest_hook() /usr/lib/python3/dist-packages/_pytest/threadexception.py:63: in thread_exception_runtest_hook yield /usr/lib/python3/dist-packages/_pytest/unraisableexception.py:95: in pytest_runtest_teardown yield from unraisable_exception_runtest_hook() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ def unraisable_exception_runtest_hook() -> Generator[None, None, None]: with catch_unraisable_exception() as cm: try: yield finally: if cm.unraisable: if cm.unraisable.err_msg is not None: err_msg = cm.unraisable.err_msg else: err_msg = "Exception ignored in" msg = f"{err_msg}: {cm.unraisable.object!r}\n\n" msg += "".join( traceback.format_exception( cm.unraisable.exc_type, cm.unraisable.exc_value, cm.unraisable.exc_traceback, ) ) > warnings.warn(pytest.PytestUnraisableExceptionWarning(msg)) E pytest.PytestUnraisableExceptionWarning: Exception ignored in: E E Traceback (most recent call last): E File "/build/reproducible-path/aiorwlock-1.0.0/tests/conftest.py", line 44, in event_loop E gc.collect() E ResourceWarning: unclosed /usr/lib/python3/dist-packages/_pytest/unraisableexception.py:80: PytestUnraisableExceptionWarning _ ERROR at teardown of test_write_read_lock_multiple_tasks[debug:false-slow-uvloop] _ cls = func = . at 0xf64a6bb8> when = 'teardown' reraise = (, ) @classmethod def from_call( cls, func: Callable[[], TResult], when: Literal["collect", "setup", "call", "teardown"], reraise: Optional[ Union[Type[BaseException], Tuple[Type[BaseException], ...]] ] = None, ) -> "CallInfo[TResult]": """Call func, wrapping the result in a CallInfo. :param func: The function to call. Called without arguments. :param when: The phase in which the function is called. :param reraise: Exception or exceptions that shall propagate if raised by the function, instead of being wrapped in the CallInfo. """ excinfo = None start = timing.time() precise_start = timing.perf_counter() try: > result: Optional[TResult] = func() /usr/lib/python3/dist-packages/_pytest/runner.py:341: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/dist-packages/_pytest/runner.py:241: in lambda: runtest_hook(item=item, **kwds), when=when, reraise=reraise /usr/lib/python3/dist-packages/pluggy/_hooks.py:513: in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) /usr/lib/python3/dist-packages/pluggy/_manager.py:120: in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) /usr/lib/python3/dist-packages/_pytest/threadexception.py:92: in pytest_runtest_teardown yield from thread_exception_runtest_hook() /usr/lib/python3/dist-packages/_pytest/threadexception.py:63: in thread_exception_runtest_hook yield /usr/lib/python3/dist-packages/_pytest/unraisableexception.py:95: in pytest_runtest_teardown yield from unraisable_exception_runtest_hook() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ def unraisable_exception_runtest_hook() -> Generator[None, None, None]: with catch_unraisable_exception() as cm: try: yield finally: if cm.unraisable: if cm.unraisable.err_msg is not None: err_msg = cm.unraisable.err_msg else: err_msg = "Exception ignored in" msg = f"{err_msg}: {cm.unraisable.object!r}\n\n" msg += "".join( traceback.format_exception( cm.unraisable.exc_type, cm.unraisable.exc_value, cm.unraisable.exc_traceback, ) ) > warnings.warn(pytest.PytestUnraisableExceptionWarning(msg)) E pytest.PytestUnraisableExceptionWarning: Exception ignored in: E E Traceback (most recent call last): E File "/build/reproducible-path/aiorwlock-1.0.0/tests/conftest.py", line 44, in event_loop E gc.collect() E ResourceWarning: unclosed /usr/lib/python3/dist-packages/_pytest/unraisableexception.py:80: PytestUnraisableExceptionWarning ___ ERROR at teardown of test_read_context_manager[debug:false-slow-uvloop] ____ cls = func = . at 0xf6477848> when = 'teardown' reraise = (, ) @classmethod def from_call( cls, func: Callable[[], TResult], when: Literal["collect", "setup", "call", "teardown"], reraise: Optional[ Union[Type[BaseException], Tuple[Type[BaseException], ...]] ] = None, ) -> "CallInfo[TResult]": """Call func, wrapping the result in a CallInfo. :param func: The function to call. Called without arguments. :param when: The phase in which the function is called. :param reraise: Exception or exceptions that shall propagate if raised by the function, instead of being wrapped in the CallInfo. """ excinfo = None start = timing.time() precise_start = timing.perf_counter() try: > result: Optional[TResult] = func() /usr/lib/python3/dist-packages/_pytest/runner.py:341: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/dist-packages/_pytest/runner.py:241: in lambda: runtest_hook(item=item, **kwds), when=when, reraise=reraise /usr/lib/python3/dist-packages/pluggy/_hooks.py:513: in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) /usr/lib/python3/dist-packages/pluggy/_manager.py:120: in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) /usr/lib/python3/dist-packages/_pytest/threadexception.py:92: in pytest_runtest_teardown yield from thread_exception_runtest_hook() /usr/lib/python3/dist-packages/_pytest/threadexception.py:63: in thread_exception_runtest_hook yield /usr/lib/python3/dist-packages/_pytest/unraisableexception.py:95: in pytest_runtest_teardown yield from unraisable_exception_runtest_hook() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ def unraisable_exception_runtest_hook() -> Generator[None, None, None]: with catch_unraisable_exception() as cm: try: yield finally: if cm.unraisable: if cm.unraisable.err_msg is not None: err_msg = cm.unraisable.err_msg else: err_msg = "Exception ignored in" msg = f"{err_msg}: {cm.unraisable.object!r}\n\n" msg += "".join( traceback.format_exception( cm.unraisable.exc_type, cm.unraisable.exc_value, cm.unraisable.exc_traceback, ) ) > warnings.warn(pytest.PytestUnraisableExceptionWarning(msg)) E pytest.PytestUnraisableExceptionWarning: Exception ignored in: E E Traceback (most recent call last): E File "/build/reproducible-path/aiorwlock-1.0.0/tests/conftest.py", line 44, in event_loop E gc.collect() E ResourceWarning: unclosed /usr/lib/python3/dist-packages/_pytest/unraisableexception.py:80: PytestUnraisableExceptionWarning ___ ERROR at teardown of test_write_context_manager[debug:false-slow-uvloop] ___ cls = func = . at 0xf6477e38> when = 'teardown' reraise = (, ) @classmethod def from_call( cls, func: Callable[[], TResult], when: Literal["collect", "setup", "call", "teardown"], reraise: Optional[ Union[Type[BaseException], Tuple[Type[BaseException], ...]] ] = None, ) -> "CallInfo[TResult]": """Call func, wrapping the result in a CallInfo. :param func: The function to call. Called without arguments. :param when: The phase in which the function is called. :param reraise: Exception or exceptions that shall propagate if raised by the function, instead of being wrapped in the CallInfo. """ excinfo = None start = timing.time() precise_start = timing.perf_counter() try: > result: Optional[TResult] = func() /usr/lib/python3/dist-packages/_pytest/runner.py:341: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/dist-packages/_pytest/runner.py:241: in lambda: runtest_hook(item=item, **kwds), when=when, reraise=reraise /usr/lib/python3/dist-packages/pluggy/_hooks.py:513: in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) /usr/lib/python3/dist-packages/pluggy/_manager.py:120: in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) /usr/lib/python3/dist-packages/_pytest/threadexception.py:92: in pytest_runtest_teardown yield from thread_exception_runtest_hook() /usr/lib/python3/dist-packages/_pytest/threadexception.py:63: in thread_exception_runtest_hook yield /usr/lib/python3/dist-packages/_pytest/unraisableexception.py:95: in pytest_runtest_teardown yield from unraisable_exception_runtest_hook() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ def unraisable_exception_runtest_hook() -> Generator[None, None, None]: with catch_unraisable_exception() as cm: try: yield finally: if cm.unraisable: if cm.unraisable.err_msg is not None: err_msg = cm.unraisable.err_msg else: err_msg = "Exception ignored in" msg = f"{err_msg}: {cm.unraisable.object!r}\n\n" msg += "".join( traceback.format_exception( cm.unraisable.exc_type, cm.unraisable.exc_value, cm.unraisable.exc_traceback, ) ) > warnings.warn(pytest.PytestUnraisableExceptionWarning(msg)) E pytest.PytestUnraisableExceptionWarning: Exception ignored in: E E Traceback (most recent call last): E File "/build/reproducible-path/aiorwlock-1.0.0/tests/conftest.py", line 44, in event_loop E gc.collect() E ResourceWarning: unclosed /usr/lib/python3/dist-packages/_pytest/unraisableexception.py:80: PytestUnraisableExceptionWarning ______ ERROR at teardown of test_await_read_lock[debug:false-slow-uvloop] ______ cls = func = . at 0xf6477a78> when = 'teardown' reraise = (, ) @classmethod def from_call( cls, func: Callable[[], TResult], when: Literal["collect", "setup", "call", "teardown"], reraise: Optional[ Union[Type[BaseException], Tuple[Type[BaseException], ...]] ] = None, ) -> "CallInfo[TResult]": """Call func, wrapping the result in a CallInfo. :param func: The function to call. Called without arguments. :param when: The phase in which the function is called. :param reraise: Exception or exceptions that shall propagate if raised by the function, instead of being wrapped in the CallInfo. """ excinfo = None start = timing.time() precise_start = timing.perf_counter() try: > result: Optional[TResult] = func() /usr/lib/python3/dist-packages/_pytest/runner.py:341: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/dist-packages/_pytest/runner.py:241: in lambda: runtest_hook(item=item, **kwds), when=when, reraise=reraise /usr/lib/python3/dist-packages/pluggy/_hooks.py:513: in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) /usr/lib/python3/dist-packages/pluggy/_manager.py:120: in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) /usr/lib/python3/dist-packages/_pytest/threadexception.py:92: in pytest_runtest_teardown yield from thread_exception_runtest_hook() /usr/lib/python3/dist-packages/_pytest/threadexception.py:63: in thread_exception_runtest_hook yield /usr/lib/python3/dist-packages/_pytest/unraisableexception.py:95: in pytest_runtest_teardown yield from unraisable_exception_runtest_hook() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ def unraisable_exception_runtest_hook() -> Generator[None, None, None]: with catch_unraisable_exception() as cm: try: yield finally: if cm.unraisable: if cm.unraisable.err_msg is not None: err_msg = cm.unraisable.err_msg else: err_msg = "Exception ignored in" msg = f"{err_msg}: {cm.unraisable.object!r}\n\n" msg += "".join( traceback.format_exception( cm.unraisable.exc_type, cm.unraisable.exc_value, cm.unraisable.exc_traceback, ) ) > warnings.warn(pytest.PytestUnraisableExceptionWarning(msg)) E pytest.PytestUnraisableExceptionWarning: Exception ignored in: E E Traceback (most recent call last): E File "/build/reproducible-path/aiorwlock-1.0.0/tests/conftest.py", line 44, in event_loop E gc.collect() E ResourceWarning: unclosed /usr/lib/python3/dist-packages/_pytest/unraisableexception.py:80: PytestUnraisableExceptionWarning _____ ERROR at teardown of test_await_write_lock[debug:false-slow-uvloop] ______ cls = func = . at 0xf5f7b938> when = 'teardown' reraise = (, ) @classmethod def from_call( cls, func: Callable[[], TResult], when: Literal["collect", "setup", "call", "teardown"], reraise: Optional[ Union[Type[BaseException], Tuple[Type[BaseException], ...]] ] = None, ) -> "CallInfo[TResult]": """Call func, wrapping the result in a CallInfo. :param func: The function to call. Called without arguments. :param when: The phase in which the function is called. :param reraise: Exception or exceptions that shall propagate if raised by the function, instead of being wrapped in the CallInfo. """ excinfo = None start = timing.time() precise_start = timing.perf_counter() try: > result: Optional[TResult] = func() /usr/lib/python3/dist-packages/_pytest/runner.py:341: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/dist-packages/_pytest/runner.py:241: in lambda: runtest_hook(item=item, **kwds), when=when, reraise=reraise /usr/lib/python3/dist-packages/pluggy/_hooks.py:513: in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) /usr/lib/python3/dist-packages/pluggy/_manager.py:120: in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) /usr/lib/python3/dist-packages/_pytest/threadexception.py:92: in pytest_runtest_teardown yield from thread_exception_runtest_hook() /usr/lib/python3/dist-packages/_pytest/threadexception.py:63: in thread_exception_runtest_hook yield /usr/lib/python3/dist-packages/_pytest/unraisableexception.py:95: in pytest_runtest_teardown yield from unraisable_exception_runtest_hook() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ def unraisable_exception_runtest_hook() -> Generator[None, None, None]: with catch_unraisable_exception() as cm: try: yield finally: if cm.unraisable: if cm.unraisable.err_msg is not None: err_msg = cm.unraisable.err_msg else: err_msg = "Exception ignored in" msg = f"{err_msg}: {cm.unraisable.object!r}\n\n" msg += "".join( traceback.format_exception( cm.unraisable.exc_type, cm.unraisable.exc_value, cm.unraisable.exc_traceback, ) ) > warnings.warn(pytest.PytestUnraisableExceptionWarning(msg)) E pytest.PytestUnraisableExceptionWarning: Exception ignored in: E E Traceback (most recent call last): E File "/build/reproducible-path/aiorwlock-1.0.0/tests/conftest.py", line 44, in event_loop E gc.collect() E ResourceWarning: unclosed /usr/lib/python3/dist-packages/_pytest/unraisableexception.py:80: PytestUnraisableExceptionWarning _ ERROR at teardown of test_raise_error_on_with_for_reader_lock[debug:false-slow-pyloop] _ cls = func = . at 0xf5f7b398> when = 'teardown' reraise = (, ) @classmethod def from_call( cls, func: Callable[[], TResult], when: Literal["collect", "setup", "call", "teardown"], reraise: Optional[ Union[Type[BaseException], Tuple[Type[BaseException], ...]] ] = None, ) -> "CallInfo[TResult]": """Call func, wrapping the result in a CallInfo. :param func: The function to call. Called without arguments. :param when: The phase in which the function is called. :param reraise: Exception or exceptions that shall propagate if raised by the function, instead of being wrapped in the CallInfo. """ excinfo = None start = timing.time() precise_start = timing.perf_counter() try: > result: Optional[TResult] = func() /usr/lib/python3/dist-packages/_pytest/runner.py:341: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/dist-packages/_pytest/runner.py:241: in lambda: runtest_hook(item=item, **kwds), when=when, reraise=reraise /usr/lib/python3/dist-packages/pluggy/_hooks.py:513: in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) /usr/lib/python3/dist-packages/pluggy/_manager.py:120: in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) /usr/lib/python3/dist-packages/_pytest/threadexception.py:92: in pytest_runtest_teardown yield from thread_exception_runtest_hook() /usr/lib/python3/dist-packages/_pytest/threadexception.py:63: in thread_exception_runtest_hook yield /usr/lib/python3/dist-packages/_pytest/unraisableexception.py:95: in pytest_runtest_teardown yield from unraisable_exception_runtest_hook() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ def unraisable_exception_runtest_hook() -> Generator[None, None, None]: with catch_unraisable_exception() as cm: try: yield finally: if cm.unraisable: if cm.unraisable.err_msg is not None: err_msg = cm.unraisable.err_msg else: err_msg = "Exception ignored in" msg = f"{err_msg}: {cm.unraisable.object!r}\n\n" msg += "".join( traceback.format_exception( cm.unraisable.exc_type, cm.unraisable.exc_value, cm.unraisable.exc_traceback, ) ) > warnings.warn(pytest.PytestUnraisableExceptionWarning(msg)) E pytest.PytestUnraisableExceptionWarning: Exception ignored in: E E Traceback (most recent call last): E File "/build/reproducible-path/aiorwlock-1.0.0/tests/conftest.py", line 44, in event_loop E gc.collect() E ResourceWarning: unclosed /usr/lib/python3/dist-packages/_pytest/unraisableexception.py:80: PytestUnraisableExceptionWarning ---------------------------- Captured log teardown ----------------------------- ERROR asyncio:base_events.py:1821 Task was destroyed but it is pending! task: .task() running at /build/reproducible-path/aiorwlock-1.0.0/tests/test_rwlock.py:30> wait_for=> ERROR asyncio:base_events.py:1821 Task was destroyed but it is pending! task: .task() running at /build/reproducible-path/aiorwlock-1.0.0/tests/test_rwlock.py:30> wait_for=> ERROR asyncio:base_events.py:1821 Task was destroyed but it is pending! task: .task() running at /build/reproducible-path/aiorwlock-1.0.0/tests/test_rwlock.py:30> wait_for=> ERROR asyncio:base_events.py:1821 Task was destroyed but it is pending! task: .task() running at /build/reproducible-path/aiorwlock-1.0.0/tests/test_rwlock.py:30> wait_for=> ERROR asyncio:base_events.py:1821 Task was destroyed but it is pending! task: .task() running at /build/reproducible-path/aiorwlock-1.0.0/tests/test_rwlock.py:30> wait_for=> _ ERROR at teardown of test_raise_error_on_with_for_writer_lock[debug:false-slow-pyloop] _ cls = func = . at 0xf5f7bd98> when = 'teardown' reraise = (, ) @classmethod def from_call( cls, func: Callable[[], TResult], when: Literal["collect", "setup", "call", "teardown"], reraise: Optional[ Union[Type[BaseException], Tuple[Type[BaseException], ...]] ] = None, ) -> "CallInfo[TResult]": """Call func, wrapping the result in a CallInfo. :param func: The function to call. Called without arguments. :param when: The phase in which the function is called. :param reraise: Exception or exceptions that shall propagate if raised by the function, instead of being wrapped in the CallInfo. """ excinfo = None start = timing.time() precise_start = timing.perf_counter() try: > result: Optional[TResult] = func() /usr/lib/python3/dist-packages/_pytest/runner.py:341: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/dist-packages/_pytest/runner.py:241: in lambda: runtest_hook(item=item, **kwds), when=when, reraise=reraise /usr/lib/python3/dist-packages/pluggy/_hooks.py:513: in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) /usr/lib/python3/dist-packages/pluggy/_manager.py:120: in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) /usr/lib/python3/dist-packages/_pytest/threadexception.py:92: in pytest_runtest_teardown yield from thread_exception_runtest_hook() /usr/lib/python3/dist-packages/_pytest/threadexception.py:63: in thread_exception_runtest_hook yield /usr/lib/python3/dist-packages/_pytest/unraisableexception.py:95: in pytest_runtest_teardown yield from unraisable_exception_runtest_hook() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ def unraisable_exception_runtest_hook() -> Generator[None, None, None]: with catch_unraisable_exception() as cm: try: yield finally: if cm.unraisable: if cm.unraisable.err_msg is not None: err_msg = cm.unraisable.err_msg else: err_msg = "Exception ignored in" msg = f"{err_msg}: {cm.unraisable.object!r}\n\n" msg += "".join( traceback.format_exception( cm.unraisable.exc_type, cm.unraisable.exc_value, cm.unraisable.exc_traceback, ) ) > warnings.warn(pytest.PytestUnraisableExceptionWarning(msg)) E pytest.PytestUnraisableExceptionWarning: Exception ignored in: E E Traceback (most recent call last): E File "/build/reproducible-path/aiorwlock-1.0.0/tests/conftest.py", line 44, in event_loop E gc.collect() E ResourceWarning: unclosed /usr/lib/python3/dist-packages/_pytest/unraisableexception.py:80: PytestUnraisableExceptionWarning ________ ERROR at teardown of test_read_locked[debug:false-slow-pyloop] ________ cls = func = . at 0xf5f93de8> when = 'teardown' reraise = (, ) @classmethod def from_call( cls, func: Callable[[], TResult], when: Literal["collect", "setup", "call", "teardown"], reraise: Optional[ Union[Type[BaseException], Tuple[Type[BaseException], ...]] ] = None, ) -> "CallInfo[TResult]": """Call func, wrapping the result in a CallInfo. :param func: The function to call. Called without arguments. :param when: The phase in which the function is called. :param reraise: Exception or exceptions that shall propagate if raised by the function, instead of being wrapped in the CallInfo. """ excinfo = None start = timing.time() precise_start = timing.perf_counter() try: > result: Optional[TResult] = func() /usr/lib/python3/dist-packages/_pytest/runner.py:341: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/dist-packages/_pytest/runner.py:241: in lambda: runtest_hook(item=item, **kwds), when=when, reraise=reraise /usr/lib/python3/dist-packages/pluggy/_hooks.py:513: in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) /usr/lib/python3/dist-packages/pluggy/_manager.py:120: in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) /usr/lib/python3/dist-packages/_pytest/threadexception.py:92: in pytest_runtest_teardown yield from thread_exception_runtest_hook() /usr/lib/python3/dist-packages/_pytest/threadexception.py:63: in thread_exception_runtest_hook yield /usr/lib/python3/dist-packages/_pytest/unraisableexception.py:95: in pytest_runtest_teardown yield from unraisable_exception_runtest_hook() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ def unraisable_exception_runtest_hook() -> Generator[None, None, None]: with catch_unraisable_exception() as cm: try: yield finally: if cm.unraisable: if cm.unraisable.err_msg is not None: err_msg = cm.unraisable.err_msg else: err_msg = "Exception ignored in" msg = f"{err_msg}: {cm.unraisable.object!r}\n\n" msg += "".join( traceback.format_exception( cm.unraisable.exc_type, cm.unraisable.exc_value, cm.unraisable.exc_traceback, ) ) > warnings.warn(pytest.PytestUnraisableExceptionWarning(msg)) E pytest.PytestUnraisableExceptionWarning: Exception ignored in: E E Traceback (most recent call last): E File "/build/reproducible-path/aiorwlock-1.0.0/tests/conftest.py", line 44, in event_loop E gc.collect() E ResourceWarning: unclosed /usr/lib/python3/dist-packages/_pytest/unraisableexception.py:80: PytestUnraisableExceptionWarning _______ ERROR at teardown of test_write_locked[debug:false-slow-pyloop] ________ cls = func = . at 0xf5f93c58> when = 'teardown' reraise = (, ) @classmethod def from_call( cls, func: Callable[[], TResult], when: Literal["collect", "setup", "call", "teardown"], reraise: Optional[ Union[Type[BaseException], Tuple[Type[BaseException], ...]] ] = None, ) -> "CallInfo[TResult]": """Call func, wrapping the result in a CallInfo. :param func: The function to call. Called without arguments. :param when: The phase in which the function is called. :param reraise: Exception or exceptions that shall propagate if raised by the function, instead of being wrapped in the CallInfo. """ excinfo = None start = timing.time() precise_start = timing.perf_counter() try: > result: Optional[TResult] = func() /usr/lib/python3/dist-packages/_pytest/runner.py:341: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/dist-packages/_pytest/runner.py:241: in lambda: runtest_hook(item=item, **kwds), when=when, reraise=reraise /usr/lib/python3/dist-packages/pluggy/_hooks.py:513: in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) /usr/lib/python3/dist-packages/pluggy/_manager.py:120: in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) /usr/lib/python3/dist-packages/_pytest/threadexception.py:92: in pytest_runtest_teardown yield from thread_exception_runtest_hook() /usr/lib/python3/dist-packages/_pytest/threadexception.py:63: in thread_exception_runtest_hook yield /usr/lib/python3/dist-packages/_pytest/unraisableexception.py:95: in pytest_runtest_teardown yield from unraisable_exception_runtest_hook() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ def unraisable_exception_runtest_hook() -> Generator[None, None, None]: with catch_unraisable_exception() as cm: try: yield finally: if cm.unraisable: if cm.unraisable.err_msg is not None: err_msg = cm.unraisable.err_msg else: err_msg = "Exception ignored in" msg = f"{err_msg}: {cm.unraisable.object!r}\n\n" msg += "".join( traceback.format_exception( cm.unraisable.exc_type, cm.unraisable.exc_value, cm.unraisable.exc_traceback, ) ) > warnings.warn(pytest.PytestUnraisableExceptionWarning(msg)) E pytest.PytestUnraisableExceptionWarning: Exception ignored in: E E Traceback (most recent call last): E File "/build/reproducible-path/aiorwlock-1.0.0/tests/conftest.py", line 44, in event_loop E gc.collect() E ResourceWarning: unclosed /usr/lib/python3/dist-packages/_pytest/unraisableexception.py:80: PytestUnraisableExceptionWarning _ ERROR at teardown of test_write_read_lock_multiple_tasks[debug:false-slow-pyloop] _ cls = func = . at 0xf5f798e8> when = 'teardown' reraise = (, ) @classmethod def from_call( cls, func: Callable[[], TResult], when: Literal["collect", "setup", "call", "teardown"], reraise: Optional[ Union[Type[BaseException], Tuple[Type[BaseException], ...]] ] = None, ) -> "CallInfo[TResult]": """Call func, wrapping the result in a CallInfo. :param func: The function to call. Called without arguments. :param when: The phase in which the function is called. :param reraise: Exception or exceptions that shall propagate if raised by the function, instead of being wrapped in the CallInfo. """ excinfo = None start = timing.time() precise_start = timing.perf_counter() try: > result: Optional[TResult] = func() /usr/lib/python3/dist-packages/_pytest/runner.py:341: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/dist-packages/_pytest/runner.py:241: in lambda: runtest_hook(item=item, **kwds), when=when, reraise=reraise /usr/lib/python3/dist-packages/pluggy/_hooks.py:513: in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) /usr/lib/python3/dist-packages/pluggy/_manager.py:120: in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) /usr/lib/python3/dist-packages/_pytest/threadexception.py:92: in pytest_runtest_teardown yield from thread_exception_runtest_hook() /usr/lib/python3/dist-packages/_pytest/threadexception.py:63: in thread_exception_runtest_hook yield /usr/lib/python3/dist-packages/_pytest/unraisableexception.py:95: in pytest_runtest_teardown yield from unraisable_exception_runtest_hook() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ def unraisable_exception_runtest_hook() -> Generator[None, None, None]: with catch_unraisable_exception() as cm: try: yield finally: if cm.unraisable: if cm.unraisable.err_msg is not None: err_msg = cm.unraisable.err_msg else: err_msg = "Exception ignored in" msg = f"{err_msg}: {cm.unraisable.object!r}\n\n" msg += "".join( traceback.format_exception( cm.unraisable.exc_type, cm.unraisable.exc_value, cm.unraisable.exc_traceback, ) ) > warnings.warn(pytest.PytestUnraisableExceptionWarning(msg)) E pytest.PytestUnraisableExceptionWarning: Exception ignored in: E E Traceback (most recent call last): E File "/build/reproducible-path/aiorwlock-1.0.0/tests/conftest.py", line 44, in event_loop E gc.collect() E ResourceWarning: unclosed /usr/lib/python3/dist-packages/_pytest/unraisableexception.py:80: PytestUnraisableExceptionWarning ___ ERROR at teardown of test_read_context_manager[debug:false-slow-pyloop] ____ cls = func = . at 0xf5f794d8> when = 'teardown' reraise = (, ) @classmethod def from_call( cls, func: Callable[[], TResult], when: Literal["collect", "setup", "call", "teardown"], reraise: Optional[ Union[Type[BaseException], Tuple[Type[BaseException], ...]] ] = None, ) -> "CallInfo[TResult]": """Call func, wrapping the result in a CallInfo. :param func: The function to call. Called without arguments. :param when: The phase in which the function is called. :param reraise: Exception or exceptions that shall propagate if raised by the function, instead of being wrapped in the CallInfo. """ excinfo = None start = timing.time() precise_start = timing.perf_counter() try: > result: Optional[TResult] = func() /usr/lib/python3/dist-packages/_pytest/runner.py:341: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/dist-packages/_pytest/runner.py:241: in lambda: runtest_hook(item=item, **kwds), when=when, reraise=reraise /usr/lib/python3/dist-packages/pluggy/_hooks.py:513: in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) /usr/lib/python3/dist-packages/pluggy/_manager.py:120: in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) /usr/lib/python3/dist-packages/_pytest/threadexception.py:92: in pytest_runtest_teardown yield from thread_exception_runtest_hook() /usr/lib/python3/dist-packages/_pytest/threadexception.py:63: in thread_exception_runtest_hook yield /usr/lib/python3/dist-packages/_pytest/unraisableexception.py:95: in pytest_runtest_teardown yield from unraisable_exception_runtest_hook() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ def unraisable_exception_runtest_hook() -> Generator[None, None, None]: with catch_unraisable_exception() as cm: try: yield finally: if cm.unraisable: if cm.unraisable.err_msg is not None: err_msg = cm.unraisable.err_msg else: err_msg = "Exception ignored in" msg = f"{err_msg}: {cm.unraisable.object!r}\n\n" msg += "".join( traceback.format_exception( cm.unraisable.exc_type, cm.unraisable.exc_value, cm.unraisable.exc_traceback, ) ) > warnings.warn(pytest.PytestUnraisableExceptionWarning(msg)) E pytest.PytestUnraisableExceptionWarning: Exception ignored in: E E Traceback (most recent call last): E File "/build/reproducible-path/aiorwlock-1.0.0/tests/conftest.py", line 44, in event_loop E gc.collect() E ResourceWarning: unclosed /usr/lib/python3/dist-packages/_pytest/unraisableexception.py:80: PytestUnraisableExceptionWarning ___ ERROR at teardown of test_write_context_manager[debug:false-slow-pyloop] ___ cls = func = . at 0xf5f79cf8> when = 'teardown' reraise = (, ) @classmethod def from_call( cls, func: Callable[[], TResult], when: Literal["collect", "setup", "call", "teardown"], reraise: Optional[ Union[Type[BaseException], Tuple[Type[BaseException], ...]] ] = None, ) -> "CallInfo[TResult]": """Call func, wrapping the result in a CallInfo. :param func: The function to call. Called without arguments. :param when: The phase in which the function is called. :param reraise: Exception or exceptions that shall propagate if raised by the function, instead of being wrapped in the CallInfo. """ excinfo = None start = timing.time() precise_start = timing.perf_counter() try: > result: Optional[TResult] = func() /usr/lib/python3/dist-packages/_pytest/runner.py:341: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/dist-packages/_pytest/runner.py:241: in lambda: runtest_hook(item=item, **kwds), when=when, reraise=reraise /usr/lib/python3/dist-packages/pluggy/_hooks.py:513: in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) /usr/lib/python3/dist-packages/pluggy/_manager.py:120: in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) /usr/lib/python3/dist-packages/_pytest/threadexception.py:92: in pytest_runtest_teardown yield from thread_exception_runtest_hook() /usr/lib/python3/dist-packages/_pytest/threadexception.py:63: in thread_exception_runtest_hook yield /usr/lib/python3/dist-packages/_pytest/unraisableexception.py:95: in pytest_runtest_teardown yield from unraisable_exception_runtest_hook() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ def unraisable_exception_runtest_hook() -> Generator[None, None, None]: with catch_unraisable_exception() as cm: try: yield finally: if cm.unraisable: if cm.unraisable.err_msg is not None: err_msg = cm.unraisable.err_msg else: err_msg = "Exception ignored in" msg = f"{err_msg}: {cm.unraisable.object!r}\n\n" msg += "".join( traceback.format_exception( cm.unraisable.exc_type, cm.unraisable.exc_value, cm.unraisable.exc_traceback, ) ) > warnings.warn(pytest.PytestUnraisableExceptionWarning(msg)) E pytest.PytestUnraisableExceptionWarning: Exception ignored in: E E Traceback (most recent call last): E File "/build/reproducible-path/aiorwlock-1.0.0/tests/conftest.py", line 44, in event_loop E gc.collect() E ResourceWarning: unclosed /usr/lib/python3/dist-packages/_pytest/unraisableexception.py:80: PytestUnraisableExceptionWarning ______ ERROR at teardown of test_await_read_lock[debug:false-slow-pyloop] ______ cls = func = . at 0xf5f688e8> when = 'teardown' reraise = (, ) @classmethod def from_call( cls, func: Callable[[], TResult], when: Literal["collect", "setup", "call", "teardown"], reraise: Optional[ Union[Type[BaseException], Tuple[Type[BaseException], ...]] ] = None, ) -> "CallInfo[TResult]": """Call func, wrapping the result in a CallInfo. :param func: The function to call. Called without arguments. :param when: The phase in which the function is called. :param reraise: Exception or exceptions that shall propagate if raised by the function, instead of being wrapped in the CallInfo. """ excinfo = None start = timing.time() precise_start = timing.perf_counter() try: > result: Optional[TResult] = func() /usr/lib/python3/dist-packages/_pytest/runner.py:341: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/dist-packages/_pytest/runner.py:241: in lambda: runtest_hook(item=item, **kwds), when=when, reraise=reraise /usr/lib/python3/dist-packages/pluggy/_hooks.py:513: in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) /usr/lib/python3/dist-packages/pluggy/_manager.py:120: in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) /usr/lib/python3/dist-packages/_pytest/threadexception.py:92: in pytest_runtest_teardown yield from thread_exception_runtest_hook() /usr/lib/python3/dist-packages/_pytest/threadexception.py:63: in thread_exception_runtest_hook yield /usr/lib/python3/dist-packages/_pytest/unraisableexception.py:95: in pytest_runtest_teardown yield from unraisable_exception_runtest_hook() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ def unraisable_exception_runtest_hook() -> Generator[None, None, None]: with catch_unraisable_exception() as cm: try: yield finally: if cm.unraisable: if cm.unraisable.err_msg is not None: err_msg = cm.unraisable.err_msg else: err_msg = "Exception ignored in" msg = f"{err_msg}: {cm.unraisable.object!r}\n\n" msg += "".join( traceback.format_exception( cm.unraisable.exc_type, cm.unraisable.exc_value, cm.unraisable.exc_traceback, ) ) > warnings.warn(pytest.PytestUnraisableExceptionWarning(msg)) E pytest.PytestUnraisableExceptionWarning: Exception ignored in: E E Traceback (most recent call last): E File "/build/reproducible-path/aiorwlock-1.0.0/tests/conftest.py", line 44, in event_loop E gc.collect() E ResourceWarning: unclosed /usr/lib/python3/dist-packages/_pytest/unraisableexception.py:80: PytestUnraisableExceptionWarning _____ ERROR at teardown of test_await_write_lock[debug:false-slow-pyloop] ______ cls = func = . at 0xf5f68988> when = 'teardown' reraise = (, ) @classmethod def from_call( cls, func: Callable[[], TResult], when: Literal["collect", "setup", "call", "teardown"], reraise: Optional[ Union[Type[BaseException], Tuple[Type[BaseException], ...]] ] = None, ) -> "CallInfo[TResult]": """Call func, wrapping the result in a CallInfo. :param func: The function to call. Called without arguments. :param when: The phase in which the function is called. :param reraise: Exception or exceptions that shall propagate if raised by the function, instead of being wrapped in the CallInfo. """ excinfo = None start = timing.time() precise_start = timing.perf_counter() try: > result: Optional[TResult] = func() /usr/lib/python3/dist-packages/_pytest/runner.py:341: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/dist-packages/_pytest/runner.py:241: in lambda: runtest_hook(item=item, **kwds), when=when, reraise=reraise /usr/lib/python3/dist-packages/pluggy/_hooks.py:513: in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) /usr/lib/python3/dist-packages/pluggy/_manager.py:120: in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) /usr/lib/python3/dist-packages/_pytest/threadexception.py:92: in pytest_runtest_teardown yield from thread_exception_runtest_hook() /usr/lib/python3/dist-packages/_pytest/threadexception.py:63: in thread_exception_runtest_hook yield /usr/lib/python3/dist-packages/_pytest/unraisableexception.py:95: in pytest_runtest_teardown yield from unraisable_exception_runtest_hook() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ def unraisable_exception_runtest_hook() -> Generator[None, None, None]: with catch_unraisable_exception() as cm: try: yield finally: if cm.unraisable: if cm.unraisable.err_msg is not None: err_msg = cm.unraisable.err_msg else: err_msg = "Exception ignored in" msg = f"{err_msg}: {cm.unraisable.object!r}\n\n" msg += "".join( traceback.format_exception( cm.unraisable.exc_type, cm.unraisable.exc_value, cm.unraisable.exc_traceback, ) ) > warnings.warn(pytest.PytestUnraisableExceptionWarning(msg)) E pytest.PytestUnraisableExceptionWarning: Exception ignored in: E E Traceback (most recent call last): E File "/build/reproducible-path/aiorwlock-1.0.0/tests/conftest.py", line 44, in event_loop E gc.collect() E ResourceWarning: unclosed /usr/lib/python3/dist-packages/_pytest/unraisableexception.py:80: PytestUnraisableExceptionWarning ______ ERROR at teardown of test_writer_success_fast[debug:false-uvloop] _______ cls = func = . at 0xf5f60ca8> when = 'teardown' reraise = (, ) @classmethod def from_call( cls, func: Callable[[], TResult], when: Literal["collect", "setup", "call", "teardown"], reraise: Optional[ Union[Type[BaseException], Tuple[Type[BaseException], ...]] ] = None, ) -> "CallInfo[TResult]": """Call func, wrapping the result in a CallInfo. :param func: The function to call. Called without arguments. :param when: The phase in which the function is called. :param reraise: Exception or exceptions that shall propagate if raised by the function, instead of being wrapped in the CallInfo. """ excinfo = None start = timing.time() precise_start = timing.perf_counter() try: > result: Optional[TResult] = func() /usr/lib/python3/dist-packages/_pytest/runner.py:341: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/dist-packages/_pytest/runner.py:241: in lambda: runtest_hook(item=item, **kwds), when=when, reraise=reraise /usr/lib/python3/dist-packages/pluggy/_hooks.py:513: in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) /usr/lib/python3/dist-packages/pluggy/_manager.py:120: in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) /usr/lib/python3/dist-packages/_pytest/threadexception.py:92: in pytest_runtest_teardown yield from thread_exception_runtest_hook() /usr/lib/python3/dist-packages/_pytest/threadexception.py:63: in thread_exception_runtest_hook yield /usr/lib/python3/dist-packages/_pytest/unraisableexception.py:95: in pytest_runtest_teardown yield from unraisable_exception_runtest_hook() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ def unraisable_exception_runtest_hook() -> Generator[None, None, None]: with catch_unraisable_exception() as cm: try: yield finally: if cm.unraisable: if cm.unraisable.err_msg is not None: err_msg = cm.unraisable.err_msg else: err_msg = "Exception ignored in" msg = f"{err_msg}: {cm.unraisable.object!r}\n\n" msg += "".join( traceback.format_exception( cm.unraisable.exc_type, cm.unraisable.exc_value, cm.unraisable.exc_traceback, ) ) > warnings.warn(pytest.PytestUnraisableExceptionWarning(msg)) E pytest.PytestUnraisableExceptionWarning: Exception ignored in: E E Traceback (most recent call last): E File "/build/reproducible-path/aiorwlock-1.0.0/tests/conftest.py", line 44, in event_loop E gc.collect() E ResourceWarning: unclosed /usr/lib/python3/dist-packages/_pytest/unraisableexception.py:80: PytestUnraisableExceptionWarning ---------------------------- Captured log teardown ----------------------------- ERROR asyncio:conftest.py:44 Task was destroyed but it is pending! task: .task() running at /build/reproducible-path/aiorwlock-1.0.0/tests/test_rwlock.py:30> wait_for=> _ ERROR at teardown of test_writer_success_with_statement[debug:false-uvloop] __ cls = func = . at 0xf5f606b8> when = 'teardown' reraise = (, ) @classmethod def from_call( cls, func: Callable[[], TResult], when: Literal["collect", "setup", "call", "teardown"], reraise: Optional[ Union[Type[BaseException], Tuple[Type[BaseException], ...]] ] = None, ) -> "CallInfo[TResult]": """Call func, wrapping the result in a CallInfo. :param func: The function to call. Called without arguments. :param when: The phase in which the function is called. :param reraise: Exception or exceptions that shall propagate if raised by the function, instead of being wrapped in the CallInfo. """ excinfo = None start = timing.time() precise_start = timing.perf_counter() try: > result: Optional[TResult] = func() /usr/lib/python3/dist-packages/_pytest/runner.py:341: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/dist-packages/_pytest/runner.py:241: in lambda: runtest_hook(item=item, **kwds), when=when, reraise=reraise /usr/lib/python3/dist-packages/pluggy/_hooks.py:513: in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) /usr/lib/python3/dist-packages/pluggy/_manager.py:120: in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) /usr/lib/python3/dist-packages/_pytest/threadexception.py:92: in pytest_runtest_teardown yield from thread_exception_runtest_hook() /usr/lib/python3/dist-packages/_pytest/threadexception.py:63: in thread_exception_runtest_hook yield /usr/lib/python3/dist-packages/_pytest/unraisableexception.py:95: in pytest_runtest_teardown yield from unraisable_exception_runtest_hook() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ def unraisable_exception_runtest_hook() -> Generator[None, None, None]: with catch_unraisable_exception() as cm: try: yield finally: if cm.unraisable: if cm.unraisable.err_msg is not None: err_msg = cm.unraisable.err_msg else: err_msg = "Exception ignored in" msg = f"{err_msg}: {cm.unraisable.object!r}\n\n" msg += "".join( traceback.format_exception( cm.unraisable.exc_type, cm.unraisable.exc_value, cm.unraisable.exc_traceback, ) ) > warnings.warn(pytest.PytestUnraisableExceptionWarning(msg)) E pytest.PytestUnraisableExceptionWarning: Exception ignored in: E E Traceback (most recent call last): E File "/build/reproducible-path/aiorwlock-1.0.0/tests/conftest.py", line 44, in event_loop E gc.collect() E ResourceWarning: unclosed /usr/lib/python3/dist-packages/_pytest/unraisableexception.py:80: PytestUnraisableExceptionWarning __________ ERROR at teardown of test_current_task[debug:false-uvloop] __________ cls = func = . at 0xf5f60ed8> when = 'teardown' reraise = (, ) @classmethod def from_call( cls, func: Callable[[], TResult], when: Literal["collect", "setup", "call", "teardown"], reraise: Optional[ Union[Type[BaseException], Tuple[Type[BaseException], ...]] ] = None, ) -> "CallInfo[TResult]": """Call func, wrapping the result in a CallInfo. :param func: The function to call. Called without arguments. :param when: The phase in which the function is called. :param reraise: Exception or exceptions that shall propagate if raised by the function, instead of being wrapped in the CallInfo. """ excinfo = None start = timing.time() precise_start = timing.perf_counter() try: > result: Optional[TResult] = func() /usr/lib/python3/dist-packages/_pytest/runner.py:341: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/dist-packages/_pytest/runner.py:241: in lambda: runtest_hook(item=item, **kwds), when=when, reraise=reraise /usr/lib/python3/dist-packages/pluggy/_hooks.py:513: in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) /usr/lib/python3/dist-packages/pluggy/_manager.py:120: in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) /usr/lib/python3/dist-packages/_pytest/threadexception.py:92: in pytest_runtest_teardown yield from thread_exception_runtest_hook() /usr/lib/python3/dist-packages/_pytest/threadexception.py:63: in thread_exception_runtest_hook yield /usr/lib/python3/dist-packages/_pytest/unraisableexception.py:95: in pytest_runtest_teardown yield from unraisable_exception_runtest_hook() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ def unraisable_exception_runtest_hook() -> Generator[None, None, None]: with catch_unraisable_exception() as cm: try: yield finally: if cm.unraisable: if cm.unraisable.err_msg is not None: err_msg = cm.unraisable.err_msg else: err_msg = "Exception ignored in" msg = f"{err_msg}: {cm.unraisable.object!r}\n\n" msg += "".join( traceback.format_exception( cm.unraisable.exc_type, cm.unraisable.exc_value, cm.unraisable.exc_traceback, ) ) > warnings.warn(pytest.PytestUnraisableExceptionWarning(msg)) E pytest.PytestUnraisableExceptionWarning: Exception ignored in: E E Traceback (most recent call last): E File "/build/reproducible-path/aiorwlock-1.0.0/tests/conftest.py", line 44, in event_loop E gc.collect() E ResourceWarning: unclosed /usr/lib/python3/dist-packages/_pytest/unraisableexception.py:80: PytestUnraisableExceptionWarning ---------------------------- Captured log teardown ----------------------------- ERROR asyncio:conftest.py:44 Task was destroyed but it is pending! task: .task() running at /build/reproducible-path/aiorwlock-1.0.0/tests/test_rwlock.py:30> wait_for=> ______ ERROR at teardown of test_writer_success_fast[debug:false-pyloop] _______ cls = func = . at 0xf5f66f28> when = 'teardown' reraise = (, ) @classmethod def from_call( cls, func: Callable[[], TResult], when: Literal["collect", "setup", "call", "teardown"], reraise: Optional[ Union[Type[BaseException], Tuple[Type[BaseException], ...]] ] = None, ) -> "CallInfo[TResult]": """Call func, wrapping the result in a CallInfo. :param func: The function to call. Called without arguments. :param when: The phase in which the function is called. :param reraise: Exception or exceptions that shall propagate if raised by the function, instead of being wrapped in the CallInfo. """ excinfo = None start = timing.time() precise_start = timing.perf_counter() try: > result: Optional[TResult] = func() /usr/lib/python3/dist-packages/_pytest/runner.py:341: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/dist-packages/_pytest/runner.py:241: in lambda: runtest_hook(item=item, **kwds), when=when, reraise=reraise /usr/lib/python3/dist-packages/pluggy/_hooks.py:513: in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) /usr/lib/python3/dist-packages/pluggy/_manager.py:120: in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) /usr/lib/python3/dist-packages/_pytest/threadexception.py:92: in pytest_runtest_teardown yield from thread_exception_runtest_hook() /usr/lib/python3/dist-packages/_pytest/threadexception.py:63: in thread_exception_runtest_hook yield /usr/lib/python3/dist-packages/_pytest/unraisableexception.py:95: in pytest_runtest_teardown yield from unraisable_exception_runtest_hook() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ def unraisable_exception_runtest_hook() -> Generator[None, None, None]: with catch_unraisable_exception() as cm: try: yield finally: if cm.unraisable: if cm.unraisable.err_msg is not None: err_msg = cm.unraisable.err_msg else: err_msg = "Exception ignored in" msg = f"{err_msg}: {cm.unraisable.object!r}\n\n" msg += "".join( traceback.format_exception( cm.unraisable.exc_type, cm.unraisable.exc_value, cm.unraisable.exc_traceback, ) ) > warnings.warn(pytest.PytestUnraisableExceptionWarning(msg)) E pytest.PytestUnraisableExceptionWarning: Exception ignored in: E E Traceback (most recent call last): E File "/build/reproducible-path/aiorwlock-1.0.0/tests/conftest.py", line 44, in event_loop E gc.collect() E ResourceWarning: unclosed /usr/lib/python3/dist-packages/_pytest/unraisableexception.py:80: PytestUnraisableExceptionWarning ---------------------------- Captured log teardown ----------------------------- ERROR asyncio:base_events.py:1821 Task was destroyed but it is pending! task: .task() running at /build/reproducible-path/aiorwlock-1.0.0/tests/test_rwlock.py:30> wait_for=> _ ERROR at teardown of test_writer_success_with_statement[debug:false-pyloop] __ cls = func = . at 0xf5f662f8> when = 'teardown' reraise = (, ) @classmethod def from_call( cls, func: Callable[[], TResult], when: Literal["collect", "setup", "call", "teardown"], reraise: Optional[ Union[Type[BaseException], Tuple[Type[BaseException], ...]] ] = None, ) -> "CallInfo[TResult]": """Call func, wrapping the result in a CallInfo. :param func: The function to call. Called without arguments. :param when: The phase in which the function is called. :param reraise: Exception or exceptions that shall propagate if raised by the function, instead of being wrapped in the CallInfo. """ excinfo = None start = timing.time() precise_start = timing.perf_counter() try: > result: Optional[TResult] = func() /usr/lib/python3/dist-packages/_pytest/runner.py:341: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/dist-packages/_pytest/runner.py:241: in lambda: runtest_hook(item=item, **kwds), when=when, reraise=reraise /usr/lib/python3/dist-packages/pluggy/_hooks.py:513: in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) /usr/lib/python3/dist-packages/pluggy/_manager.py:120: in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) /usr/lib/python3/dist-packages/_pytest/threadexception.py:92: in pytest_runtest_teardown yield from thread_exception_runtest_hook() /usr/lib/python3/dist-packages/_pytest/threadexception.py:63: in thread_exception_runtest_hook yield /usr/lib/python3/dist-packages/_pytest/unraisableexception.py:95: in pytest_runtest_teardown yield from unraisable_exception_runtest_hook() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ def unraisable_exception_runtest_hook() -> Generator[None, None, None]: with catch_unraisable_exception() as cm: try: yield finally: if cm.unraisable: if cm.unraisable.err_msg is not None: err_msg = cm.unraisable.err_msg else: err_msg = "Exception ignored in" msg = f"{err_msg}: {cm.unraisable.object!r}\n\n" msg += "".join( traceback.format_exception( cm.unraisable.exc_type, cm.unraisable.exc_value, cm.unraisable.exc_traceback, ) ) > warnings.warn(pytest.PytestUnraisableExceptionWarning(msg)) E pytest.PytestUnraisableExceptionWarning: Exception ignored in: E E Traceback (most recent call last): E File "/build/reproducible-path/aiorwlock-1.0.0/tests/conftest.py", line 44, in event_loop E gc.collect() E ResourceWarning: unclosed /usr/lib/python3/dist-packages/_pytest/unraisableexception.py:80: PytestUnraisableExceptionWarning __________ ERROR at teardown of test_current_task[debug:false-pyloop] __________ cls = func = . at 0xf5f66b18> when = 'teardown' reraise = (, ) @classmethod def from_call( cls, func: Callable[[], TResult], when: Literal["collect", "setup", "call", "teardown"], reraise: Optional[ Union[Type[BaseException], Tuple[Type[BaseException], ...]] ] = None, ) -> "CallInfo[TResult]": """Call func, wrapping the result in a CallInfo. :param func: The function to call. Called without arguments. :param when: The phase in which the function is called. :param reraise: Exception or exceptions that shall propagate if raised by the function, instead of being wrapped in the CallInfo. """ excinfo = None start = timing.time() precise_start = timing.perf_counter() try: > result: Optional[TResult] = func() /usr/lib/python3/dist-packages/_pytest/runner.py:341: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/dist-packages/_pytest/runner.py:241: in lambda: runtest_hook(item=item, **kwds), when=when, reraise=reraise /usr/lib/python3/dist-packages/pluggy/_hooks.py:513: in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) /usr/lib/python3/dist-packages/pluggy/_manager.py:120: in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) /usr/lib/python3/dist-packages/_pytest/threadexception.py:92: in pytest_runtest_teardown yield from thread_exception_runtest_hook() /usr/lib/python3/dist-packages/_pytest/threadexception.py:63: in thread_exception_runtest_hook yield /usr/lib/python3/dist-packages/_pytest/unraisableexception.py:95: in pytest_runtest_teardown yield from unraisable_exception_runtest_hook() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ def unraisable_exception_runtest_hook() -> Generator[None, None, None]: with catch_unraisable_exception() as cm: try: yield finally: if cm.unraisable: if cm.unraisable.err_msg is not None: err_msg = cm.unraisable.err_msg else: err_msg = "Exception ignored in" msg = f"{err_msg}: {cm.unraisable.object!r}\n\n" msg += "".join( traceback.format_exception( cm.unraisable.exc_type, cm.unraisable.exc_value, cm.unraisable.exc_traceback, ) ) > warnings.warn(pytest.PytestUnraisableExceptionWarning(msg)) E pytest.PytestUnraisableExceptionWarning: Exception ignored in: E E Traceback (most recent call last): E File "/build/reproducible-path/aiorwlock-1.0.0/tests/conftest.py", line 44, in event_loop E gc.collect() E ResourceWarning: unclosed /usr/lib/python3/dist-packages/_pytest/unraisableexception.py:80: PytestUnraisableExceptionWarning ---------------------------- Captured log teardown ----------------------------- ERROR asyncio:base_events.py:1821 Task was destroyed but it is pending! task: .task() running at /build/reproducible-path/aiorwlock-1.0.0/tests/test_rwlock.py:30> wait_for=> =================================== FAILURES =================================== _________________ test_get_write_then_read[debug:true-pyloop] __________________ loop = <_UnixSelectorEventLoop running=False closed=False debug=True> @pytest.mark.asyncio async def test_get_write_then_read(loop): rwlock = RWLock() rl = rwlock.reader wl = rwlock.writer > async with wl: ../../../tests/test_corner_cases.py:32: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ aiorwlock/__init__.py:190: in __aenter__ await self.acquire() aiorwlock/__init__.py:234: in acquire await self._lock.acquire_write() aiorwlock/__init__.py:116: in acquire_write await self._yield_after_acquire(self._WL) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = , lock_type = 2 async def _yield_after_acquire(self, lock_type: int) -> None: if self._do_yield: try: > await asyncio.sleep(0.0, loop=self._loop) E TypeError: sleep() got an unexpected keyword argument 'loop' aiorwlock/__init__.py:58: TypeError _________ test_get_write_then_read_and_write_again[debug:true-pyloop] __________ loop = <_UnixSelectorEventLoop running=False closed=False debug=True> @pytest.mark.asyncio async def test_get_write_then_read_and_write_again(loop): rwlock = RWLock() rl = rwlock.reader wl = rwlock.writer f = loop.create_future() writes = [] async def get_write_lock(): await f with should_fail(0.1, loop): async with wl: assert wl.locked writes.append('should not be here') ensure_future(get_write_lock()) > async with wl: ../../../tests/test_corner_cases.py:59: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ aiorwlock/__init__.py:190: in __aenter__ await self.acquire() aiorwlock/__init__.py:234: in acquire await self._lock.acquire_write() aiorwlock/__init__.py:116: in acquire_write await self._yield_after_acquire(self._WL) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = , lock_type = 2 async def _yield_after_acquire(self, lock_type: int) -> None: if self._do_yield: try: > await asyncio.sleep(0.0, loop=self._loop) E TypeError: sleep() got an unexpected keyword argument 'loop' aiorwlock/__init__.py:58: TypeError ___________________ test_writers_deadlock[debug:true-pyloop] ___________________ loop = <_UnixSelectorEventLoop running=False closed=False debug=True> @pytest.mark.asyncio async def test_writers_deadlock(loop): rwlock = RWLock() rl = rwlock.reader wl = rwlock.writer # Scenario: # - task A (this) acquires read lock # - task B,C wait for write lock # # A releases the lock and, in the same loop interation, # task B gets cancelled (eg: by timeout); # B gets cancelled without waking up next waiter -- deadlock; # # See asyncio.Lock deadlock issue: # https://github.com/python/cpython/pull/1031 async def coro(): async with wl: assert wl.locked await asyncio.sleep(0.2, loop) > async with rl: ../../../tests/test_corner_cases.py:92: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ aiorwlock/__init__.py:190: in __aenter__ await self.acquire() aiorwlock/__init__.py:215: in acquire await self._lock.acquire_read() aiorwlock/__init__.py:81: in acquire_read await self._yield_after_acquire(self._RL) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = , lock_type = 1 async def _yield_after_acquire(self, lock_type: int) -> None: if self._do_yield: try: > await asyncio.sleep(0.0, loop=self._loop) E TypeError: sleep() got an unexpected keyword argument 'loop' aiorwlock/__init__.py:58: TypeError ---------------------------- Captured log teardown ----------------------------- ERROR asyncio:base_events.py:1821 Task was destroyed but it is pending! source_traceback: Object created at (most recent call last): File "", line 198, in _run_module_as_main File "", line 88, in _run_code File "/usr/lib/python3/dist-packages/pytest/__main__.py", line 7, in raise SystemExit(pytest.console_main()) File "/usr/lib/python3/dist-packages/_pytest/config/__init__.py", line 206, in console_main code = main() File "/usr/lib/python3/dist-packages/_pytest/config/__init__.py", line 178, in main ret: Union[ExitCode, int] = config.hook.pytest_cmdline_main( File "/usr/lib/python3/dist-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3/dist-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3/dist-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3/dist-packages/_pytest/main.py", line 332, in pytest_cmdline_main return wrap_session(config, _main) File "/usr/lib/python3/dist-packages/_pytest/main.py", line 285, in wrap_session session.exitstatus = doit(config, session) or 0 File "/usr/lib/python3/dist-packages/_pytest/main.py", line 339, in _main config.hook.pytest_runtestloop(session=session) File "/usr/lib/python3/dist-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3/dist-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3/dist-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3/dist-packages/_pytest/main.py", line 364, in pytest_runtestloop item.config.hook.pytest_runtest_protocol(item=item, nextitem=nextitem) File "/usr/lib/python3/dist-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3/dist-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3/dist-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3/dist-packages/_pytest/runner.py", line 116, in pytest_runtest_protocol runtestprotocol(item, nextitem=nextitem) File "/usr/lib/python3/dist-packages/_pytest/runner.py", line 135, in runtestprotocol reports.append(call_and_report(item, "call", log)) File "/usr/lib/python3/dist-packages/_pytest/runner.py", line 240, in call_and_report call = CallInfo.from_call( File "/usr/lib/python3/dist-packages/_pytest/runner.py", line 341, in from_call result: Optional[TResult] = func() File "/usr/lib/python3/dist-packages/_pytest/runner.py", line 241, in lambda: runtest_hook(item=item, **kwds), when=when, reraise=reraise File "/usr/lib/python3/dist-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3/dist-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3/dist-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3/dist-packages/_pytest/runner.py", line 173, in pytest_runtest_call item.runtest() File "/usr/lib/python3/dist-packages/_pytest/python.py", line 1632, in runtest self.ihook.pytest_pyfunc_call(pyfuncitem=self) File "/usr/lib/python3/dist-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3/dist-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3/dist-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3/dist-packages/_pytest/python.py", line 162, in pytest_pyfunc_call result = testfunction(**testargs) File "/usr/lib/python3/dist-packages/pytest_asyncio/plugin.py", line 478, in inner _loop.run_until_complete(task) File "/usr/lib/python3.12/asyncio/base_events.py", line 674, in run_until_complete self.run_forever() File "/usr/lib/python3.12/asyncio/base_events.py", line 641, in run_forever self._run_once() File "/usr/lib/python3.12/asyncio/base_events.py", line 1979, in _run_once handle._run() File "/usr/lib/python3.12/asyncio/events.py", line 88, in _run self._context.run(self._callback, *self._args) File "/build/reproducible-path/aiorwlock-1.0.0/tests/test_corner_cases.py", line 57, in test_get_write_then_read_and_write_again ensure_future(get_write_lock()) File "/usr/lib/python3.12/asyncio/tasks.py", line 695, in ensure_future return loop.create_task(coro_or_future) task: .get_write_lock() running at /build/reproducible-path/aiorwlock-1.0.0/tests/test_corner_cases.py:51> wait_for= created at /usr/lib/python3.12/asyncio/tasks.py:695> ____________________ test_readers_cancel[debug:true-pyloop] ____________________ loop = <_UnixSelectorEventLoop running=False closed=False debug=True> @pytest.mark.asyncio async def test_readers_cancel(loop): rwlock = RWLock() rl = rwlock.reader wl = rwlock.writer async def coro(lock): async with lock: assert lock.locked await asyncio.sleep(0.2, loop) > async with wl: ../../../tests/test_corner_cases.py:119: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ aiorwlock/__init__.py:190: in __aenter__ await self.acquire() aiorwlock/__init__.py:234: in acquire await self._lock.acquire_write() aiorwlock/__init__.py:116: in acquire_write await self._yield_after_acquire(self._WL) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = , lock_type = 2 async def _yield_after_acquire(self, lock_type: int) -> None: if self._do_yield: try: > await asyncio.sleep(0.0, loop=self._loop) E TypeError: sleep() got an unexpected keyword argument 'loop' aiorwlock/__init__.py:58: TypeError _______________ test_canceled_inside_acquire[debug:true-pyloop] ________________ loop = <_UnixSelectorEventLoop running=False closed=False debug=True> @pytest.mark.asyncio async def test_canceled_inside_acquire(loop): rwlock = RWLock() rl = rwlock.reader async def coro(lock): async with lock: pass task = ensure_future(coro(rl)) await asyncio.sleep(0) task.cancel() try: > await task ../../../tests/test_corner_cases.py:148: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../../../tests/test_corner_cases.py:140: in coro async with lock: aiorwlock/__init__.py:190: in __aenter__ await self.acquire() aiorwlock/__init__.py:215: in acquire await self._lock.acquire_read() aiorwlock/__init__.py:81: in acquire_read await self._yield_after_acquire(self._RL) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = , lock_type = 1 async def _yield_after_acquire(self, lock_type: int) -> None: if self._do_yield: try: > await asyncio.sleep(0.0, loop=self._loop) E TypeError: sleep() got an unexpected keyword argument 'loop' aiorwlock/__init__.py:58: TypeError _________________ test_get_write_then_read[debug:true-uvloop] __________________ loop = @pytest.mark.asyncio async def test_get_write_then_read(loop): rwlock = RWLock() rl = rwlock.reader wl = rwlock.writer > async with wl: ../../../tests/test_corner_cases.py:32: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ aiorwlock/__init__.py:190: in __aenter__ await self.acquire() aiorwlock/__init__.py:234: in acquire await self._lock.acquire_write() aiorwlock/__init__.py:116: in acquire_write await self._yield_after_acquire(self._WL) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = , lock_type = 2 async def _yield_after_acquire(self, lock_type: int) -> None: if self._do_yield: try: > await asyncio.sleep(0.0, loop=self._loop) E TypeError: sleep() got an unexpected keyword argument 'loop' aiorwlock/__init__.py:58: TypeError _________ test_get_write_then_read_and_write_again[debug:true-uvloop] __________ loop = @pytest.mark.asyncio async def test_get_write_then_read_and_write_again(loop): rwlock = RWLock() rl = rwlock.reader wl = rwlock.writer f = loop.create_future() writes = [] async def get_write_lock(): await f with should_fail(0.1, loop): async with wl: assert wl.locked writes.append('should not be here') ensure_future(get_write_lock()) > async with wl: ../../../tests/test_corner_cases.py:59: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ aiorwlock/__init__.py:190: in __aenter__ await self.acquire() aiorwlock/__init__.py:234: in acquire await self._lock.acquire_write() aiorwlock/__init__.py:116: in acquire_write await self._yield_after_acquire(self._WL) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = , lock_type = 2 async def _yield_after_acquire(self, lock_type: int) -> None: if self._do_yield: try: > await asyncio.sleep(0.0, loop=self._loop) E TypeError: sleep() got an unexpected keyword argument 'loop' aiorwlock/__init__.py:58: TypeError ___________________ test_writers_deadlock[debug:true-uvloop] ___________________ loop = @pytest.mark.asyncio async def test_writers_deadlock(loop): rwlock = RWLock() rl = rwlock.reader wl = rwlock.writer # Scenario: # - task A (this) acquires read lock # - task B,C wait for write lock # # A releases the lock and, in the same loop interation, # task B gets cancelled (eg: by timeout); # B gets cancelled without waking up next waiter -- deadlock; # # See asyncio.Lock deadlock issue: # https://github.com/python/cpython/pull/1031 async def coro(): async with wl: assert wl.locked await asyncio.sleep(0.2, loop) > async with rl: ../../../tests/test_corner_cases.py:92: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ aiorwlock/__init__.py:190: in __aenter__ await self.acquire() aiorwlock/__init__.py:215: in acquire await self._lock.acquire_read() aiorwlock/__init__.py:81: in acquire_read await self._yield_after_acquire(self._RL) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = , lock_type = 1 async def _yield_after_acquire(self, lock_type: int) -> None: if self._do_yield: try: > await asyncio.sleep(0.0, loop=self._loop) E TypeError: sleep() got an unexpected keyword argument 'loop' aiorwlock/__init__.py:58: TypeError ---------------------------- Captured log teardown ----------------------------- ERROR asyncio:conftest.py:44 Task was destroyed but it is pending! source_traceback: Object created at (most recent call last): File "", line 198, in _run_module_as_main File "", line 88, in _run_code File "/usr/lib/python3/dist-packages/pytest/__main__.py", line 7, in raise SystemExit(pytest.console_main()) File "/usr/lib/python3/dist-packages/_pytest/config/__init__.py", line 206, in console_main code = main() File "/usr/lib/python3/dist-packages/_pytest/config/__init__.py", line 178, in main ret: Union[ExitCode, int] = config.hook.pytest_cmdline_main( File "/usr/lib/python3/dist-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3/dist-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3/dist-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3/dist-packages/_pytest/main.py", line 332, in pytest_cmdline_main return wrap_session(config, _main) File "/usr/lib/python3/dist-packages/_pytest/main.py", line 285, in wrap_session session.exitstatus = doit(config, session) or 0 File "/usr/lib/python3/dist-packages/_pytest/main.py", line 339, in _main config.hook.pytest_runtestloop(session=session) File "/usr/lib/python3/dist-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3/dist-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3/dist-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3/dist-packages/_pytest/main.py", line 364, in pytest_runtestloop item.config.hook.pytest_runtest_protocol(item=item, nextitem=nextitem) File "/usr/lib/python3/dist-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3/dist-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3/dist-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3/dist-packages/_pytest/runner.py", line 116, in pytest_runtest_protocol runtestprotocol(item, nextitem=nextitem) File "/usr/lib/python3/dist-packages/_pytest/runner.py", line 135, in runtestprotocol reports.append(call_and_report(item, "call", log)) File "/usr/lib/python3/dist-packages/_pytest/runner.py", line 240, in call_and_report call = CallInfo.from_call( File "/usr/lib/python3/dist-packages/_pytest/runner.py", line 341, in from_call result: Optional[TResult] = func() File "/usr/lib/python3/dist-packages/_pytest/runner.py", line 241, in lambda: runtest_hook(item=item, **kwds), when=when, reraise=reraise File "/usr/lib/python3/dist-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3/dist-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3/dist-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3/dist-packages/_pytest/runner.py", line 173, in pytest_runtest_call item.runtest() File "/usr/lib/python3/dist-packages/_pytest/python.py", line 1632, in runtest self.ihook.pytest_pyfunc_call(pyfuncitem=self) File "/usr/lib/python3/dist-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3/dist-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3/dist-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3/dist-packages/_pytest/python.py", line 162, in pytest_pyfunc_call result = testfunction(**testargs) File "/usr/lib/python3/dist-packages/pytest_asyncio/plugin.py", line 478, in inner _loop.run_until_complete(task) File "/build/reproducible-path/aiorwlock-1.0.0/tests/test_corner_cases.py", line 57, in test_get_write_then_read_and_write_again ensure_future(get_write_lock()) File "/usr/lib/python3.12/asyncio/tasks.py", line 695, in ensure_future return loop.create_task(coro_or_future) task: .get_write_lock() running at /build/reproducible-path/aiorwlock-1.0.0/tests/test_corner_cases.py:51> wait_for= created at /usr/lib/python3.12/asyncio/tasks.py:695> ____________________ test_readers_cancel[debug:true-uvloop] ____________________ loop = @pytest.mark.asyncio async def test_readers_cancel(loop): rwlock = RWLock() rl = rwlock.reader wl = rwlock.writer async def coro(lock): async with lock: assert lock.locked await asyncio.sleep(0.2, loop) > async with wl: ../../../tests/test_corner_cases.py:119: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ aiorwlock/__init__.py:190: in __aenter__ await self.acquire() aiorwlock/__init__.py:234: in acquire await self._lock.acquire_write() aiorwlock/__init__.py:116: in acquire_write await self._yield_after_acquire(self._WL) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = , lock_type = 2 async def _yield_after_acquire(self, lock_type: int) -> None: if self._do_yield: try: > await asyncio.sleep(0.0, loop=self._loop) E TypeError: sleep() got an unexpected keyword argument 'loop' aiorwlock/__init__.py:58: TypeError _______________ test_canceled_inside_acquire[debug:true-uvloop] ________________ loop = @pytest.mark.asyncio async def test_canceled_inside_acquire(loop): rwlock = RWLock() rl = rwlock.reader async def coro(lock): async with lock: pass task = ensure_future(coro(rl)) await asyncio.sleep(0) task.cancel() try: > await task ../../../tests/test_corner_cases.py:148: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../../../tests/test_corner_cases.py:140: in coro async with lock: aiorwlock/__init__.py:190: in __aenter__ await self.acquire() aiorwlock/__init__.py:215: in acquire await self._lock.acquire_read() aiorwlock/__init__.py:81: in acquire_read await self._yield_after_acquire(self._RL) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = , lock_type = 1 async def _yield_after_acquire(self, lock_type: int) -> None: if self._do_yield: try: > await asyncio.sleep(0.0, loop=self._loop) E TypeError: sleep() got an unexpected keyword argument 'loop' aiorwlock/__init__.py:58: TypeError _________________________ test_repr[debug:true-pyloop] _________________________ loop = <_UnixSelectorEventLoop running=False closed=False debug=True> @pytest.mark.asyncio async def test_repr(loop): rwlock = RWLock() assert 'RWLock' in rwlock.__repr__() assert 'WriterLock: [unlocked' in rwlock.__repr__() assert 'ReaderLock: [unlocked' in rwlock.__repr__() # reader lock __repr__ > await rwlock.reader_lock.acquire() ../../../tests/test_rwlock.py:101: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ aiorwlock/__init__.py:215: in acquire await self._lock.acquire_read() aiorwlock/__init__.py:81: in acquire_read await self._yield_after_acquire(self._RL) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = , lock_type = 1 async def _yield_after_acquire(self, lock_type: int) -> None: if self._do_yield: try: > await asyncio.sleep(0.0, loop=self._loop) E TypeError: sleep() got an unexpected keyword argument 'loop' aiorwlock/__init__.py:58: TypeError __________________ test_many_readers[debug:true-fast-uvloop] ___________________ cls = func = . at 0xf66da208>, when = 'call' reraise = (, ) @classmethod def from_call( cls, func: Callable[[], TResult], when: Literal["collect", "setup", "call", "teardown"], reraise: Optional[ Union[Type[BaseException], Tuple[Type[BaseException], ...]] ] = None, ) -> "CallInfo[TResult]": """Call func, wrapping the result in a CallInfo. :param func: The function to call. Called without arguments. :param when: The phase in which the function is called. :param reraise: Exception or exceptions that shall propagate if raised by the function, instead of being wrapped in the CallInfo. """ excinfo = None start = timing.time() precise_start = timing.perf_counter() try: > result: Optional[TResult] = func() /usr/lib/python3/dist-packages/_pytest/runner.py:341: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/dist-packages/_pytest/runner.py:241: in lambda: runtest_hook(item=item, **kwds), when=when, reraise=reraise /usr/lib/python3/dist-packages/pluggy/_hooks.py:513: in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) /usr/lib/python3/dist-packages/pluggy/_manager.py:120: in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) /usr/lib/python3/dist-packages/_pytest/threadexception.py:87: in pytest_runtest_call yield from thread_exception_runtest_hook() /usr/lib/python3/dist-packages/_pytest/threadexception.py:63: in thread_exception_runtest_hook yield /usr/lib/python3/dist-packages/_pytest/unraisableexception.py:90: in pytest_runtest_call yield from unraisable_exception_runtest_hook() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ def unraisable_exception_runtest_hook() -> Generator[None, None, None]: with catch_unraisable_exception() as cm: try: yield finally: if cm.unraisable: if cm.unraisable.err_msg is not None: err_msg = cm.unraisable.err_msg else: err_msg = "Exception ignored in" msg = f"{err_msg}: {cm.unraisable.object!r}\n\n" msg += "".join( traceback.format_exception( cm.unraisable.exc_type, cm.unraisable.exc_value, cm.unraisable.exc_traceback, ) ) > warnings.warn(pytest.PytestUnraisableExceptionWarning(msg)) E pytest.PytestUnraisableExceptionWarning: Exception ignored in: E E Traceback (most recent call last): E File "/usr/lib/python3.12/traceback.py", line 265, in __init__ E def __init__(self, filename, lineno, name, *, lookup_line=True, E E ResourceWarning: unclosed /usr/lib/python3/dist-packages/_pytest/unraisableexception.py:80: PytestUnraisableExceptionWarning ________________ test_reader_recursion[debug:true-fast-uvloop] _________________ cls = func = . at 0xf66b0e38>, when = 'call' reraise = (, ) @classmethod def from_call( cls, func: Callable[[], TResult], when: Literal["collect", "setup", "call", "teardown"], reraise: Optional[ Union[Type[BaseException], Tuple[Type[BaseException], ...]] ] = None, ) -> "CallInfo[TResult]": """Call func, wrapping the result in a CallInfo. :param func: The function to call. Called without arguments. :param when: The phase in which the function is called. :param reraise: Exception or exceptions that shall propagate if raised by the function, instead of being wrapped in the CallInfo. """ excinfo = None start = timing.time() precise_start = timing.perf_counter() try: > result: Optional[TResult] = func() /usr/lib/python3/dist-packages/_pytest/runner.py:341: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/dist-packages/_pytest/runner.py:241: in lambda: runtest_hook(item=item, **kwds), when=when, reraise=reraise /usr/lib/python3/dist-packages/pluggy/_hooks.py:513: in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) /usr/lib/python3/dist-packages/pluggy/_manager.py:120: in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) /usr/lib/python3/dist-packages/_pytest/threadexception.py:87: in pytest_runtest_call yield from thread_exception_runtest_hook() /usr/lib/python3/dist-packages/_pytest/threadexception.py:63: in thread_exception_runtest_hook yield /usr/lib/python3/dist-packages/_pytest/unraisableexception.py:90: in pytest_runtest_call yield from unraisable_exception_runtest_hook() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ def unraisable_exception_runtest_hook() -> Generator[None, None, None]: with catch_unraisable_exception() as cm: try: yield finally: if cm.unraisable: if cm.unraisable.err_msg is not None: err_msg = cm.unraisable.err_msg else: err_msg = "Exception ignored in" msg = f"{err_msg}: {cm.unraisable.object!r}\n\n" msg += "".join( traceback.format_exception( cm.unraisable.exc_type, cm.unraisable.exc_value, cm.unraisable.exc_traceback, ) ) > warnings.warn(pytest.PytestUnraisableExceptionWarning(msg)) E pytest.PytestUnraisableExceptionWarning: Exception ignored in: E E Traceback (most recent call last): E File "/usr/lib/python3.12/linecache.py", line 52, in checkcache E def checkcache(filename=None): E E ResourceWarning: unclosed /usr/lib/python3/dist-packages/_pytest/unraisableexception.py:80: PytestUnraisableExceptionWarning ________________ test_writer_recursion[debug:true-fast-uvloop] _________________ cls = func = . at 0xf64557f8>, when = 'call' reraise = (, ) @classmethod def from_call( cls, func: Callable[[], TResult], when: Literal["collect", "setup", "call", "teardown"], reraise: Optional[ Union[Type[BaseException], Tuple[Type[BaseException], ...]] ] = None, ) -> "CallInfo[TResult]": """Call func, wrapping the result in a CallInfo. :param func: The function to call. Called without arguments. :param when: The phase in which the function is called. :param reraise: Exception or exceptions that shall propagate if raised by the function, instead of being wrapped in the CallInfo. """ excinfo = None start = timing.time() precise_start = timing.perf_counter() try: > result: Optional[TResult] = func() /usr/lib/python3/dist-packages/_pytest/runner.py:341: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/dist-packages/_pytest/runner.py:241: in lambda: runtest_hook(item=item, **kwds), when=when, reraise=reraise /usr/lib/python3/dist-packages/pluggy/_hooks.py:513: in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) /usr/lib/python3/dist-packages/pluggy/_manager.py:120: in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) /usr/lib/python3/dist-packages/_pytest/threadexception.py:87: in pytest_runtest_call yield from thread_exception_runtest_hook() /usr/lib/python3/dist-packages/_pytest/threadexception.py:63: in thread_exception_runtest_hook yield /usr/lib/python3/dist-packages/_pytest/unraisableexception.py:90: in pytest_runtest_call yield from unraisable_exception_runtest_hook() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ def unraisable_exception_runtest_hook() -> Generator[None, None, None]: with catch_unraisable_exception() as cm: try: yield finally: if cm.unraisable: if cm.unraisable.err_msg is not None: err_msg = cm.unraisable.err_msg else: err_msg = "Exception ignored in" msg = f"{err_msg}: {cm.unraisable.object!r}\n\n" msg += "".join( traceback.format_exception( cm.unraisable.exc_type, cm.unraisable.exc_value, cm.unraisable.exc_traceback, ) ) > warnings.warn(pytest.PytestUnraisableExceptionWarning(msg)) E pytest.PytestUnraisableExceptionWarning: Exception ignored in: E E Traceback (most recent call last): E File "/usr/lib/python3.12/linecache.py", line 52, in checkcache E def checkcache(filename=None): E E ResourceWarning: unclosed /usr/lib/python3/dist-packages/_pytest/unraisableexception.py:80: PytestUnraisableExceptionWarning __________ test_writer_then_reader_recursion[debug:true-fast-uvloop] ___________ cls = func = . at 0xf66b0e38>, when = 'call' reraise = (, ) @classmethod def from_call( cls, func: Callable[[], TResult], when: Literal["collect", "setup", "call", "teardown"], reraise: Optional[ Union[Type[BaseException], Tuple[Type[BaseException], ...]] ] = None, ) -> "CallInfo[TResult]": """Call func, wrapping the result in a CallInfo. :param func: The function to call. Called without arguments. :param when: The phase in which the function is called. :param reraise: Exception or exceptions that shall propagate if raised by the function, instead of being wrapped in the CallInfo. """ excinfo = None start = timing.time() precise_start = timing.perf_counter() try: > result: Optional[TResult] = func() /usr/lib/python3/dist-packages/_pytest/runner.py:341: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/dist-packages/_pytest/runner.py:241: in lambda: runtest_hook(item=item, **kwds), when=when, reraise=reraise /usr/lib/python3/dist-packages/pluggy/_hooks.py:513: in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) /usr/lib/python3/dist-packages/pluggy/_manager.py:120: in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) /usr/lib/python3/dist-packages/_pytest/threadexception.py:87: in pytest_runtest_call yield from thread_exception_runtest_hook() /usr/lib/python3/dist-packages/_pytest/threadexception.py:63: in thread_exception_runtest_hook yield /usr/lib/python3/dist-packages/_pytest/unraisableexception.py:90: in pytest_runtest_call yield from unraisable_exception_runtest_hook() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ def unraisable_exception_runtest_hook() -> Generator[None, None, None]: with catch_unraisable_exception() as cm: try: yield finally: if cm.unraisable: if cm.unraisable.err_msg is not None: err_msg = cm.unraisable.err_msg else: err_msg = "Exception ignored in" msg = f"{err_msg}: {cm.unraisable.object!r}\n\n" msg += "".join( traceback.format_exception( cm.unraisable.exc_type, cm.unraisable.exc_value, cm.unraisable.exc_traceback, ) ) > warnings.warn(pytest.PytestUnraisableExceptionWarning(msg)) E pytest.PytestUnraisableExceptionWarning: Exception ignored in: E E Traceback (most recent call last): E File "/usr/lib/python3.12/linecache.py", line 52, in checkcache E def checkcache(filename=None): E E ResourceWarning: unclosed /usr/lib/python3/dist-packages/_pytest/unraisableexception.py:80: PytestUnraisableExceptionWarning _________________ test_readers_writers[debug:true-fast-uvloop] _________________ cls = func = . at 0xf6455e38>, when = 'call' reraise = (, ) @classmethod def from_call( cls, func: Callable[[], TResult], when: Literal["collect", "setup", "call", "teardown"], reraise: Optional[ Union[Type[BaseException], Tuple[Type[BaseException], ...]] ] = None, ) -> "CallInfo[TResult]": """Call func, wrapping the result in a CallInfo. :param func: The function to call. Called without arguments. :param when: The phase in which the function is called. :param reraise: Exception or exceptions that shall propagate if raised by the function, instead of being wrapped in the CallInfo. """ excinfo = None start = timing.time() precise_start = timing.perf_counter() try: > result: Optional[TResult] = func() /usr/lib/python3/dist-packages/_pytest/runner.py:341: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/dist-packages/_pytest/runner.py:241: in lambda: runtest_hook(item=item, **kwds), when=when, reraise=reraise /usr/lib/python3/dist-packages/pluggy/_hooks.py:513: in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) /usr/lib/python3/dist-packages/pluggy/_manager.py:120: in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) /usr/lib/python3/dist-packages/_pytest/threadexception.py:87: in pytest_runtest_call yield from thread_exception_runtest_hook() /usr/lib/python3/dist-packages/_pytest/threadexception.py:63: in thread_exception_runtest_hook yield /usr/lib/python3/dist-packages/_pytest/unraisableexception.py:90: in pytest_runtest_call yield from unraisable_exception_runtest_hook() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ def unraisable_exception_runtest_hook() -> Generator[None, None, None]: with catch_unraisable_exception() as cm: try: yield finally: if cm.unraisable: if cm.unraisable.err_msg is not None: err_msg = cm.unraisable.err_msg else: err_msg = "Exception ignored in" msg = f"{err_msg}: {cm.unraisable.object!r}\n\n" msg += "".join( traceback.format_exception( cm.unraisable.exc_type, cm.unraisable.exc_value, cm.unraisable.exc_traceback, ) ) > warnings.warn(pytest.PytestUnraisableExceptionWarning(msg)) E pytest.PytestUnraisableExceptionWarning: Exception ignored in: E E Traceback (most recent call last): E File "/usr/lib/python3.12/traceback.py", line 377, in extract E @classmethod E E ResourceWarning: unclosed /usr/lib/python3/dist-packages/_pytest/unraisableexception.py:80: PytestUnraisableExceptionWarning _________________________ test_repr[debug:true-uvloop] _________________________ loop = @pytest.mark.asyncio async def test_repr(loop): rwlock = RWLock() assert 'RWLock' in rwlock.__repr__() assert 'WriterLock: [unlocked' in rwlock.__repr__() assert 'ReaderLock: [unlocked' in rwlock.__repr__() # reader lock __repr__ > await rwlock.reader_lock.acquire() ../../../tests/test_rwlock.py:101: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ aiorwlock/__init__.py:215: in acquire await self._lock.acquire_read() aiorwlock/__init__.py:81: in acquire_read await self._yield_after_acquire(self._RL) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = , lock_type = 1 async def _yield_after_acquire(self, lock_type: int) -> None: if self._do_yield: try: > await asyncio.sleep(0.0, loop=self._loop) E TypeError: sleep() got an unexpected keyword argument 'loop' aiorwlock/__init__.py:58: TypeError __________________ test_many_readers[debug:true-slow-uvloop] ___________________ loop = , fast_track = False @pytest.mark.asyncio async def test_many_readers(loop, fast_track): rwlock = RWLock(fast=fast_track) N = 5 locked = [] nlocked = [] async def f(): await rwlock.reader_lock.acquire() try: locked.append(1) await _wait() nlocked.append(len(locked)) await _wait() locked.pop(-1) finally: rwlock.reader_lock.release() > await Bunch(f, N).wait_for_finished() ../../../tests/test_rwlock.py:138: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../../../tests/test_rwlock.py:41: in wait_for_finished await asyncio.gather(*self._futures) ../../../tests/test_rwlock.py:30: in task await f() ../../../tests/test_rwlock.py:128: in f await rwlock.reader_lock.acquire() aiorwlock/__init__.py:215: in acquire await self._lock.acquire_read() aiorwlock/__init__.py:81: in acquire_read await self._yield_after_acquire(self._RL) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = , lock_type = 1 async def _yield_after_acquire(self, lock_type: int) -> None: if self._do_yield: try: > await asyncio.sleep(0.0, loop=self._loop) E TypeError: sleep() got an unexpected keyword argument 'loop' aiorwlock/__init__.py:58: TypeError ________________ test_reader_recursion[debug:true-slow-uvloop] _________________ loop = , fast_track = False @pytest.mark.asyncio async def test_reader_recursion(loop, fast_track): rwlock = RWLock(fast=fast_track) N = 5 locked = [] nlocked = [] async def f(): await rwlock.reader_lock.acquire() try: await rwlock.reader_lock.acquire() try: locked.append(1) await _wait() nlocked.append(len(locked)) await _wait() locked.pop(-1) finally: rwlock.reader_lock.release() finally: rwlock.reader_lock.release() > await Bunch(f, N).wait_for_finished() ../../../tests/test_rwlock.py:189: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../../../tests/test_rwlock.py:41: in wait_for_finished await asyncio.gather(*self._futures) ../../../tests/test_rwlock.py:30: in task await f() ../../../tests/test_rwlock.py:175: in f await rwlock.reader_lock.acquire() aiorwlock/__init__.py:215: in acquire await self._lock.acquire_read() aiorwlock/__init__.py:81: in acquire_read await self._yield_after_acquire(self._RL) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = , lock_type = 1 async def _yield_after_acquire(self, lock_type: int) -> None: if self._do_yield: try: > await asyncio.sleep(0.0, loop=self._loop) E TypeError: sleep() got an unexpected keyword argument 'loop' aiorwlock/__init__.py:58: TypeError ________________ test_writer_recursion[debug:true-slow-uvloop] _________________ loop = , fast_track = False @pytest.mark.asyncio async def test_writer_recursion(loop, fast_track): rwlock = RWLock(fast=fast_track) N = 5 locked = [] nlocked = [] async def f(): await rwlock.writer_lock.acquire() try: await rwlock.writer_lock.acquire() try: locked.append(1) await _wait() nlocked.append(len(locked)) await _wait() locked.pop(-1) finally: rwlock.writer_lock.release() finally: rwlock.writer_lock.release() > await Bunch(f, N).wait_for_finished() ../../../tests/test_rwlock.py:215: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../../../tests/test_rwlock.py:41: in wait_for_finished await asyncio.gather(*self._futures) ../../../tests/test_rwlock.py:30: in task await f() ../../../tests/test_rwlock.py:201: in f await rwlock.writer_lock.acquire() aiorwlock/__init__.py:234: in acquire await self._lock.acquire_write() aiorwlock/__init__.py:116: in acquire_write await self._yield_after_acquire(self._WL) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = , lock_type = 2 async def _yield_after_acquire(self, lock_type: int) -> None: if self._do_yield: try: > await asyncio.sleep(0.0, loop=self._loop) E TypeError: sleep() got an unexpected keyword argument 'loop' aiorwlock/__init__.py:58: TypeError __________ test_writer_then_reader_recursion[debug:true-slow-uvloop] ___________ loop = , fast_track = False @pytest.mark.asyncio async def test_writer_then_reader_recursion(loop, fast_track): rwlock = RWLock(fast=fast_track) N = 5 locked = [] nlocked = [] async def f(): await rwlock.writer_lock.acquire() try: await rwlock.reader_lock.acquire() try: locked.append(1) await _wait() nlocked.append(len(locked)) await _wait() locked.pop(-1) finally: rwlock.reader_lock.release() finally: rwlock.writer_lock.release() > await Bunch(f, N).wait_for_finished() ../../../tests/test_rwlock.py:241: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../../../tests/test_rwlock.py:41: in wait_for_finished await asyncio.gather(*self._futures) ../../../tests/test_rwlock.py:30: in task await f() ../../../tests/test_rwlock.py:227: in f await rwlock.writer_lock.acquire() aiorwlock/__init__.py:234: in acquire await self._lock.acquire_write() aiorwlock/__init__.py:116: in acquire_write await self._yield_after_acquire(self._WL) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = , lock_type = 2 async def _yield_after_acquire(self, lock_type: int) -> None: if self._do_yield: try: > await asyncio.sleep(0.0, loop=self._loop) E TypeError: sleep() got an unexpected keyword argument 'loop' aiorwlock/__init__.py:58: TypeError _________________ test_readers_writers[debug:true-slow-uvloop] _________________ loop = , fast_track = False @pytest.mark.asyncio async def test_readers_writers(loop, fast_track): rwlock = RWLock(fast=fast_track) N = 5 rlocked = [] wlocked = [] nlocked = [] async def r(): await rwlock.reader_lock.acquire() try: rlocked.append(1) await _wait() nlocked.append((len(rlocked), len(wlocked))) await _wait() rlocked.pop(-1) finally: rwlock.reader_lock.release() async def w(): await rwlock.writer_lock.acquire() try: wlocked.append(1) await _wait() nlocked.append((len(rlocked), len(wlocked))) await _wait() wlocked.pop(-1) finally: rwlock.writer_lock.release() b1 = Bunch(r, N) b2 = Bunch(w, N) await asyncio.sleep(0.0001) > await b1.wait_for_finished() ../../../tests/test_rwlock.py:299: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../../../tests/test_rwlock.py:41: in wait_for_finished await asyncio.gather(*self._futures) ../../../tests/test_rwlock.py:30: in task await f() ../../../tests/test_rwlock.py:273: in r await rwlock.reader_lock.acquire() aiorwlock/__init__.py:215: in acquire await self._lock.acquire_read() aiorwlock/__init__.py:81: in acquire_read await self._yield_after_acquire(self._RL) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = , lock_type = 1 async def _yield_after_acquire(self, lock_type: int) -> None: if self._do_yield: try: > await asyncio.sleep(0.0, loop=self._loop) E TypeError: sleep() got an unexpected keyword argument 'loop' aiorwlock/__init__.py:58: TypeError ___________________ test_read_locked[debug:true-slow-uvloop] ___________________ loop = , fast_track = False @pytest.mark.asyncio async def test_read_locked(loop, fast_track): rwlock = RWLock(fast=fast_track) assert not rwlock.reader_lock.locked > async with rwlock.reader_lock: ../../../tests/test_rwlock.py:469: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ aiorwlock/__init__.py:190: in __aenter__ await self.acquire() aiorwlock/__init__.py:215: in acquire await self._lock.acquire_read() aiorwlock/__init__.py:81: in acquire_read await self._yield_after_acquire(self._RL) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = , lock_type = 1 async def _yield_after_acquire(self, lock_type: int) -> None: if self._do_yield: try: > await asyncio.sleep(0.0, loop=self._loop) E TypeError: sleep() got an unexpected keyword argument 'loop' aiorwlock/__init__.py:58: TypeError __________________ test_write_locked[debug:true-slow-uvloop] ___________________ loop = , fast_track = False @pytest.mark.asyncio async def test_write_locked(loop, fast_track): rwlock = RWLock(fast=fast_track) assert not rwlock.writer_lock.locked > async with rwlock.writer_lock: ../../../tests/test_rwlock.py:477: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ aiorwlock/__init__.py:190: in __aenter__ await self.acquire() aiorwlock/__init__.py:234: in acquire await self._lock.acquire_write() aiorwlock/__init__.py:116: in acquire_write await self._yield_after_acquire(self._WL) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = , lock_type = 2 async def _yield_after_acquire(self, lock_type: int) -> None: if self._do_yield: try: > await asyncio.sleep(0.0, loop=self._loop) E TypeError: sleep() got an unexpected keyword argument 'loop' aiorwlock/__init__.py:58: TypeError _________ test_write_read_lock_multiple_tasks[debug:true-slow-uvloop] __________ loop = , fast_track = False @pytest.mark.asyncio async def test_write_read_lock_multiple_tasks(loop, fast_track): rwlock = RWLock(fast=fast_track) rl = rwlock.reader wl = rwlock.writer async def coro(): async with rl: assert not wl.locked assert rl.locked await asyncio.sleep(0.2, loop) > async with wl: ../../../tests/test_rwlock.py:493: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ aiorwlock/__init__.py:190: in __aenter__ await self.acquire() aiorwlock/__init__.py:234: in acquire await self._lock.acquire_write() aiorwlock/__init__.py:116: in acquire_write await self._yield_after_acquire(self._WL) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = , lock_type = 2 async def _yield_after_acquire(self, lock_type: int) -> None: if self._do_yield: try: > await asyncio.sleep(0.0, loop=self._loop) E TypeError: sleep() got an unexpected keyword argument 'loop' aiorwlock/__init__.py:58: TypeError ______________ test_read_context_manager[debug:true-slow-uvloop] _______________ loop = , fast_track = False @pytest.mark.asyncio async def test_read_context_manager(loop, fast_track): rwlock = RWLock(fast=fast_track) reader = rwlock.reader_lock assert not reader.locked > async with reader: ../../../tests/test_rwlock.py:516: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ aiorwlock/__init__.py:190: in __aenter__ await self.acquire() aiorwlock/__init__.py:215: in acquire await self._lock.acquire_read() aiorwlock/__init__.py:81: in acquire_read await self._yield_after_acquire(self._RL) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = , lock_type = 1 async def _yield_after_acquire(self, lock_type: int) -> None: if self._do_yield: try: > await asyncio.sleep(0.0, loop=self._loop) E TypeError: sleep() got an unexpected keyword argument 'loop' aiorwlock/__init__.py:58: TypeError ______________ test_write_context_manager[debug:true-slow-uvloop] ______________ loop = , fast_track = False @pytest.mark.asyncio async def test_write_context_manager(loop, fast_track): rwlock = RWLock(fast=fast_track) writer = rwlock.writer_lock assert not writer.locked > async with writer: ../../../tests/test_rwlock.py:525: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ aiorwlock/__init__.py:190: in __aenter__ await self.acquire() aiorwlock/__init__.py:234: in acquire await self._lock.acquire_write() aiorwlock/__init__.py:116: in acquire_write await self._yield_after_acquire(self._WL) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = , lock_type = 2 async def _yield_after_acquire(self, lock_type: int) -> None: if self._do_yield: try: > await asyncio.sleep(0.0, loop=self._loop) E TypeError: sleep() got an unexpected keyword argument 'loop' aiorwlock/__init__.py:58: TypeError _________________ test_await_read_lock[debug:true-slow-uvloop] _________________ loop = , fast_track = False @pytest.mark.asyncio async def test_await_read_lock(loop, fast_track): rwlock = RWLock(fast=fast_track) reader = rwlock.reader_lock assert not reader.locked > async with reader: ../../../tests/test_rwlock.py:534: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ aiorwlock/__init__.py:190: in __aenter__ await self.acquire() aiorwlock/__init__.py:215: in acquire await self._lock.acquire_read() aiorwlock/__init__.py:81: in acquire_read await self._yield_after_acquire(self._RL) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = , lock_type = 1 async def _yield_after_acquire(self, lock_type: int) -> None: if self._do_yield: try: > await asyncio.sleep(0.0, loop=self._loop) E TypeError: sleep() got an unexpected keyword argument 'loop' aiorwlock/__init__.py:58: TypeError ________________ test_await_write_lock[debug:true-slow-uvloop] _________________ loop = , fast_track = False @pytest.mark.asyncio async def test_await_write_lock(loop, fast_track): rwlock = RWLock(fast=fast_track) writer = rwlock.writer_lock assert not writer.locked > async with writer: ../../../tests/test_rwlock.py:543: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ aiorwlock/__init__.py:190: in __aenter__ await self.acquire() aiorwlock/__init__.py:234: in acquire await self._lock.acquire_write() aiorwlock/__init__.py:116: in acquire_write await self._yield_after_acquire(self._WL) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = , lock_type = 2 async def _yield_after_acquire(self, lock_type: int) -> None: if self._do_yield: try: > await asyncio.sleep(0.0, loop=self._loop) E TypeError: sleep() got an unexpected keyword argument 'loop' aiorwlock/__init__.py:58: TypeError __________________ test_many_readers[debug:true-slow-pyloop] ___________________ loop = <_UnixSelectorEventLoop running=False closed=False debug=True> fast_track = False @pytest.mark.asyncio async def test_many_readers(loop, fast_track): rwlock = RWLock(fast=fast_track) N = 5 locked = [] nlocked = [] async def f(): await rwlock.reader_lock.acquire() try: locked.append(1) await _wait() nlocked.append(len(locked)) await _wait() locked.pop(-1) finally: rwlock.reader_lock.release() > await Bunch(f, N).wait_for_finished() ../../../tests/test_rwlock.py:138: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../../../tests/test_rwlock.py:41: in wait_for_finished await asyncio.gather(*self._futures) ../../../tests/test_rwlock.py:30: in task await f() ../../../tests/test_rwlock.py:128: in f await rwlock.reader_lock.acquire() aiorwlock/__init__.py:215: in acquire await self._lock.acquire_read() aiorwlock/__init__.py:81: in acquire_read await self._yield_after_acquire(self._RL) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = , lock_type = 1 async def _yield_after_acquire(self, lock_type: int) -> None: if self._do_yield: try: > await asyncio.sleep(0.0, loop=self._loop) E TypeError: sleep() got an unexpected keyword argument 'loop' aiorwlock/__init__.py:58: TypeError During handling of the above exception, another exception occurred: cls = func = . at 0xf64b4ed8>, when = 'call' reraise = (, ) @classmethod def from_call( cls, func: Callable[[], TResult], when: Literal["collect", "setup", "call", "teardown"], reraise: Optional[ Union[Type[BaseException], Tuple[Type[BaseException], ...]] ] = None, ) -> "CallInfo[TResult]": """Call func, wrapping the result in a CallInfo. :param func: The function to call. Called without arguments. :param when: The phase in which the function is called. :param reraise: Exception or exceptions that shall propagate if raised by the function, instead of being wrapped in the CallInfo. """ excinfo = None start = timing.time() precise_start = timing.perf_counter() try: > result: Optional[TResult] = func() /usr/lib/python3/dist-packages/_pytest/runner.py:341: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/dist-packages/_pytest/runner.py:241: in lambda: runtest_hook(item=item, **kwds), when=when, reraise=reraise /usr/lib/python3/dist-packages/pluggy/_hooks.py:513: in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) /usr/lib/python3/dist-packages/pluggy/_manager.py:120: in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) /usr/lib/python3/dist-packages/_pytest/threadexception.py:87: in pytest_runtest_call yield from thread_exception_runtest_hook() /usr/lib/python3/dist-packages/_pytest/threadexception.py:63: in thread_exception_runtest_hook yield /usr/lib/python3/dist-packages/_pytest/unraisableexception.py:90: in pytest_runtest_call yield from unraisable_exception_runtest_hook() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ def unraisable_exception_runtest_hook() -> Generator[None, None, None]: with catch_unraisable_exception() as cm: try: yield finally: if cm.unraisable: if cm.unraisable.err_msg is not None: err_msg = cm.unraisable.err_msg else: err_msg = "Exception ignored in" msg = f"{err_msg}: {cm.unraisable.object!r}\n\n" msg += "".join( traceback.format_exception( cm.unraisable.exc_type, cm.unraisable.exc_value, cm.unraisable.exc_traceback, ) ) > warnings.warn(pytest.PytestUnraisableExceptionWarning(msg)) E pytest.PytestUnraisableExceptionWarning: Exception ignored in: E E Traceback (most recent call last): E File "/usr/lib/python3.12/traceback.py", line 265, in __init__ E def __init__(self, filename, lineno, name, *, lookup_line=True, E E ResourceWarning: unclosed /usr/lib/python3/dist-packages/_pytest/unraisableexception.py:80: PytestUnraisableExceptionWarning ________________ test_reader_recursion[debug:true-slow-pyloop] _________________ loop = <_UnixSelectorEventLoop running=False closed=False debug=True> fast_track = False @pytest.mark.asyncio async def test_reader_recursion(loop, fast_track): rwlock = RWLock(fast=fast_track) N = 5 locked = [] nlocked = [] async def f(): await rwlock.reader_lock.acquire() try: await rwlock.reader_lock.acquire() try: locked.append(1) await _wait() nlocked.append(len(locked)) await _wait() locked.pop(-1) finally: rwlock.reader_lock.release() finally: rwlock.reader_lock.release() > await Bunch(f, N).wait_for_finished() ../../../tests/test_rwlock.py:189: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../../../tests/test_rwlock.py:41: in wait_for_finished await asyncio.gather(*self._futures) ../../../tests/test_rwlock.py:30: in task await f() ../../../tests/test_rwlock.py:175: in f await rwlock.reader_lock.acquire() aiorwlock/__init__.py:215: in acquire await self._lock.acquire_read() aiorwlock/__init__.py:81: in acquire_read await self._yield_after_acquire(self._RL) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = , lock_type = 1 async def _yield_after_acquire(self, lock_type: int) -> None: if self._do_yield: try: > await asyncio.sleep(0.0, loop=self._loop) E TypeError: sleep() got an unexpected keyword argument 'loop' aiorwlock/__init__.py:58: TypeError During handling of the above exception, another exception occurred: cls = func = . at 0xf653dbb8>, when = 'call' reraise = (, ) @classmethod def from_call( cls, func: Callable[[], TResult], when: Literal["collect", "setup", "call", "teardown"], reraise: Optional[ Union[Type[BaseException], Tuple[Type[BaseException], ...]] ] = None, ) -> "CallInfo[TResult]": """Call func, wrapping the result in a CallInfo. :param func: The function to call. Called without arguments. :param when: The phase in which the function is called. :param reraise: Exception or exceptions that shall propagate if raised by the function, instead of being wrapped in the CallInfo. """ excinfo = None start = timing.time() precise_start = timing.perf_counter() try: > result: Optional[TResult] = func() /usr/lib/python3/dist-packages/_pytest/runner.py:341: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/dist-packages/_pytest/runner.py:241: in lambda: runtest_hook(item=item, **kwds), when=when, reraise=reraise /usr/lib/python3/dist-packages/pluggy/_hooks.py:513: in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) /usr/lib/python3/dist-packages/pluggy/_manager.py:120: in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) /usr/lib/python3/dist-packages/_pytest/threadexception.py:87: in pytest_runtest_call yield from thread_exception_runtest_hook() /usr/lib/python3/dist-packages/_pytest/threadexception.py:63: in thread_exception_runtest_hook yield /usr/lib/python3/dist-packages/_pytest/unraisableexception.py:90: in pytest_runtest_call yield from unraisable_exception_runtest_hook() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ def unraisable_exception_runtest_hook() -> Generator[None, None, None]: with catch_unraisable_exception() as cm: try: yield finally: if cm.unraisable: if cm.unraisable.err_msg is not None: err_msg = cm.unraisable.err_msg else: err_msg = "Exception ignored in" msg = f"{err_msg}: {cm.unraisable.object!r}\n\n" msg += "".join( traceback.format_exception( cm.unraisable.exc_type, cm.unraisable.exc_value, cm.unraisable.exc_traceback, ) ) > warnings.warn(pytest.PytestUnraisableExceptionWarning(msg)) E pytest.PytestUnraisableExceptionWarning: Exception ignored in: E E Traceback (most recent call last): E File "/usr/lib/python3.12/linecache.py", line 72, in checkcache E stat = os.stat(fullname) E ^^^^^^^^^^^^^^^^^ E ResourceWarning: unclosed /usr/lib/python3/dist-packages/_pytest/unraisableexception.py:80: PytestUnraisableExceptionWarning ________________ test_writer_recursion[debug:true-slow-pyloop] _________________ loop = <_UnixSelectorEventLoop running=False closed=False debug=True> fast_track = False @pytest.mark.asyncio async def test_writer_recursion(loop, fast_track): rwlock = RWLock(fast=fast_track) N = 5 locked = [] nlocked = [] async def f(): await rwlock.writer_lock.acquire() try: await rwlock.writer_lock.acquire() try: locked.append(1) await _wait() nlocked.append(len(locked)) await _wait() locked.pop(-1) finally: rwlock.writer_lock.release() finally: rwlock.writer_lock.release() > await Bunch(f, N).wait_for_finished() ../../../tests/test_rwlock.py:215: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../../../tests/test_rwlock.py:41: in wait_for_finished await asyncio.gather(*self._futures) ../../../tests/test_rwlock.py:30: in task await f() ../../../tests/test_rwlock.py:201: in f await rwlock.writer_lock.acquire() aiorwlock/__init__.py:234: in acquire await self._lock.acquire_write() aiorwlock/__init__.py:116: in acquire_write await self._yield_after_acquire(self._WL) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = , lock_type = 2 async def _yield_after_acquire(self, lock_type: int) -> None: if self._do_yield: try: > await asyncio.sleep(0.0, loop=self._loop) E TypeError: sleep() got an unexpected keyword argument 'loop' aiorwlock/__init__.py:58: TypeError During handling of the above exception, another exception occurred: cls = func = . at 0xf654ce38>, when = 'call' reraise = (, ) @classmethod def from_call( cls, func: Callable[[], TResult], when: Literal["collect", "setup", "call", "teardown"], reraise: Optional[ Union[Type[BaseException], Tuple[Type[BaseException], ...]] ] = None, ) -> "CallInfo[TResult]": """Call func, wrapping the result in a CallInfo. :param func: The function to call. Called without arguments. :param when: The phase in which the function is called. :param reraise: Exception or exceptions that shall propagate if raised by the function, instead of being wrapped in the CallInfo. """ excinfo = None start = timing.time() precise_start = timing.perf_counter() try: > result: Optional[TResult] = func() /usr/lib/python3/dist-packages/_pytest/runner.py:341: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/dist-packages/_pytest/runner.py:241: in lambda: runtest_hook(item=item, **kwds), when=when, reraise=reraise /usr/lib/python3/dist-packages/pluggy/_hooks.py:513: in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) /usr/lib/python3/dist-packages/pluggy/_manager.py:120: in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) /usr/lib/python3/dist-packages/_pytest/threadexception.py:87: in pytest_runtest_call yield from thread_exception_runtest_hook() /usr/lib/python3/dist-packages/_pytest/threadexception.py:63: in thread_exception_runtest_hook yield /usr/lib/python3/dist-packages/_pytest/unraisableexception.py:90: in pytest_runtest_call yield from unraisable_exception_runtest_hook() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ def unraisable_exception_runtest_hook() -> Generator[None, None, None]: with catch_unraisable_exception() as cm: try: yield finally: if cm.unraisable: if cm.unraisable.err_msg is not None: err_msg = cm.unraisable.err_msg else: err_msg = "Exception ignored in" msg = f"{err_msg}: {cm.unraisable.object!r}\n\n" msg += "".join( traceback.format_exception( cm.unraisable.exc_type, cm.unraisable.exc_value, cm.unraisable.exc_traceback, ) ) > warnings.warn(pytest.PytestUnraisableExceptionWarning(msg)) E pytest.PytestUnraisableExceptionWarning: Exception ignored in: E E Traceback (most recent call last): E File "/usr/lib/python3.12/traceback.py", line 265, in __init__ E def __init__(self, filename, lineno, name, *, lookup_line=True, E E ResourceWarning: unclosed /usr/lib/python3/dist-packages/_pytest/unraisableexception.py:80: PytestUnraisableExceptionWarning __________ test_writer_then_reader_recursion[debug:true-slow-pyloop] ___________ loop = <_UnixSelectorEventLoop running=False closed=False debug=True> fast_track = False @pytest.mark.asyncio async def test_writer_then_reader_recursion(loop, fast_track): rwlock = RWLock(fast=fast_track) N = 5 locked = [] nlocked = [] async def f(): await rwlock.writer_lock.acquire() try: await rwlock.reader_lock.acquire() try: locked.append(1) await _wait() nlocked.append(len(locked)) await _wait() locked.pop(-1) finally: rwlock.reader_lock.release() finally: rwlock.writer_lock.release() > await Bunch(f, N).wait_for_finished() ../../../tests/test_rwlock.py:241: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../../../tests/test_rwlock.py:41: in wait_for_finished await asyncio.gather(*self._futures) ../../../tests/test_rwlock.py:30: in task await f() ../../../tests/test_rwlock.py:227: in f await rwlock.writer_lock.acquire() aiorwlock/__init__.py:234: in acquire await self._lock.acquire_write() aiorwlock/__init__.py:116: in acquire_write await self._yield_after_acquire(self._WL) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = , lock_type = 2 async def _yield_after_acquire(self, lock_type: int) -> None: if self._do_yield: try: > await asyncio.sleep(0.0, loop=self._loop) E TypeError: sleep() got an unexpected keyword argument 'loop' aiorwlock/__init__.py:58: TypeError During handling of the above exception, another exception occurred: cls = func = . at 0xf653dcf8>, when = 'call' reraise = (, ) @classmethod def from_call( cls, func: Callable[[], TResult], when: Literal["collect", "setup", "call", "teardown"], reraise: Optional[ Union[Type[BaseException], Tuple[Type[BaseException], ...]] ] = None, ) -> "CallInfo[TResult]": """Call func, wrapping the result in a CallInfo. :param func: The function to call. Called without arguments. :param when: The phase in which the function is called. :param reraise: Exception or exceptions that shall propagate if raised by the function, instead of being wrapped in the CallInfo. """ excinfo = None start = timing.time() precise_start = timing.perf_counter() try: > result: Optional[TResult] = func() /usr/lib/python3/dist-packages/_pytest/runner.py:341: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/dist-packages/_pytest/runner.py:241: in lambda: runtest_hook(item=item, **kwds), when=when, reraise=reraise /usr/lib/python3/dist-packages/pluggy/_hooks.py:513: in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) /usr/lib/python3/dist-packages/pluggy/_manager.py:120: in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) /usr/lib/python3/dist-packages/_pytest/threadexception.py:87: in pytest_runtest_call yield from thread_exception_runtest_hook() /usr/lib/python3/dist-packages/_pytest/threadexception.py:63: in thread_exception_runtest_hook yield /usr/lib/python3/dist-packages/_pytest/unraisableexception.py:90: in pytest_runtest_call yield from unraisable_exception_runtest_hook() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ def unraisable_exception_runtest_hook() -> Generator[None, None, None]: with catch_unraisable_exception() as cm: try: yield finally: if cm.unraisable: if cm.unraisable.err_msg is not None: err_msg = cm.unraisable.err_msg else: err_msg = "Exception ignored in" msg = f"{err_msg}: {cm.unraisable.object!r}\n\n" msg += "".join( traceback.format_exception( cm.unraisable.exc_type, cm.unraisable.exc_value, cm.unraisable.exc_traceback, ) ) > warnings.warn(pytest.PytestUnraisableExceptionWarning(msg)) E pytest.PytestUnraisableExceptionWarning: Exception ignored in: E E Traceback (most recent call last): E File "/usr/lib/python3.12/traceback.py", line 265, in __init__ E def __init__(self, filename, lineno, name, *, lookup_line=True, E E ResourceWarning: unclosed /usr/lib/python3/dist-packages/_pytest/unraisableexception.py:80: PytestUnraisableExceptionWarning ---------------------------- Captured log teardown ----------------------------- ERROR asyncio:base_events.py:1821 Task was destroyed but it is pending! source_traceback: Object created at (most recent call last): File "", line 198, in _run_module_as_main File "", line 88, in _run_code File "/usr/lib/python3/dist-packages/pytest/__main__.py", line 7, in raise SystemExit(pytest.console_main()) File "/usr/lib/python3/dist-packages/_pytest/config/__init__.py", line 206, in console_main code = main() File "/usr/lib/python3/dist-packages/_pytest/config/__init__.py", line 178, in main ret: Union[ExitCode, int] = config.hook.pytest_cmdline_main( File "/usr/lib/python3/dist-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3/dist-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3/dist-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3/dist-packages/_pytest/main.py", line 332, in pytest_cmdline_main return wrap_session(config, _main) File "/usr/lib/python3/dist-packages/_pytest/main.py", line 285, in wrap_session session.exitstatus = doit(config, session) or 0 File "/usr/lib/python3/dist-packages/_pytest/main.py", line 339, in _main config.hook.pytest_runtestloop(session=session) File "/usr/lib/python3/dist-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3/dist-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3/dist-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3/dist-packages/_pytest/main.py", line 364, in pytest_runtestloop item.config.hook.pytest_runtest_protocol(item=item, nextitem=nextitem) File "/usr/lib/python3/dist-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3/dist-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3/dist-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3/dist-packages/_pytest/runner.py", line 116, in pytest_runtest_protocol runtestprotocol(item, nextitem=nextitem) File "/usr/lib/python3/dist-packages/_pytest/runner.py", line 135, in runtestprotocol reports.append(call_and_report(item, "call", log)) File "/usr/lib/python3/dist-packages/_pytest/runner.py", line 240, in call_and_report call = CallInfo.from_call( File "/usr/lib/python3/dist-packages/_pytest/runner.py", line 341, in from_call result: Optional[TResult] = func() File "/usr/lib/python3/dist-packages/_pytest/runner.py", line 241, in lambda: runtest_hook(item=item, **kwds), when=when, reraise=reraise File "/usr/lib/python3/dist-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3/dist-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3/dist-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3/dist-packages/_pytest/runner.py", line 173, in pytest_runtest_call item.runtest() File "/usr/lib/python3/dist-packages/_pytest/python.py", line 1632, in runtest self.ihook.pytest_pyfunc_call(pyfuncitem=self) File "/usr/lib/python3/dist-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3/dist-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3/dist-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3/dist-packages/_pytest/python.py", line 162, in pytest_pyfunc_call result = testfunction(**testargs) File "/usr/lib/python3/dist-packages/pytest_asyncio/plugin.py", line 478, in inner _loop.run_until_complete(task) File "/usr/lib/python3.12/asyncio/base_events.py", line 674, in run_until_complete self.run_forever() File "/usr/lib/python3.12/asyncio/base_events.py", line 641, in run_forever self._run_once() File "/usr/lib/python3.12/asyncio/base_events.py", line 1979, in _run_once handle._run() File "/usr/lib/python3.12/asyncio/events.py", line 88, in _run self._context.run(self._callback, *self._args) File "/build/reproducible-path/aiorwlock-1.0.0/tests/test_rwlock.py", line 215, in test_writer_recursion await Bunch(f, N).wait_for_finished() File "/build/reproducible-path/aiorwlock-1.0.0/tests/test_rwlock.py", line 37, in __init__ t = asyncio.Task(task()) task: .task() running at /build/reproducible-path/aiorwlock-1.0.0/tests/test_rwlock.py:30> wait_for= cb=[gather.._done_callback() at /usr/lib/python3.12/asyncio/tasks.py:767] created at /build/reproducible-path/aiorwlock-1.0.0/tests/test_rwlock.py:37> ERROR asyncio:base_events.py:1821 Task was destroyed but it is pending! source_traceback: Object created at (most recent call last): File "", line 198, in _run_module_as_main File "", line 88, in _run_code File "/usr/lib/python3/dist-packages/pytest/__main__.py", line 7, in raise SystemExit(pytest.console_main()) File "/usr/lib/python3/dist-packages/_pytest/config/__init__.py", line 206, in console_main code = main() File "/usr/lib/python3/dist-packages/_pytest/config/__init__.py", line 178, in main ret: Union[ExitCode, int] = config.hook.pytest_cmdline_main( File "/usr/lib/python3/dist-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3/dist-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3/dist-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3/dist-packages/_pytest/main.py", line 332, in pytest_cmdline_main return wrap_session(config, _main) File "/usr/lib/python3/dist-packages/_pytest/main.py", line 285, in wrap_session session.exitstatus = doit(config, session) or 0 File "/usr/lib/python3/dist-packages/_pytest/main.py", line 339, in _main config.hook.pytest_runtestloop(session=session) File "/usr/lib/python3/dist-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3/dist-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3/dist-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3/dist-packages/_pytest/main.py", line 364, in pytest_runtestloop item.config.hook.pytest_runtest_protocol(item=item, nextitem=nextitem) File "/usr/lib/python3/dist-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3/dist-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3/dist-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3/dist-packages/_pytest/runner.py", line 116, in pytest_runtest_protocol runtestprotocol(item, nextitem=nextitem) File "/usr/lib/python3/dist-packages/_pytest/runner.py", line 135, in runtestprotocol reports.append(call_and_report(item, "call", log)) File "/usr/lib/python3/dist-packages/_pytest/runner.py", line 240, in call_and_report call = CallInfo.from_call( File "/usr/lib/python3/dist-packages/_pytest/runner.py", line 341, in from_call result: Optional[TResult] = func() File "/usr/lib/python3/dist-packages/_pytest/runner.py", line 241, in lambda: runtest_hook(item=item, **kwds), when=when, reraise=reraise File "/usr/lib/python3/dist-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3/dist-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3/dist-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3/dist-packages/_pytest/runner.py", line 173, in pytest_runtest_call item.runtest() File "/usr/lib/python3/dist-packages/_pytest/python.py", line 1632, in runtest self.ihook.pytest_pyfunc_call(pyfuncitem=self) File "/usr/lib/python3/dist-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3/dist-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3/dist-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3/dist-packages/_pytest/python.py", line 162, in pytest_pyfunc_call result = testfunction(**testargs) File "/usr/lib/python3/dist-packages/pytest_asyncio/plugin.py", line 478, in inner _loop.run_until_complete(task) File "/usr/lib/python3.12/asyncio/base_events.py", line 674, in run_until_complete self.run_forever() File "/usr/lib/python3.12/asyncio/base_events.py", line 641, in run_forever self._run_once() File "/usr/lib/python3.12/asyncio/base_events.py", line 1979, in _run_once handle._run() File "/usr/lib/python3.12/asyncio/events.py", line 88, in _run self._context.run(self._callback, *self._args) File "/build/reproducible-path/aiorwlock-1.0.0/tests/test_rwlock.py", line 215, in test_writer_recursion await Bunch(f, N).wait_for_finished() File "/build/reproducible-path/aiorwlock-1.0.0/tests/test_rwlock.py", line 37, in __init__ t = asyncio.Task(task()) task: .task() running at /build/reproducible-path/aiorwlock-1.0.0/tests/test_rwlock.py:30> wait_for= cb=[gather.._done_callback() at /usr/lib/python3.12/asyncio/tasks.py:767] created at /build/reproducible-path/aiorwlock-1.0.0/tests/test_rwlock.py:37> ERROR asyncio:base_events.py:1821 Task was destroyed but it is pending! source_traceback: Object created at (most recent call last): File "", line 198, in _run_module_as_main File "", line 88, in _run_code File "/usr/lib/python3/dist-packages/pytest/__main__.py", line 7, in raise SystemExit(pytest.console_main()) File "/usr/lib/python3/dist-packages/_pytest/config/__init__.py", line 206, in console_main code = main() File "/usr/lib/python3/dist-packages/_pytest/config/__init__.py", line 178, in main ret: Union[ExitCode, int] = config.hook.pytest_cmdline_main( File "/usr/lib/python3/dist-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3/dist-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3/dist-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3/dist-packages/_pytest/main.py", line 332, in pytest_cmdline_main return wrap_session(config, _main) File "/usr/lib/python3/dist-packages/_pytest/main.py", line 285, in wrap_session session.exitstatus = doit(config, session) or 0 File "/usr/lib/python3/dist-packages/_pytest/main.py", line 339, in _main config.hook.pytest_runtestloop(session=session) File "/usr/lib/python3/dist-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3/dist-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3/dist-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3/dist-packages/_pytest/main.py", line 364, in pytest_runtestloop item.config.hook.pytest_runtest_protocol(item=item, nextitem=nextitem) File "/usr/lib/python3/dist-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3/dist-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3/dist-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3/dist-packages/_pytest/runner.py", line 116, in pytest_runtest_protocol runtestprotocol(item, nextitem=nextitem) File "/usr/lib/python3/dist-packages/_pytest/runner.py", line 135, in runtestprotocol reports.append(call_and_report(item, "call", log)) File "/usr/lib/python3/dist-packages/_pytest/runner.py", line 240, in call_and_report call = CallInfo.from_call( File "/usr/lib/python3/dist-packages/_pytest/runner.py", line 341, in from_call result: Optional[TResult] = func() File "/usr/lib/python3/dist-packages/_pytest/runner.py", line 241, in lambda: runtest_hook(item=item, **kwds), when=when, reraise=reraise File "/usr/lib/python3/dist-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3/dist-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3/dist-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3/dist-packages/_pytest/runner.py", line 173, in pytest_runtest_call item.runtest() File "/usr/lib/python3/dist-packages/_pytest/python.py", line 1632, in runtest self.ihook.pytest_pyfunc_call(pyfuncitem=self) File "/usr/lib/python3/dist-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3/dist-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3/dist-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3/dist-packages/_pytest/python.py", line 162, in pytest_pyfunc_call result = testfunction(**testargs) File "/usr/lib/python3/dist-packages/pytest_asyncio/plugin.py", line 478, in inner _loop.run_until_complete(task) File "/usr/lib/python3.12/asyncio/base_events.py", line 674, in run_until_complete self.run_forever() File "/usr/lib/python3.12/asyncio/base_events.py", line 641, in run_forever self._run_once() File "/usr/lib/python3.12/asyncio/base_events.py", line 1979, in _run_once handle._run() File "/usr/lib/python3.12/asyncio/events.py", line 88, in _run self._context.run(self._callback, *self._args) File "/build/reproducible-path/aiorwlock-1.0.0/tests/test_rwlock.py", line 215, in test_writer_recursion await Bunch(f, N).wait_for_finished() File "/build/reproducible-path/aiorwlock-1.0.0/tests/test_rwlock.py", line 37, in __init__ t = asyncio.Task(task()) task: .task() running at /build/reproducible-path/aiorwlock-1.0.0/tests/test_rwlock.py:30> wait_for= cb=[gather.._done_callback() at /usr/lib/python3.12/asyncio/tasks.py:767] created at /build/reproducible-path/aiorwlock-1.0.0/tests/test_rwlock.py:37> ERROR asyncio:base_events.py:1821 Task was destroyed but it is pending! source_traceback: Object created at (most recent call last): File "", line 198, in _run_module_as_main File "", line 88, in _run_code File "/usr/lib/python3/dist-packages/pytest/__main__.py", line 7, in raise SystemExit(pytest.console_main()) File "/usr/lib/python3/dist-packages/_pytest/config/__init__.py", line 206, in console_main code = main() File "/usr/lib/python3/dist-packages/_pytest/config/__init__.py", line 178, in main ret: Union[ExitCode, int] = config.hook.pytest_cmdline_main( File "/usr/lib/python3/dist-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3/dist-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3/dist-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3/dist-packages/_pytest/main.py", line 332, in pytest_cmdline_main return wrap_session(config, _main) File "/usr/lib/python3/dist-packages/_pytest/main.py", line 285, in wrap_session session.exitstatus = doit(config, session) or 0 File "/usr/lib/python3/dist-packages/_pytest/main.py", line 339, in _main config.hook.pytest_runtestloop(session=session) File "/usr/lib/python3/dist-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3/dist-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3/dist-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3/dist-packages/_pytest/main.py", line 364, in pytest_runtestloop item.config.hook.pytest_runtest_protocol(item=item, nextitem=nextitem) File "/usr/lib/python3/dist-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3/dist-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3/dist-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3/dist-packages/_pytest/runner.py", line 116, in pytest_runtest_protocol runtestprotocol(item, nextitem=nextitem) File "/usr/lib/python3/dist-packages/_pytest/runner.py", line 135, in runtestprotocol reports.append(call_and_report(item, "call", log)) File "/usr/lib/python3/dist-packages/_pytest/runner.py", line 240, in call_and_report call = CallInfo.from_call( File "/usr/lib/python3/dist-packages/_pytest/runner.py", line 341, in from_call result: Optional[TResult] = func() File "/usr/lib/python3/dist-packages/_pytest/runner.py", line 241, in lambda: runtest_hook(item=item, **kwds), when=when, reraise=reraise File "/usr/lib/python3/dist-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3/dist-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3/dist-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3/dist-packages/_pytest/runner.py", line 173, in pytest_runtest_call item.runtest() File "/usr/lib/python3/dist-packages/_pytest/python.py", line 1632, in runtest self.ihook.pytest_pyfunc_call(pyfuncitem=self) File "/usr/lib/python3/dist-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3/dist-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3/dist-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3/dist-packages/_pytest/python.py", line 162, in pytest_pyfunc_call result = testfunction(**testargs) File "/usr/lib/python3/dist-packages/pytest_asyncio/plugin.py", line 478, in inner _loop.run_until_complete(task) File "/usr/lib/python3.12/asyncio/base_events.py", line 674, in run_until_complete self.run_forever() File "/usr/lib/python3.12/asyncio/base_events.py", line 641, in run_forever self._run_once() File "/usr/lib/python3.12/asyncio/base_events.py", line 1979, in _run_once handle._run() File "/usr/lib/python3.12/asyncio/events.py", line 88, in _run self._context.run(self._callback, *self._args) File "/build/reproducible-path/aiorwlock-1.0.0/tests/test_rwlock.py", line 215, in test_writer_recursion await Bunch(f, N).wait_for_finished() File "/build/reproducible-path/aiorwlock-1.0.0/tests/test_rwlock.py", line 37, in __init__ t = asyncio.Task(task()) task: .task() running at /build/reproducible-path/aiorwlock-1.0.0/tests/test_rwlock.py:30> wait_for= cb=[gather.._done_callback() at /usr/lib/python3.12/asyncio/tasks.py:767] created at /build/reproducible-path/aiorwlock-1.0.0/tests/test_rwlock.py:37> _________________ test_readers_writers[debug:true-slow-pyloop] _________________ loop = <_UnixSelectorEventLoop running=False closed=False debug=True> fast_track = False @pytest.mark.asyncio async def test_readers_writers(loop, fast_track): rwlock = RWLock(fast=fast_track) N = 5 rlocked = [] wlocked = [] nlocked = [] async def r(): await rwlock.reader_lock.acquire() try: rlocked.append(1) await _wait() nlocked.append((len(rlocked), len(wlocked))) await _wait() rlocked.pop(-1) finally: rwlock.reader_lock.release() async def w(): await rwlock.writer_lock.acquire() try: wlocked.append(1) await _wait() nlocked.append((len(rlocked), len(wlocked))) await _wait() wlocked.pop(-1) finally: rwlock.writer_lock.release() b1 = Bunch(r, N) b2 = Bunch(w, N) await asyncio.sleep(0.0001) > await b1.wait_for_finished() ../../../tests/test_rwlock.py:299: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../../../tests/test_rwlock.py:41: in wait_for_finished await asyncio.gather(*self._futures) ../../../tests/test_rwlock.py:30: in task await f() ../../../tests/test_rwlock.py:273: in r await rwlock.reader_lock.acquire() aiorwlock/__init__.py:215: in acquire await self._lock.acquire_read() aiorwlock/__init__.py:81: in acquire_read await self._yield_after_acquire(self._RL) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = , lock_type = 1 async def _yield_after_acquire(self, lock_type: int) -> None: if self._do_yield: try: > await asyncio.sleep(0.0, loop=self._loop) E TypeError: sleep() got an unexpected keyword argument 'loop' aiorwlock/__init__.py:58: TypeError During handling of the above exception, another exception occurred: cls = func = . at 0xf654ce38>, when = 'call' reraise = (, ) @classmethod def from_call( cls, func: Callable[[], TResult], when: Literal["collect", "setup", "call", "teardown"], reraise: Optional[ Union[Type[BaseException], Tuple[Type[BaseException], ...]] ] = None, ) -> "CallInfo[TResult]": """Call func, wrapping the result in a CallInfo. :param func: The function to call. Called without arguments. :param when: The phase in which the function is called. :param reraise: Exception or exceptions that shall propagate if raised by the function, instead of being wrapped in the CallInfo. """ excinfo = None start = timing.time() precise_start = timing.perf_counter() try: > result: Optional[TResult] = func() /usr/lib/python3/dist-packages/_pytest/runner.py:341: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/dist-packages/_pytest/runner.py:241: in lambda: runtest_hook(item=item, **kwds), when=when, reraise=reraise /usr/lib/python3/dist-packages/pluggy/_hooks.py:513: in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) /usr/lib/python3/dist-packages/pluggy/_manager.py:120: in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) /usr/lib/python3/dist-packages/_pytest/threadexception.py:87: in pytest_runtest_call yield from thread_exception_runtest_hook() /usr/lib/python3/dist-packages/_pytest/threadexception.py:63: in thread_exception_runtest_hook yield /usr/lib/python3/dist-packages/_pytest/unraisableexception.py:90: in pytest_runtest_call yield from unraisable_exception_runtest_hook() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ def unraisable_exception_runtest_hook() -> Generator[None, None, None]: with catch_unraisable_exception() as cm: try: yield finally: if cm.unraisable: if cm.unraisable.err_msg is not None: err_msg = cm.unraisable.err_msg else: err_msg = "Exception ignored in" msg = f"{err_msg}: {cm.unraisable.object!r}\n\n" msg += "".join( traceback.format_exception( cm.unraisable.exc_type, cm.unraisable.exc_value, cm.unraisable.exc_traceback, ) ) > warnings.warn(pytest.PytestUnraisableExceptionWarning(msg)) E pytest.PytestUnraisableExceptionWarning: Exception ignored in: E E Traceback (most recent call last): E File "/usr/lib/python3.12/traceback.py", line 231, in extract_stack E f = sys._getframe().f_back E ^^^^^^^^^^^^^^^ E ResourceWarning: unclosed /usr/lib/python3/dist-packages/_pytest/unraisableexception.py:80: PytestUnraisableExceptionWarning ---------------------------- Captured log teardown ----------------------------- ERROR asyncio:base_events.py:1821 Task was destroyed but it is pending! source_traceback: Object created at (most recent call last): File "", line 198, in _run_module_as_main File "", line 88, in _run_code File "/usr/lib/python3/dist-packages/pytest/__main__.py", line 7, in raise SystemExit(pytest.console_main()) File "/usr/lib/python3/dist-packages/_pytest/config/__init__.py", line 206, in console_main code = main() File "/usr/lib/python3/dist-packages/_pytest/config/__init__.py", line 178, in main ret: Union[ExitCode, int] = config.hook.pytest_cmdline_main( File "/usr/lib/python3/dist-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3/dist-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3/dist-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3/dist-packages/_pytest/main.py", line 332, in pytest_cmdline_main return wrap_session(config, _main) File "/usr/lib/python3/dist-packages/_pytest/main.py", line 285, in wrap_session session.exitstatus = doit(config, session) or 0 File "/usr/lib/python3/dist-packages/_pytest/main.py", line 339, in _main config.hook.pytest_runtestloop(session=session) File "/usr/lib/python3/dist-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3/dist-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3/dist-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3/dist-packages/_pytest/main.py", line 364, in pytest_runtestloop item.config.hook.pytest_runtest_protocol(item=item, nextitem=nextitem) File "/usr/lib/python3/dist-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3/dist-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3/dist-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3/dist-packages/_pytest/runner.py", line 116, in pytest_runtest_protocol runtestprotocol(item, nextitem=nextitem) File "/usr/lib/python3/dist-packages/_pytest/runner.py", line 135, in runtestprotocol reports.append(call_and_report(item, "call", log)) File "/usr/lib/python3/dist-packages/_pytest/runner.py", line 240, in call_and_report call = CallInfo.from_call( File "/usr/lib/python3/dist-packages/_pytest/runner.py", line 341, in from_call result: Optional[TResult] = func() File "/usr/lib/python3/dist-packages/_pytest/runner.py", line 241, in lambda: runtest_hook(item=item, **kwds), when=when, reraise=reraise File "/usr/lib/python3/dist-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3/dist-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3/dist-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3/dist-packages/_pytest/runner.py", line 173, in pytest_runtest_call item.runtest() File "/usr/lib/python3/dist-packages/_pytest/python.py", line 1632, in runtest self.ihook.pytest_pyfunc_call(pyfuncitem=self) File "/usr/lib/python3/dist-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3/dist-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3/dist-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3/dist-packages/_pytest/python.py", line 162, in pytest_pyfunc_call result = testfunction(**testargs) File "/usr/lib/python3/dist-packages/pytest_asyncio/plugin.py", line 478, in inner _loop.run_until_complete(task) File "/usr/lib/python3.12/asyncio/base_events.py", line 674, in run_until_complete self.run_forever() File "/usr/lib/python3.12/asyncio/base_events.py", line 641, in run_forever self._run_once() File "/usr/lib/python3.12/asyncio/base_events.py", line 1979, in _run_once handle._run() File "/usr/lib/python3.12/asyncio/events.py", line 88, in _run self._context.run(self._callback, *self._args) File "/build/reproducible-path/aiorwlock-1.0.0/tests/test_rwlock.py", line 241, in test_writer_then_reader_recursion await Bunch(f, N).wait_for_finished() File "/build/reproducible-path/aiorwlock-1.0.0/tests/test_rwlock.py", line 37, in __init__ t = asyncio.Task(task()) task: .task() running at /build/reproducible-path/aiorwlock-1.0.0/tests/test_rwlock.py:30> wait_for= cb=[gather.._done_callback() at /usr/lib/python3.12/asyncio/tasks.py:767] created at /build/reproducible-path/aiorwlock-1.0.0/tests/test_rwlock.py:37> ERROR asyncio:base_events.py:1821 Task was destroyed but it is pending! source_traceback: Object created at (most recent call last): File "", line 198, in _run_module_as_main File "", line 88, in _run_code File "/usr/lib/python3/dist-packages/pytest/__main__.py", line 7, in raise SystemExit(pytest.console_main()) File "/usr/lib/python3/dist-packages/_pytest/config/__init__.py", line 206, in console_main code = main() File "/usr/lib/python3/dist-packages/_pytest/config/__init__.py", line 178, in main ret: Union[ExitCode, int] = config.hook.pytest_cmdline_main( File "/usr/lib/python3/dist-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3/dist-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3/dist-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3/dist-packages/_pytest/main.py", line 332, in pytest_cmdline_main return wrap_session(config, _main) File "/usr/lib/python3/dist-packages/_pytest/main.py", line 285, in wrap_session session.exitstatus = doit(config, session) or 0 File "/usr/lib/python3/dist-packages/_pytest/main.py", line 339, in _main config.hook.pytest_runtestloop(session=session) File "/usr/lib/python3/dist-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3/dist-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3/dist-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3/dist-packages/_pytest/main.py", line 364, in pytest_runtestloop item.config.hook.pytest_runtest_protocol(item=item, nextitem=nextitem) File "/usr/lib/python3/dist-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3/dist-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3/dist-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3/dist-packages/_pytest/runner.py", line 116, in pytest_runtest_protocol runtestprotocol(item, nextitem=nextitem) File "/usr/lib/python3/dist-packages/_pytest/runner.py", line 135, in runtestprotocol reports.append(call_and_report(item, "call", log)) File "/usr/lib/python3/dist-packages/_pytest/runner.py", line 240, in call_and_report call = CallInfo.from_call( File "/usr/lib/python3/dist-packages/_pytest/runner.py", line 341, in from_call result: Optional[TResult] = func() File "/usr/lib/python3/dist-packages/_pytest/runner.py", line 241, in lambda: runtest_hook(item=item, **kwds), when=when, reraise=reraise File "/usr/lib/python3/dist-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3/dist-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3/dist-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3/dist-packages/_pytest/runner.py", line 173, in pytest_runtest_call item.runtest() File "/usr/lib/python3/dist-packages/_pytest/python.py", line 1632, in runtest self.ihook.pytest_pyfunc_call(pyfuncitem=self) File "/usr/lib/python3/dist-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3/dist-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3/dist-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3/dist-packages/_pytest/python.py", line 162, in pytest_pyfunc_call result = testfunction(**testargs) File "/usr/lib/python3/dist-packages/pytest_asyncio/plugin.py", line 478, in inner _loop.run_until_complete(task) File "/usr/lib/python3.12/asyncio/base_events.py", line 674, in run_until_complete self.run_forever() File "/usr/lib/python3.12/asyncio/base_events.py", line 641, in run_forever self._run_once() File "/usr/lib/python3.12/asyncio/base_events.py", line 1979, in _run_once handle._run() File "/usr/lib/python3.12/asyncio/events.py", line 88, in _run self._context.run(self._callback, *self._args) File "/build/reproducible-path/aiorwlock-1.0.0/tests/test_rwlock.py", line 241, in test_writer_then_reader_recursion await Bunch(f, N).wait_for_finished() File "/build/reproducible-path/aiorwlock-1.0.0/tests/test_rwlock.py", line 37, in __init__ t = asyncio.Task(task()) task: .task() running at /build/reproducible-path/aiorwlock-1.0.0/tests/test_rwlock.py:30> wait_for= cb=[gather.._done_callback() at /usr/lib/python3.12/asyncio/tasks.py:767] created at /build/reproducible-path/aiorwlock-1.0.0/tests/test_rwlock.py:37> ERROR asyncio:base_events.py:1821 Task was destroyed but it is pending! source_traceback: Object created at (most recent call last): File "", line 198, in _run_module_as_main File "", line 88, in _run_code File "/usr/lib/python3/dist-packages/pytest/__main__.py", line 7, in raise SystemExit(pytest.console_main()) File "/usr/lib/python3/dist-packages/_pytest/config/__init__.py", line 206, in console_main code = main() File "/usr/lib/python3/dist-packages/_pytest/config/__init__.py", line 178, in main ret: Union[ExitCode, int] = config.hook.pytest_cmdline_main( File "/usr/lib/python3/dist-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3/dist-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3/dist-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3/dist-packages/_pytest/main.py", line 332, in pytest_cmdline_main return wrap_session(config, _main) File "/usr/lib/python3/dist-packages/_pytest/main.py", line 285, in wrap_session session.exitstatus = doit(config, session) or 0 File "/usr/lib/python3/dist-packages/_pytest/main.py", line 339, in _main config.hook.pytest_runtestloop(session=session) File "/usr/lib/python3/dist-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3/dist-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3/dist-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3/dist-packages/_pytest/main.py", line 364, in pytest_runtestloop item.config.hook.pytest_runtest_protocol(item=item, nextitem=nextitem) File "/usr/lib/python3/dist-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3/dist-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3/dist-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3/dist-packages/_pytest/runner.py", line 116, in pytest_runtest_protocol runtestprotocol(item, nextitem=nextitem) File "/usr/lib/python3/dist-packages/_pytest/runner.py", line 135, in runtestprotocol reports.append(call_and_report(item, "call", log)) File "/usr/lib/python3/dist-packages/_pytest/runner.py", line 240, in call_and_report call = CallInfo.from_call( File "/usr/lib/python3/dist-packages/_pytest/runner.py", line 341, in from_call result: Optional[TResult] = func() File "/usr/lib/python3/dist-packages/_pytest/runner.py", line 241, in lambda: runtest_hook(item=item, **kwds), when=when, reraise=reraise File "/usr/lib/python3/dist-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3/dist-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3/dist-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3/dist-packages/_pytest/runner.py", line 173, in pytest_runtest_call item.runtest() File "/usr/lib/python3/dist-packages/_pytest/python.py", line 1632, in runtest self.ihook.pytest_pyfunc_call(pyfuncitem=self) File "/usr/lib/python3/dist-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3/dist-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3/dist-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3/dist-packages/_pytest/python.py", line 162, in pytest_pyfunc_call result = testfunction(**testargs) File "/usr/lib/python3/dist-packages/pytest_asyncio/plugin.py", line 478, in inner _loop.run_until_complete(task) File "/usr/lib/python3.12/asyncio/base_events.py", line 674, in run_until_complete self.run_forever() File "/usr/lib/python3.12/asyncio/base_events.py", line 641, in run_forever self._run_once() File "/usr/lib/python3.12/asyncio/base_events.py", line 1979, in _run_once handle._run() File "/usr/lib/python3.12/asyncio/events.py", line 88, in _run self._context.run(self._callback, *self._args) File "/build/reproducible-path/aiorwlock-1.0.0/tests/test_rwlock.py", line 241, in test_writer_then_reader_recursion await Bunch(f, N).wait_for_finished() File "/build/reproducible-path/aiorwlock-1.0.0/tests/test_rwlock.py", line 37, in __init__ t = asyncio.Task(task()) task: .task() running at /build/reproducible-path/aiorwlock-1.0.0/tests/test_rwlock.py:30> wait_for= cb=[gather.._done_callback() at /usr/lib/python3.12/asyncio/tasks.py:767] created at /build/reproducible-path/aiorwlock-1.0.0/tests/test_rwlock.py:37> ERROR asyncio:base_events.py:1821 Task was destroyed but it is pending! source_traceback: Object created at (most recent call last): File "", line 198, in _run_module_as_main File "", line 88, in _run_code File "/usr/lib/python3/dist-packages/pytest/__main__.py", line 7, in raise SystemExit(pytest.console_main()) File "/usr/lib/python3/dist-packages/_pytest/config/__init__.py", line 206, in console_main code = main() File "/usr/lib/python3/dist-packages/_pytest/config/__init__.py", line 178, in main ret: Union[ExitCode, int] = config.hook.pytest_cmdline_main( File "/usr/lib/python3/dist-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3/dist-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3/dist-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3/dist-packages/_pytest/main.py", line 332, in pytest_cmdline_main return wrap_session(config, _main) File "/usr/lib/python3/dist-packages/_pytest/main.py", line 285, in wrap_session session.exitstatus = doit(config, session) or 0 File "/usr/lib/python3/dist-packages/_pytest/main.py", line 339, in _main config.hook.pytest_runtestloop(session=session) File "/usr/lib/python3/dist-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3/dist-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3/dist-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3/dist-packages/_pytest/main.py", line 364, in pytest_runtestloop item.config.hook.pytest_runtest_protocol(item=item, nextitem=nextitem) File "/usr/lib/python3/dist-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3/dist-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3/dist-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3/dist-packages/_pytest/runner.py", line 116, in pytest_runtest_protocol runtestprotocol(item, nextitem=nextitem) File "/usr/lib/python3/dist-packages/_pytest/runner.py", line 135, in runtestprotocol reports.append(call_and_report(item, "call", log)) File "/usr/lib/python3/dist-packages/_pytest/runner.py", line 240, in call_and_report call = CallInfo.from_call( File "/usr/lib/python3/dist-packages/_pytest/runner.py", line 341, in from_call result: Optional[TResult] = func() File "/usr/lib/python3/dist-packages/_pytest/runner.py", line 241, in lambda: runtest_hook(item=item, **kwds), when=when, reraise=reraise File "/usr/lib/python3/dist-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3/dist-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3/dist-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3/dist-packages/_pytest/runner.py", line 173, in pytest_runtest_call item.runtest() File "/usr/lib/python3/dist-packages/_pytest/python.py", line 1632, in runtest self.ihook.pytest_pyfunc_call(pyfuncitem=self) File "/usr/lib/python3/dist-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3/dist-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3/dist-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3/dist-packages/_pytest/python.py", line 162, in pytest_pyfunc_call result = testfunction(**testargs) File "/usr/lib/python3/dist-packages/pytest_asyncio/plugin.py", line 478, in inner _loop.run_until_complete(task) File "/usr/lib/python3.12/asyncio/base_events.py", line 674, in run_until_complete self.run_forever() File "/usr/lib/python3.12/asyncio/base_events.py", line 641, in run_forever self._run_once() File "/usr/lib/python3.12/asyncio/base_events.py", line 1979, in _run_once handle._run() File "/usr/lib/python3.12/asyncio/events.py", line 88, in _run self._context.run(self._callback, *self._args) File "/build/reproducible-path/aiorwlock-1.0.0/tests/test_rwlock.py", line 241, in test_writer_then_reader_recursion await Bunch(f, N).wait_for_finished() File "/build/reproducible-path/aiorwlock-1.0.0/tests/test_rwlock.py", line 37, in __init__ t = asyncio.Task(task()) task: .task() running at /build/reproducible-path/aiorwlock-1.0.0/tests/test_rwlock.py:30> wait_for= cb=[gather.._done_callback() at /usr/lib/python3.12/asyncio/tasks.py:767] created at /build/reproducible-path/aiorwlock-1.0.0/tests/test_rwlock.py:37> ___________________ test_read_locked[debug:true-slow-pyloop] ___________________ loop = <_UnixSelectorEventLoop running=False closed=False debug=True> fast_track = False @pytest.mark.asyncio async def test_read_locked(loop, fast_track): rwlock = RWLock(fast=fast_track) assert not rwlock.reader_lock.locked > async with rwlock.reader_lock: ../../../tests/test_rwlock.py:469: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ aiorwlock/__init__.py:190: in __aenter__ await self.acquire() aiorwlock/__init__.py:215: in acquire await self._lock.acquire_read() aiorwlock/__init__.py:81: in acquire_read await self._yield_after_acquire(self._RL) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = , lock_type = 1 async def _yield_after_acquire(self, lock_type: int) -> None: if self._do_yield: try: > await asyncio.sleep(0.0, loop=self._loop) E TypeError: sleep() got an unexpected keyword argument 'loop' aiorwlock/__init__.py:58: TypeError __________________ test_write_locked[debug:true-slow-pyloop] ___________________ loop = <_UnixSelectorEventLoop running=False closed=False debug=True> fast_track = False @pytest.mark.asyncio async def test_write_locked(loop, fast_track): rwlock = RWLock(fast=fast_track) assert not rwlock.writer_lock.locked > async with rwlock.writer_lock: ../../../tests/test_rwlock.py:477: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ aiorwlock/__init__.py:190: in __aenter__ await self.acquire() aiorwlock/__init__.py:234: in acquire await self._lock.acquire_write() aiorwlock/__init__.py:116: in acquire_write await self._yield_after_acquire(self._WL) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = , lock_type = 2 async def _yield_after_acquire(self, lock_type: int) -> None: if self._do_yield: try: > await asyncio.sleep(0.0, loop=self._loop) E TypeError: sleep() got an unexpected keyword argument 'loop' aiorwlock/__init__.py:58: TypeError _________ test_write_read_lock_multiple_tasks[debug:true-slow-pyloop] __________ loop = <_UnixSelectorEventLoop running=False closed=False debug=True> fast_track = False @pytest.mark.asyncio async def test_write_read_lock_multiple_tasks(loop, fast_track): rwlock = RWLock(fast=fast_track) rl = rwlock.reader wl = rwlock.writer async def coro(): async with rl: assert not wl.locked assert rl.locked await asyncio.sleep(0.2, loop) > async with wl: ../../../tests/test_rwlock.py:493: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ aiorwlock/__init__.py:190: in __aenter__ await self.acquire() aiorwlock/__init__.py:234: in acquire await self._lock.acquire_write() aiorwlock/__init__.py:116: in acquire_write await self._yield_after_acquire(self._WL) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = , lock_type = 2 async def _yield_after_acquire(self, lock_type: int) -> None: if self._do_yield: try: > await asyncio.sleep(0.0, loop=self._loop) E TypeError: sleep() got an unexpected keyword argument 'loop' aiorwlock/__init__.py:58: TypeError ______________ test_read_context_manager[debug:true-slow-pyloop] _______________ loop = <_UnixSelectorEventLoop running=False closed=False debug=True> fast_track = False @pytest.mark.asyncio async def test_read_context_manager(loop, fast_track): rwlock = RWLock(fast=fast_track) reader = rwlock.reader_lock assert not reader.locked > async with reader: ../../../tests/test_rwlock.py:516: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ aiorwlock/__init__.py:190: in __aenter__ await self.acquire() aiorwlock/__init__.py:215: in acquire await self._lock.acquire_read() aiorwlock/__init__.py:81: in acquire_read await self._yield_after_acquire(self._RL) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = , lock_type = 1 async def _yield_after_acquire(self, lock_type: int) -> None: if self._do_yield: try: > await asyncio.sleep(0.0, loop=self._loop) E TypeError: sleep() got an unexpected keyword argument 'loop' aiorwlock/__init__.py:58: TypeError ______________ test_write_context_manager[debug:true-slow-pyloop] ______________ loop = <_UnixSelectorEventLoop running=False closed=False debug=True> fast_track = False @pytest.mark.asyncio async def test_write_context_manager(loop, fast_track): rwlock = RWLock(fast=fast_track) writer = rwlock.writer_lock assert not writer.locked > async with writer: ../../../tests/test_rwlock.py:525: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ aiorwlock/__init__.py:190: in __aenter__ await self.acquire() aiorwlock/__init__.py:234: in acquire await self._lock.acquire_write() aiorwlock/__init__.py:116: in acquire_write await self._yield_after_acquire(self._WL) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = , lock_type = 2 async def _yield_after_acquire(self, lock_type: int) -> None: if self._do_yield: try: > await asyncio.sleep(0.0, loop=self._loop) E TypeError: sleep() got an unexpected keyword argument 'loop' aiorwlock/__init__.py:58: TypeError _________________ test_await_read_lock[debug:true-slow-pyloop] _________________ loop = <_UnixSelectorEventLoop running=False closed=False debug=True> fast_track = False @pytest.mark.asyncio async def test_await_read_lock(loop, fast_track): rwlock = RWLock(fast=fast_track) reader = rwlock.reader_lock assert not reader.locked > async with reader: ../../../tests/test_rwlock.py:534: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ aiorwlock/__init__.py:190: in __aenter__ await self.acquire() aiorwlock/__init__.py:215: in acquire await self._lock.acquire_read() aiorwlock/__init__.py:81: in acquire_read await self._yield_after_acquire(self._RL) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = , lock_type = 1 async def _yield_after_acquire(self, lock_type: int) -> None: if self._do_yield: try: > await asyncio.sleep(0.0, loop=self._loop) E TypeError: sleep() got an unexpected keyword argument 'loop' aiorwlock/__init__.py:58: TypeError ________________ test_await_write_lock[debug:true-slow-pyloop] _________________ loop = <_UnixSelectorEventLoop running=False closed=False debug=True> fast_track = False @pytest.mark.asyncio async def test_await_write_lock(loop, fast_track): rwlock = RWLock(fast=fast_track) writer = rwlock.writer_lock assert not writer.locked > async with writer: ../../../tests/test_rwlock.py:543: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ aiorwlock/__init__.py:190: in __aenter__ await self.acquire() aiorwlock/__init__.py:234: in acquire await self._lock.acquire_write() aiorwlock/__init__.py:116: in acquire_write await self._yield_after_acquire(self._WL) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = , lock_type = 2 async def _yield_after_acquire(self, lock_type: int) -> None: if self._do_yield: try: > await asyncio.sleep(0.0, loop=self._loop) E TypeError: sleep() got an unexpected keyword argument 'loop' aiorwlock/__init__.py:58: TypeError ______________ test_read_upgrade_write_release[debug:true-uvloop] ______________ loop = @pytest.mark.asyncio async def test_read_upgrade_write_release(loop): rwlock = RWLock() > await rwlock.writer_lock.acquire() ../../../tests/test_rwlock.py:145: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ aiorwlock/__init__.py:234: in acquire await self._lock.acquire_write() aiorwlock/__init__.py:116: in acquire_write await self._yield_after_acquire(self._WL) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = , lock_type = 2 async def _yield_after_acquire(self, lock_type: int) -> None: if self._do_yield: try: > await asyncio.sleep(0.0, loop=self._loop) E TypeError: sleep() got an unexpected keyword argument 'loop' aiorwlock/__init__.py:58: TypeError ________________ test_writer_recursion_fail[debug:true-uvloop] _________________ loop = @pytest.mark.asyncio async def test_writer_recursion_fail(loop): rwlock = RWLock() N = 5 locked = [] async def f(): await rwlock.reader_lock.acquire() try: with pytest.raises(RuntimeError): await rwlock.writer_lock.acquire() locked.append(1) finally: rwlock.reader_lock.release() > await Bunch(f, N).wait_for_finished() ../../../tests/test_rwlock.py:260: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../../../tests/test_rwlock.py:41: in wait_for_finished await asyncio.gather(*self._futures) ../../../tests/test_rwlock.py:30: in task await f() ../../../tests/test_rwlock.py:252: in f await rwlock.reader_lock.acquire() aiorwlock/__init__.py:215: in acquire await self._lock.acquire_read() aiorwlock/__init__.py:81: in acquire_read await self._yield_after_acquire(self._RL) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = , lock_type = 1 async def _yield_after_acquire(self, lock_type: int) -> None: if self._do_yield: try: > await asyncio.sleep(0.0, loop=self._loop) E TypeError: sleep() got an unexpected keyword argument 'loop' aiorwlock/__init__.py:58: TypeError During handling of the above exception, another exception occurred: cls = func = . at 0xf653dbb8>, when = 'call' reraise = (, ) @classmethod def from_call( cls, func: Callable[[], TResult], when: Literal["collect", "setup", "call", "teardown"], reraise: Optional[ Union[Type[BaseException], Tuple[Type[BaseException], ...]] ] = None, ) -> "CallInfo[TResult]": """Call func, wrapping the result in a CallInfo. :param func: The function to call. Called without arguments. :param when: The phase in which the function is called. :param reraise: Exception or exceptions that shall propagate if raised by the function, instead of being wrapped in the CallInfo. """ excinfo = None start = timing.time() precise_start = timing.perf_counter() try: > result: Optional[TResult] = func() /usr/lib/python3/dist-packages/_pytest/runner.py:341: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/dist-packages/_pytest/runner.py:241: in lambda: runtest_hook(item=item, **kwds), when=when, reraise=reraise /usr/lib/python3/dist-packages/pluggy/_hooks.py:513: in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) /usr/lib/python3/dist-packages/pluggy/_manager.py:120: in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) /usr/lib/python3/dist-packages/_pytest/threadexception.py:87: in pytest_runtest_call yield from thread_exception_runtest_hook() /usr/lib/python3/dist-packages/_pytest/threadexception.py:63: in thread_exception_runtest_hook yield /usr/lib/python3/dist-packages/_pytest/unraisableexception.py:90: in pytest_runtest_call yield from unraisable_exception_runtest_hook() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ def unraisable_exception_runtest_hook() -> Generator[None, None, None]: with catch_unraisable_exception() as cm: try: yield finally: if cm.unraisable: if cm.unraisable.err_msg is not None: err_msg = cm.unraisable.err_msg else: err_msg = "Exception ignored in" msg = f"{err_msg}: {cm.unraisable.object!r}\n\n" msg += "".join( traceback.format_exception( cm.unraisable.exc_type, cm.unraisable.exc_value, cm.unraisable.exc_traceback, ) ) > warnings.warn(pytest.PytestUnraisableExceptionWarning(msg)) E pytest.PytestUnraisableExceptionWarning: Exception ignored in: E E Traceback (most recent call last): E File "/usr/lib/python3.12/traceback.py", line 265, in __init__ E def __init__(self, filename, lineno, name, *, lookup_line=True, E E ResourceWarning: unclosed /usr/lib/python3/dist-packages/_pytest/unraisableexception.py:80: PytestUnraisableExceptionWarning ____________________ test_writer_success[debug:true-uvloop] ____________________ loop = @pytest.mark.asyncio async def test_writer_success(loop): # Verify that a writer can get access rwlock = RWLock() N = 5 reads = 0 writes = 0 async def r(): # read until we achive write successes nonlocal reads, writes while writes < 2: # print("current pre-reads", reads) await rwlock.reader_lock.acquire() try: reads += 1 # print("current reads", reads) finally: rwlock.reader_lock.release() async def w(): nonlocal reads, writes while reads == 0: await _wait() for _ in range(2): await _wait() # print("current pre-writes", reads) await rwlock.writer_lock.acquire() try: writes += 1 # print("current writes", reads) finally: rwlock.writer_lock.release() b1 = Bunch(r, N) b2 = Bunch(w, 1) > await b1.wait_for_finished() ../../../tests/test_rwlock.py:356: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../../../tests/test_rwlock.py:41: in wait_for_finished await asyncio.gather(*self._futures) ../../../tests/test_rwlock.py:30: in task await f() ../../../tests/test_rwlock.py:330: in r await rwlock.reader_lock.acquire() aiorwlock/__init__.py:215: in acquire await self._lock.acquire_read() aiorwlock/__init__.py:81: in acquire_read await self._yield_after_acquire(self._RL) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = , lock_type = 1 async def _yield_after_acquire(self, lock_type: int) -> None: if self._do_yield: try: > await asyncio.sleep(0.0, loop=self._loop) E TypeError: sleep() got an unexpected keyword argument 'loop' aiorwlock/__init__.py:58: TypeError During handling of the above exception, another exception occurred: cls = func = . at 0xf6066c08>, when = 'call' reraise = (, ) @classmethod def from_call( cls, func: Callable[[], TResult], when: Literal["collect", "setup", "call", "teardown"], reraise: Optional[ Union[Type[BaseException], Tuple[Type[BaseException], ...]] ] = None, ) -> "CallInfo[TResult]": """Call func, wrapping the result in a CallInfo. :param func: The function to call. Called without arguments. :param when: The phase in which the function is called. :param reraise: Exception or exceptions that shall propagate if raised by the function, instead of being wrapped in the CallInfo. """ excinfo = None start = timing.time() precise_start = timing.perf_counter() try: > result: Optional[TResult] = func() /usr/lib/python3/dist-packages/_pytest/runner.py:341: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/dist-packages/_pytest/runner.py:241: in lambda: runtest_hook(item=item, **kwds), when=when, reraise=reraise /usr/lib/python3/dist-packages/pluggy/_hooks.py:513: in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) /usr/lib/python3/dist-packages/pluggy/_manager.py:120: in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) /usr/lib/python3/dist-packages/_pytest/threadexception.py:87: in pytest_runtest_call yield from thread_exception_runtest_hook() /usr/lib/python3/dist-packages/_pytest/threadexception.py:63: in thread_exception_runtest_hook yield /usr/lib/python3/dist-packages/_pytest/unraisableexception.py:90: in pytest_runtest_call yield from unraisable_exception_runtest_hook() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ def unraisable_exception_runtest_hook() -> Generator[None, None, None]: with catch_unraisable_exception() as cm: try: yield finally: if cm.unraisable: if cm.unraisable.err_msg is not None: err_msg = cm.unraisable.err_msg else: err_msg = "Exception ignored in" msg = f"{err_msg}: {cm.unraisable.object!r}\n\n" msg += "".join( traceback.format_exception( cm.unraisable.exc_type, cm.unraisable.exc_value, cm.unraisable.exc_traceback, ) ) > warnings.warn(pytest.PytestUnraisableExceptionWarning(msg)) E pytest.PytestUnraisableExceptionWarning: Exception ignored in: E E Traceback (most recent call last): E File "/usr/lib/python3.12/traceback.py", line 265, in __init__ E def __init__(self, filename, lineno, name, *, lookup_line=True, E E ResourceWarning: unclosed /usr/lib/python3/dist-packages/_pytest/unraisableexception.py:80: PytestUnraisableExceptionWarning _________________ test_writer_success_fast[debug:true-uvloop] __________________ cls = func = . at 0xf6066488>, when = 'call' reraise = (, ) @classmethod def from_call( cls, func: Callable[[], TResult], when: Literal["collect", "setup", "call", "teardown"], reraise: Optional[ Union[Type[BaseException], Tuple[Type[BaseException], ...]] ] = None, ) -> "CallInfo[TResult]": """Call func, wrapping the result in a CallInfo. :param func: The function to call. Called without arguments. :param when: The phase in which the function is called. :param reraise: Exception or exceptions that shall propagate if raised by the function, instead of being wrapped in the CallInfo. """ excinfo = None start = timing.time() precise_start = timing.perf_counter() try: > result: Optional[TResult] = func() /usr/lib/python3/dist-packages/_pytest/runner.py:341: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/dist-packages/_pytest/runner.py:241: in lambda: runtest_hook(item=item, **kwds), when=when, reraise=reraise /usr/lib/python3/dist-packages/pluggy/_hooks.py:513: in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) /usr/lib/python3/dist-packages/pluggy/_manager.py:120: in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) /usr/lib/python3/dist-packages/_pytest/threadexception.py:87: in pytest_runtest_call yield from thread_exception_runtest_hook() /usr/lib/python3/dist-packages/_pytest/threadexception.py:63: in thread_exception_runtest_hook yield /usr/lib/python3/dist-packages/_pytest/unraisableexception.py:90: in pytest_runtest_call yield from unraisable_exception_runtest_hook() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ def unraisable_exception_runtest_hook() -> Generator[None, None, None]: with catch_unraisable_exception() as cm: try: yield finally: if cm.unraisable: if cm.unraisable.err_msg is not None: err_msg = cm.unraisable.err_msg else: err_msg = "Exception ignored in" msg = f"{err_msg}: {cm.unraisable.object!r}\n\n" msg += "".join( traceback.format_exception( cm.unraisable.exc_type, cm.unraisable.exc_value, cm.unraisable.exc_traceback, ) ) > warnings.warn(pytest.PytestUnraisableExceptionWarning(msg)) E pytest.PytestUnraisableExceptionWarning: Exception ignored in: E E Traceback (most recent call last): E File "/usr/lib/python3.12/traceback.py", line 265, in __init__ E def __init__(self, filename, lineno, name, *, lookup_line=True, E E ResourceWarning: unclosed /usr/lib/python3/dist-packages/_pytest/unraisableexception.py:80: PytestUnraisableExceptionWarning ---------------------------- Captured log teardown ----------------------------- ERROR asyncio:conftest.py:44 Task was destroyed but it is pending! source_traceback: Object created at (most recent call last): File "", line 198, in _run_module_as_main File "", line 88, in _run_code File "/usr/lib/python3/dist-packages/pytest/__main__.py", line 7, in raise SystemExit(pytest.console_main()) File "/usr/lib/python3/dist-packages/_pytest/config/__init__.py", line 206, in console_main code = main() File "/usr/lib/python3/dist-packages/_pytest/config/__init__.py", line 178, in main ret: Union[ExitCode, int] = config.hook.pytest_cmdline_main( File "/usr/lib/python3/dist-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3/dist-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3/dist-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3/dist-packages/_pytest/main.py", line 332, in pytest_cmdline_main return wrap_session(config, _main) File "/usr/lib/python3/dist-packages/_pytest/main.py", line 285, in wrap_session session.exitstatus = doit(config, session) or 0 File "/usr/lib/python3/dist-packages/_pytest/main.py", line 339, in _main config.hook.pytest_runtestloop(session=session) File "/usr/lib/python3/dist-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3/dist-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3/dist-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3/dist-packages/_pytest/main.py", line 364, in pytest_runtestloop item.config.hook.pytest_runtest_protocol(item=item, nextitem=nextitem) File "/usr/lib/python3/dist-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3/dist-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3/dist-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3/dist-packages/_pytest/runner.py", line 116, in pytest_runtest_protocol runtestprotocol(item, nextitem=nextitem) File "/usr/lib/python3/dist-packages/_pytest/runner.py", line 135, in runtestprotocol reports.append(call_and_report(item, "call", log)) File "/usr/lib/python3/dist-packages/_pytest/runner.py", line 240, in call_and_report call = CallInfo.from_call( File "/usr/lib/python3/dist-packages/_pytest/runner.py", line 341, in from_call result: Optional[TResult] = func() File "/usr/lib/python3/dist-packages/_pytest/runner.py", line 241, in lambda: runtest_hook(item=item, **kwds), when=when, reraise=reraise File "/usr/lib/python3/dist-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3/dist-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3/dist-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3/dist-packages/_pytest/runner.py", line 173, in pytest_runtest_call item.runtest() File "/usr/lib/python3/dist-packages/_pytest/python.py", line 1632, in runtest self.ihook.pytest_pyfunc_call(pyfuncitem=self) File "/usr/lib/python3/dist-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3/dist-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3/dist-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3/dist-packages/_pytest/python.py", line 162, in pytest_pyfunc_call result = testfunction(**testargs) File "/usr/lib/python3/dist-packages/pytest_asyncio/plugin.py", line 478, in inner _loop.run_until_complete(task) File "/build/reproducible-path/aiorwlock-1.0.0/tests/test_rwlock.py", line 354, in test_writer_success b2 = Bunch(w, 1) File "/build/reproducible-path/aiorwlock-1.0.0/tests/test_rwlock.py", line 37, in __init__ t = asyncio.Task(task()) task: .task() running at /build/reproducible-path/aiorwlock-1.0.0/tests/test_rwlock.py:30> wait_for= created at /build/reproducible-path/aiorwlock-1.0.0/tests/test_rwlock.py:37> ____________ test_writer_success_with_statement[debug:true-uvloop] _____________ loop = @pytest.mark.asyncio async def test_writer_success_with_statement(loop): # Verify that a writer can get access rwlock = RWLock() N = 5 reads = 0 writes = 0 async def r(): # read until we achive write successes nonlocal reads, writes while writes < 2: # print("current pre-reads", reads) async with rwlock.reader_lock: reads += 1 # print("current reads", reads) async def w(): nonlocal reads, writes while reads == 0: await _wait() for _ in range(2): await _wait() # print("current pre-writes", reads) async with rwlock.writer_lock: writes += 1 b1 = Bunch(r, N) b2 = Bunch(w, 1) > await b1.wait_for_finished() ../../../tests/test_rwlock.py:442: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../../../tests/test_rwlock.py:41: in wait_for_finished await asyncio.gather(*self._futures) ../../../tests/test_rwlock.py:30: in task await f() ../../../tests/test_rwlock.py:423: in r async with rwlock.reader_lock: aiorwlock/__init__.py:190: in __aenter__ await self.acquire() aiorwlock/__init__.py:215: in acquire await self._lock.acquire_read() aiorwlock/__init__.py:81: in acquire_read await self._yield_after_acquire(self._RL) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = , lock_type = 1 async def _yield_after_acquire(self, lock_type: int) -> None: if self._do_yield: try: > await asyncio.sleep(0.0, loop=self._loop) E TypeError: sleep() got an unexpected keyword argument 'loop' aiorwlock/__init__.py:58: TypeError During handling of the above exception, another exception occurred: cls = func = . at 0xf6066898>, when = 'call' reraise = (, ) @classmethod def from_call( cls, func: Callable[[], TResult], when: Literal["collect", "setup", "call", "teardown"], reraise: Optional[ Union[Type[BaseException], Tuple[Type[BaseException], ...]] ] = None, ) -> "CallInfo[TResult]": """Call func, wrapping the result in a CallInfo. :param func: The function to call. Called without arguments. :param when: The phase in which the function is called. :param reraise: Exception or exceptions that shall propagate if raised by the function, instead of being wrapped in the CallInfo. """ excinfo = None start = timing.time() precise_start = timing.perf_counter() try: > result: Optional[TResult] = func() /usr/lib/python3/dist-packages/_pytest/runner.py:341: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/dist-packages/_pytest/runner.py:241: in lambda: runtest_hook(item=item, **kwds), when=when, reraise=reraise /usr/lib/python3/dist-packages/pluggy/_hooks.py:513: in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) /usr/lib/python3/dist-packages/pluggy/_manager.py:120: in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) /usr/lib/python3/dist-packages/_pytest/threadexception.py:87: in pytest_runtest_call yield from thread_exception_runtest_hook() /usr/lib/python3/dist-packages/_pytest/threadexception.py:63: in thread_exception_runtest_hook yield /usr/lib/python3/dist-packages/_pytest/unraisableexception.py:90: in pytest_runtest_call yield from unraisable_exception_runtest_hook() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ def unraisable_exception_runtest_hook() -> Generator[None, None, None]: with catch_unraisable_exception() as cm: try: yield finally: if cm.unraisable: if cm.unraisable.err_msg is not None: err_msg = cm.unraisable.err_msg else: err_msg = "Exception ignored in" msg = f"{err_msg}: {cm.unraisable.object!r}\n\n" msg += "".join( traceback.format_exception( cm.unraisable.exc_type, cm.unraisable.exc_value, cm.unraisable.exc_traceback, ) ) > warnings.warn(pytest.PytestUnraisableExceptionWarning(msg)) E pytest.PytestUnraisableExceptionWarning: Exception ignored in: E E Traceback (most recent call last): E File "/build/reproducible-path/aiorwlock-1.0.0/.pybuild/cpython3_3.12_aiorwlock/build/aiorwlock/__init__.py", line 214, in acquire E async def acquire(self) -> None: E E ResourceWarning: unclosed /usr/lib/python3/dist-packages/_pytest/unraisableexception.py:80: PytestUnraisableExceptionWarning ______________ test_read_upgrade_write_release[debug:true-pyloop] ______________ loop = <_UnixSelectorEventLoop running=False closed=False debug=True> @pytest.mark.asyncio async def test_read_upgrade_write_release(loop): rwlock = RWLock() > await rwlock.writer_lock.acquire() ../../../tests/test_rwlock.py:145: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ aiorwlock/__init__.py:234: in acquire await self._lock.acquire_write() aiorwlock/__init__.py:116: in acquire_write await self._yield_after_acquire(self._WL) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = , lock_type = 2 async def _yield_after_acquire(self, lock_type: int) -> None: if self._do_yield: try: > await asyncio.sleep(0.0, loop=self._loop) E TypeError: sleep() got an unexpected keyword argument 'loop' aiorwlock/__init__.py:58: TypeError ________________ test_writer_recursion_fail[debug:true-pyloop] _________________ loop = <_UnixSelectorEventLoop running=False closed=False debug=True> @pytest.mark.asyncio async def test_writer_recursion_fail(loop): rwlock = RWLock() N = 5 locked = [] async def f(): await rwlock.reader_lock.acquire() try: with pytest.raises(RuntimeError): await rwlock.writer_lock.acquire() locked.append(1) finally: rwlock.reader_lock.release() > await Bunch(f, N).wait_for_finished() ../../../tests/test_rwlock.py:260: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../../../tests/test_rwlock.py:41: in wait_for_finished await asyncio.gather(*self._futures) ../../../tests/test_rwlock.py:30: in task await f() ../../../tests/test_rwlock.py:252: in f await rwlock.reader_lock.acquire() aiorwlock/__init__.py:215: in acquire await self._lock.acquire_read() aiorwlock/__init__.py:81: in acquire_read await self._yield_after_acquire(self._RL) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = , lock_type = 1 async def _yield_after_acquire(self, lock_type: int) -> None: if self._do_yield: try: > await asyncio.sleep(0.0, loop=self._loop) E TypeError: sleep() got an unexpected keyword argument 'loop' aiorwlock/__init__.py:58: TypeError During handling of the above exception, another exception occurred: cls = func = . at 0xf6066488>, when = 'call' reraise = (, ) @classmethod def from_call( cls, func: Callable[[], TResult], when: Literal["collect", "setup", "call", "teardown"], reraise: Optional[ Union[Type[BaseException], Tuple[Type[BaseException], ...]] ] = None, ) -> "CallInfo[TResult]": """Call func, wrapping the result in a CallInfo. :param func: The function to call. Called without arguments. :param when: The phase in which the function is called. :param reraise: Exception or exceptions that shall propagate if raised by the function, instead of being wrapped in the CallInfo. """ excinfo = None start = timing.time() precise_start = timing.perf_counter() try: > result: Optional[TResult] = func() /usr/lib/python3/dist-packages/_pytest/runner.py:341: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/dist-packages/_pytest/runner.py:241: in lambda: runtest_hook(item=item, **kwds), when=when, reraise=reraise /usr/lib/python3/dist-packages/pluggy/_hooks.py:513: in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) /usr/lib/python3/dist-packages/pluggy/_manager.py:120: in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) /usr/lib/python3/dist-packages/_pytest/threadexception.py:87: in pytest_runtest_call yield from thread_exception_runtest_hook() /usr/lib/python3/dist-packages/_pytest/threadexception.py:63: in thread_exception_runtest_hook yield /usr/lib/python3/dist-packages/_pytest/unraisableexception.py:90: in pytest_runtest_call yield from unraisable_exception_runtest_hook() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ def unraisable_exception_runtest_hook() -> Generator[None, None, None]: with catch_unraisable_exception() as cm: try: yield finally: if cm.unraisable: if cm.unraisable.err_msg is not None: err_msg = cm.unraisable.err_msg else: err_msg = "Exception ignored in" msg = f"{err_msg}: {cm.unraisable.object!r}\n\n" msg += "".join( traceback.format_exception( cm.unraisable.exc_type, cm.unraisable.exc_value, cm.unraisable.exc_traceback, ) ) > warnings.warn(pytest.PytestUnraisableExceptionWarning(msg)) E pytest.PytestUnraisableExceptionWarning: Exception ignored in: E E Traceback (most recent call last): E File "/usr/lib/python3.12/traceback.py", line 265, in __init__ E def __init__(self, filename, lineno, name, *, lookup_line=True, E E ResourceWarning: unclosed /usr/lib/python3/dist-packages/_pytest/unraisableexception.py:80: PytestUnraisableExceptionWarning ____________________ test_writer_success[debug:true-pyloop] ____________________ loop = <_UnixSelectorEventLoop running=False closed=False debug=True> @pytest.mark.asyncio async def test_writer_success(loop): # Verify that a writer can get access rwlock = RWLock() N = 5 reads = 0 writes = 0 async def r(): # read until we achive write successes nonlocal reads, writes while writes < 2: # print("current pre-reads", reads) await rwlock.reader_lock.acquire() try: reads += 1 # print("current reads", reads) finally: rwlock.reader_lock.release() async def w(): nonlocal reads, writes while reads == 0: await _wait() for _ in range(2): await _wait() # print("current pre-writes", reads) await rwlock.writer_lock.acquire() try: writes += 1 # print("current writes", reads) finally: rwlock.writer_lock.release() b1 = Bunch(r, N) b2 = Bunch(w, 1) > await b1.wait_for_finished() ../../../tests/test_rwlock.py:356: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../../../tests/test_rwlock.py:41: in wait_for_finished await asyncio.gather(*self._futures) ../../../tests/test_rwlock.py:30: in task await f() ../../../tests/test_rwlock.py:330: in r await rwlock.reader_lock.acquire() aiorwlock/__init__.py:215: in acquire await self._lock.acquire_read() aiorwlock/__init__.py:81: in acquire_read await self._yield_after_acquire(self._RL) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = , lock_type = 1 async def _yield_after_acquire(self, lock_type: int) -> None: if self._do_yield: try: > await asyncio.sleep(0.0, loop=self._loop) E TypeError: sleep() got an unexpected keyword argument 'loop' aiorwlock/__init__.py:58: TypeError During handling of the above exception, another exception occurred: cls = func = . at 0xf605b2a8>, when = 'call' reraise = (, ) @classmethod def from_call( cls, func: Callable[[], TResult], when: Literal["collect", "setup", "call", "teardown"], reraise: Optional[ Union[Type[BaseException], Tuple[Type[BaseException], ...]] ] = None, ) -> "CallInfo[TResult]": """Call func, wrapping the result in a CallInfo. :param func: The function to call. Called without arguments. :param when: The phase in which the function is called. :param reraise: Exception or exceptions that shall propagate if raised by the function, instead of being wrapped in the CallInfo. """ excinfo = None start = timing.time() precise_start = timing.perf_counter() try: > result: Optional[TResult] = func() /usr/lib/python3/dist-packages/_pytest/runner.py:341: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/dist-packages/_pytest/runner.py:241: in lambda: runtest_hook(item=item, **kwds), when=when, reraise=reraise /usr/lib/python3/dist-packages/pluggy/_hooks.py:513: in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) /usr/lib/python3/dist-packages/pluggy/_manager.py:120: in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) /usr/lib/python3/dist-packages/_pytest/threadexception.py:87: in pytest_runtest_call yield from thread_exception_runtest_hook() /usr/lib/python3/dist-packages/_pytest/threadexception.py:63: in thread_exception_runtest_hook yield /usr/lib/python3/dist-packages/_pytest/unraisableexception.py:90: in pytest_runtest_call yield from unraisable_exception_runtest_hook() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ def unraisable_exception_runtest_hook() -> Generator[None, None, None]: with catch_unraisable_exception() as cm: try: yield finally: if cm.unraisable: if cm.unraisable.err_msg is not None: err_msg = cm.unraisable.err_msg else: err_msg = "Exception ignored in" msg = f"{err_msg}: {cm.unraisable.object!r}\n\n" msg += "".join( traceback.format_exception( cm.unraisable.exc_type, cm.unraisable.exc_value, cm.unraisable.exc_traceback, ) ) > warnings.warn(pytest.PytestUnraisableExceptionWarning(msg)) E pytest.PytestUnraisableExceptionWarning: Exception ignored in: E E Traceback (most recent call last): E File "/usr/lib/python3.12/traceback.py", line 265, in __init__ E def __init__(self, filename, lineno, name, *, lookup_line=True, E E ResourceWarning: unclosed /usr/lib/python3/dist-packages/_pytest/unraisableexception.py:80: PytestUnraisableExceptionWarning _________________ test_writer_success_fast[debug:true-pyloop] __________________ cls = func = . at 0xf605bcf8>, when = 'call' reraise = (, ) @classmethod def from_call( cls, func: Callable[[], TResult], when: Literal["collect", "setup", "call", "teardown"], reraise: Optional[ Union[Type[BaseException], Tuple[Type[BaseException], ...]] ] = None, ) -> "CallInfo[TResult]": """Call func, wrapping the result in a CallInfo. :param func: The function to call. Called without arguments. :param when: The phase in which the function is called. :param reraise: Exception or exceptions that shall propagate if raised by the function, instead of being wrapped in the CallInfo. """ excinfo = None start = timing.time() precise_start = timing.perf_counter() try: > result: Optional[TResult] = func() /usr/lib/python3/dist-packages/_pytest/runner.py:341: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/dist-packages/_pytest/runner.py:241: in lambda: runtest_hook(item=item, **kwds), when=when, reraise=reraise /usr/lib/python3/dist-packages/pluggy/_hooks.py:513: in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) /usr/lib/python3/dist-packages/pluggy/_manager.py:120: in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) /usr/lib/python3/dist-packages/_pytest/threadexception.py:87: in pytest_runtest_call yield from thread_exception_runtest_hook() /usr/lib/python3/dist-packages/_pytest/threadexception.py:63: in thread_exception_runtest_hook yield /usr/lib/python3/dist-packages/_pytest/unraisableexception.py:90: in pytest_runtest_call yield from unraisable_exception_runtest_hook() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ def unraisable_exception_runtest_hook() -> Generator[None, None, None]: with catch_unraisable_exception() as cm: try: yield finally: if cm.unraisable: if cm.unraisable.err_msg is not None: err_msg = cm.unraisable.err_msg else: err_msg = "Exception ignored in" msg = f"{err_msg}: {cm.unraisable.object!r}\n\n" msg += "".join( traceback.format_exception( cm.unraisable.exc_type, cm.unraisable.exc_value, cm.unraisable.exc_traceback, ) ) > warnings.warn(pytest.PytestUnraisableExceptionWarning(msg)) E pytest.PytestUnraisableExceptionWarning: Exception ignored in: E E Traceback (most recent call last): E File "/usr/lib/python3.12/traceback.py", line 265, in __init__ E def __init__(self, filename, lineno, name, *, lookup_line=True, E E ResourceWarning: unclosed /usr/lib/python3/dist-packages/_pytest/unraisableexception.py:80: PytestUnraisableExceptionWarning ---------------------------- Captured log teardown ----------------------------- ERROR asyncio:base_events.py:1821 Task was destroyed but it is pending! source_traceback: Object created at (most recent call last): File "", line 198, in _run_module_as_main File "", line 88, in _run_code File "/usr/lib/python3/dist-packages/pytest/__main__.py", line 7, in raise SystemExit(pytest.console_main()) File "/usr/lib/python3/dist-packages/_pytest/config/__init__.py", line 206, in console_main code = main() File "/usr/lib/python3/dist-packages/_pytest/config/__init__.py", line 178, in main ret: Union[ExitCode, int] = config.hook.pytest_cmdline_main( File "/usr/lib/python3/dist-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3/dist-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3/dist-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3/dist-packages/_pytest/main.py", line 332, in pytest_cmdline_main return wrap_session(config, _main) File "/usr/lib/python3/dist-packages/_pytest/main.py", line 285, in wrap_session session.exitstatus = doit(config, session) or 0 File "/usr/lib/python3/dist-packages/_pytest/main.py", line 339, in _main config.hook.pytest_runtestloop(session=session) File "/usr/lib/python3/dist-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3/dist-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3/dist-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3/dist-packages/_pytest/main.py", line 364, in pytest_runtestloop item.config.hook.pytest_runtest_protocol(item=item, nextitem=nextitem) File "/usr/lib/python3/dist-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3/dist-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3/dist-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3/dist-packages/_pytest/runner.py", line 116, in pytest_runtest_protocol runtestprotocol(item, nextitem=nextitem) File "/usr/lib/python3/dist-packages/_pytest/runner.py", line 135, in runtestprotocol reports.append(call_and_report(item, "call", log)) File "/usr/lib/python3/dist-packages/_pytest/runner.py", line 240, in call_and_report call = CallInfo.from_call( File "/usr/lib/python3/dist-packages/_pytest/runner.py", line 341, in from_call result: Optional[TResult] = func() File "/usr/lib/python3/dist-packages/_pytest/runner.py", line 241, in lambda: runtest_hook(item=item, **kwds), when=when, reraise=reraise File "/usr/lib/python3/dist-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3/dist-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3/dist-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3/dist-packages/_pytest/runner.py", line 173, in pytest_runtest_call item.runtest() File "/usr/lib/python3/dist-packages/_pytest/python.py", line 1632, in runtest self.ihook.pytest_pyfunc_call(pyfuncitem=self) File "/usr/lib/python3/dist-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3/dist-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3/dist-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3/dist-packages/_pytest/python.py", line 162, in pytest_pyfunc_call result = testfunction(**testargs) File "/usr/lib/python3/dist-packages/pytest_asyncio/plugin.py", line 478, in inner _loop.run_until_complete(task) File "/usr/lib/python3.12/asyncio/base_events.py", line 674, in run_until_complete self.run_forever() File "/usr/lib/python3.12/asyncio/base_events.py", line 641, in run_forever self._run_once() File "/usr/lib/python3.12/asyncio/base_events.py", line 1979, in _run_once handle._run() File "/usr/lib/python3.12/asyncio/events.py", line 88, in _run self._context.run(self._callback, *self._args) File "/build/reproducible-path/aiorwlock-1.0.0/tests/test_rwlock.py", line 354, in test_writer_success b2 = Bunch(w, 1) File "/build/reproducible-path/aiorwlock-1.0.0/tests/test_rwlock.py", line 37, in __init__ t = asyncio.Task(task()) task: .task() running at /build/reproducible-path/aiorwlock-1.0.0/tests/test_rwlock.py:30> wait_for= created at /build/reproducible-path/aiorwlock-1.0.0/tests/test_rwlock.py:37> ____________ test_writer_success_with_statement[debug:true-pyloop] _____________ loop = <_UnixSelectorEventLoop running=False closed=False debug=True> @pytest.mark.asyncio async def test_writer_success_with_statement(loop): # Verify that a writer can get access rwlock = RWLock() N = 5 reads = 0 writes = 0 async def r(): # read until we achive write successes nonlocal reads, writes while writes < 2: # print("current pre-reads", reads) async with rwlock.reader_lock: reads += 1 # print("current reads", reads) async def w(): nonlocal reads, writes while reads == 0: await _wait() for _ in range(2): await _wait() # print("current pre-writes", reads) async with rwlock.writer_lock: writes += 1 b1 = Bunch(r, N) b2 = Bunch(w, 1) > await b1.wait_for_finished() ../../../tests/test_rwlock.py:442: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../../../tests/test_rwlock.py:41: in wait_for_finished await asyncio.gather(*self._futures) ../../../tests/test_rwlock.py:30: in task await f() ../../../tests/test_rwlock.py:423: in r async with rwlock.reader_lock: aiorwlock/__init__.py:190: in __aenter__ await self.acquire() aiorwlock/__init__.py:215: in acquire await self._lock.acquire_read() aiorwlock/__init__.py:81: in acquire_read await self._yield_after_acquire(self._RL) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = , lock_type = 1 async def _yield_after_acquire(self, lock_type: int) -> None: if self._do_yield: try: > await asyncio.sleep(0.0, loop=self._loop) E TypeError: sleep() got an unexpected keyword argument 'loop' aiorwlock/__init__.py:58: TypeError During handling of the above exception, another exception occurred: cls = func = . at 0xf605be88>, when = 'call' reraise = (, ) @classmethod def from_call( cls, func: Callable[[], TResult], when: Literal["collect", "setup", "call", "teardown"], reraise: Optional[ Union[Type[BaseException], Tuple[Type[BaseException], ...]] ] = None, ) -> "CallInfo[TResult]": """Call func, wrapping the result in a CallInfo. :param func: The function to call. Called without arguments. :param when: The phase in which the function is called. :param reraise: Exception or exceptions that shall propagate if raised by the function, instead of being wrapped in the CallInfo. """ excinfo = None start = timing.time() precise_start = timing.perf_counter() try: > result: Optional[TResult] = func() /usr/lib/python3/dist-packages/_pytest/runner.py:341: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/dist-packages/_pytest/runner.py:241: in lambda: runtest_hook(item=item, **kwds), when=when, reraise=reraise /usr/lib/python3/dist-packages/pluggy/_hooks.py:513: in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) /usr/lib/python3/dist-packages/pluggy/_manager.py:120: in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) /usr/lib/python3/dist-packages/_pytest/threadexception.py:87: in pytest_runtest_call yield from thread_exception_runtest_hook() /usr/lib/python3/dist-packages/_pytest/threadexception.py:63: in thread_exception_runtest_hook yield /usr/lib/python3/dist-packages/_pytest/unraisableexception.py:90: in pytest_runtest_call yield from unraisable_exception_runtest_hook() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ def unraisable_exception_runtest_hook() -> Generator[None, None, None]: with catch_unraisable_exception() as cm: try: yield finally: if cm.unraisable: if cm.unraisable.err_msg is not None: err_msg = cm.unraisable.err_msg else: err_msg = "Exception ignored in" msg = f"{err_msg}: {cm.unraisable.object!r}\n\n" msg += "".join( traceback.format_exception( cm.unraisable.exc_type, cm.unraisable.exc_value, cm.unraisable.exc_traceback, ) ) > warnings.warn(pytest.PytestUnraisableExceptionWarning(msg)) E pytest.PytestUnraisableExceptionWarning: Exception ignored in: E E Traceback (most recent call last): E File "/build/reproducible-path/aiorwlock-1.0.0/.pybuild/cpython3_3.12_aiorwlock/build/aiorwlock/__init__.py", line 214, in acquire E async def acquire(self) -> None: E E ResourceWarning: unclosed /usr/lib/python3/dist-packages/_pytest/unraisableexception.py:80: PytestUnraisableExceptionWarning _________________ test_get_write_then_read[debug:false-pyloop] _________________ loop = <_UnixSelectorEventLoop running=False closed=False debug=False> @pytest.mark.asyncio async def test_get_write_then_read(loop): rwlock = RWLock() rl = rwlock.reader wl = rwlock.writer > async with wl: ../../../tests/test_corner_cases.py:32: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ aiorwlock/__init__.py:190: in __aenter__ await self.acquire() aiorwlock/__init__.py:234: in acquire await self._lock.acquire_write() aiorwlock/__init__.py:116: in acquire_write await self._yield_after_acquire(self._WL) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = , lock_type = 2 async def _yield_after_acquire(self, lock_type: int) -> None: if self._do_yield: try: > await asyncio.sleep(0.0, loop=self._loop) E TypeError: sleep() got an unexpected keyword argument 'loop' aiorwlock/__init__.py:58: TypeError _________ test_get_write_then_read_and_write_again[debug:false-pyloop] _________ loop = <_UnixSelectorEventLoop running=False closed=False debug=False> @pytest.mark.asyncio async def test_get_write_then_read_and_write_again(loop): rwlock = RWLock() rl = rwlock.reader wl = rwlock.writer f = loop.create_future() writes = [] async def get_write_lock(): await f with should_fail(0.1, loop): async with wl: assert wl.locked writes.append('should not be here') ensure_future(get_write_lock()) > async with wl: ../../../tests/test_corner_cases.py:59: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ aiorwlock/__init__.py:190: in __aenter__ await self.acquire() aiorwlock/__init__.py:234: in acquire await self._lock.acquire_write() aiorwlock/__init__.py:116: in acquire_write await self._yield_after_acquire(self._WL) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = , lock_type = 2 async def _yield_after_acquire(self, lock_type: int) -> None: if self._do_yield: try: > await asyncio.sleep(0.0, loop=self._loop) E TypeError: sleep() got an unexpected keyword argument 'loop' aiorwlock/__init__.py:58: TypeError __________________ test_writers_deadlock[debug:false-pyloop] ___________________ loop = <_UnixSelectorEventLoop running=False closed=False debug=False> @pytest.mark.asyncio async def test_writers_deadlock(loop): rwlock = RWLock() rl = rwlock.reader wl = rwlock.writer # Scenario: # - task A (this) acquires read lock # - task B,C wait for write lock # # A releases the lock and, in the same loop interation, # task B gets cancelled (eg: by timeout); # B gets cancelled without waking up next waiter -- deadlock; # # See asyncio.Lock deadlock issue: # https://github.com/python/cpython/pull/1031 async def coro(): async with wl: assert wl.locked await asyncio.sleep(0.2, loop) > async with rl: ../../../tests/test_corner_cases.py:92: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ aiorwlock/__init__.py:190: in __aenter__ await self.acquire() aiorwlock/__init__.py:215: in acquire await self._lock.acquire_read() aiorwlock/__init__.py:81: in acquire_read await self._yield_after_acquire(self._RL) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = , lock_type = 1 async def _yield_after_acquire(self, lock_type: int) -> None: if self._do_yield: try: > await asyncio.sleep(0.0, loop=self._loop) E TypeError: sleep() got an unexpected keyword argument 'loop' aiorwlock/__init__.py:58: TypeError ---------------------------- Captured log teardown ----------------------------- ERROR asyncio:base_events.py:1821 Task was destroyed but it is pending! task: .get_write_lock() running at /build/reproducible-path/aiorwlock-1.0.0/tests/test_corner_cases.py:51> wait_for=> ___________________ test_readers_cancel[debug:false-pyloop] ____________________ loop = <_UnixSelectorEventLoop running=False closed=False debug=False> @pytest.mark.asyncio async def test_readers_cancel(loop): rwlock = RWLock() rl = rwlock.reader wl = rwlock.writer async def coro(lock): async with lock: assert lock.locked await asyncio.sleep(0.2, loop) > async with wl: ../../../tests/test_corner_cases.py:119: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ aiorwlock/__init__.py:190: in __aenter__ await self.acquire() aiorwlock/__init__.py:234: in acquire await self._lock.acquire_write() aiorwlock/__init__.py:116: in acquire_write await self._yield_after_acquire(self._WL) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = , lock_type = 2 async def _yield_after_acquire(self, lock_type: int) -> None: if self._do_yield: try: > await asyncio.sleep(0.0, loop=self._loop) E TypeError: sleep() got an unexpected keyword argument 'loop' aiorwlock/__init__.py:58: TypeError _______________ test_canceled_inside_acquire[debug:false-pyloop] _______________ loop = <_UnixSelectorEventLoop running=False closed=False debug=False> @pytest.mark.asyncio async def test_canceled_inside_acquire(loop): rwlock = RWLock() rl = rwlock.reader async def coro(lock): async with lock: pass task = ensure_future(coro(rl)) await asyncio.sleep(0) task.cancel() try: > await task ../../../tests/test_corner_cases.py:148: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../../../tests/test_corner_cases.py:140: in coro async with lock: aiorwlock/__init__.py:190: in __aenter__ await self.acquire() aiorwlock/__init__.py:215: in acquire await self._lock.acquire_read() aiorwlock/__init__.py:81: in acquire_read await self._yield_after_acquire(self._RL) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = , lock_type = 1 async def _yield_after_acquire(self, lock_type: int) -> None: if self._do_yield: try: > await asyncio.sleep(0.0, loop=self._loop) E TypeError: sleep() got an unexpected keyword argument 'loop' aiorwlock/__init__.py:58: TypeError _________________ test_get_write_then_read[debug:false-uvloop] _________________ loop = @pytest.mark.asyncio async def test_get_write_then_read(loop): rwlock = RWLock() rl = rwlock.reader wl = rwlock.writer > async with wl: ../../../tests/test_corner_cases.py:32: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ aiorwlock/__init__.py:190: in __aenter__ await self.acquire() aiorwlock/__init__.py:234: in acquire await self._lock.acquire_write() aiorwlock/__init__.py:116: in acquire_write await self._yield_after_acquire(self._WL) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = , lock_type = 2 async def _yield_after_acquire(self, lock_type: int) -> None: if self._do_yield: try: > await asyncio.sleep(0.0, loop=self._loop) E TypeError: sleep() got an unexpected keyword argument 'loop' aiorwlock/__init__.py:58: TypeError _________ test_get_write_then_read_and_write_again[debug:false-uvloop] _________ loop = @pytest.mark.asyncio async def test_get_write_then_read_and_write_again(loop): rwlock = RWLock() rl = rwlock.reader wl = rwlock.writer f = loop.create_future() writes = [] async def get_write_lock(): await f with should_fail(0.1, loop): async with wl: assert wl.locked writes.append('should not be here') ensure_future(get_write_lock()) > async with wl: ../../../tests/test_corner_cases.py:59: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ aiorwlock/__init__.py:190: in __aenter__ await self.acquire() aiorwlock/__init__.py:234: in acquire await self._lock.acquire_write() aiorwlock/__init__.py:116: in acquire_write await self._yield_after_acquire(self._WL) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = , lock_type = 2 async def _yield_after_acquire(self, lock_type: int) -> None: if self._do_yield: try: > await asyncio.sleep(0.0, loop=self._loop) E TypeError: sleep() got an unexpected keyword argument 'loop' aiorwlock/__init__.py:58: TypeError __________________ test_writers_deadlock[debug:false-uvloop] ___________________ loop = @pytest.mark.asyncio async def test_writers_deadlock(loop): rwlock = RWLock() rl = rwlock.reader wl = rwlock.writer # Scenario: # - task A (this) acquires read lock # - task B,C wait for write lock # # A releases the lock and, in the same loop interation, # task B gets cancelled (eg: by timeout); # B gets cancelled without waking up next waiter -- deadlock; # # See asyncio.Lock deadlock issue: # https://github.com/python/cpython/pull/1031 async def coro(): async with wl: assert wl.locked await asyncio.sleep(0.2, loop) > async with rl: ../../../tests/test_corner_cases.py:92: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ aiorwlock/__init__.py:190: in __aenter__ await self.acquire() aiorwlock/__init__.py:215: in acquire await self._lock.acquire_read() aiorwlock/__init__.py:81: in acquire_read await self._yield_after_acquire(self._RL) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = , lock_type = 1 async def _yield_after_acquire(self, lock_type: int) -> None: if self._do_yield: try: > await asyncio.sleep(0.0, loop=self._loop) E TypeError: sleep() got an unexpected keyword argument 'loop' aiorwlock/__init__.py:58: TypeError ---------------------------- Captured log teardown ----------------------------- ERROR asyncio:conftest.py:44 Task was destroyed but it is pending! task: .get_write_lock() running at /build/reproducible-path/aiorwlock-1.0.0/tests/test_corner_cases.py:51> wait_for=> ___________________ test_readers_cancel[debug:false-uvloop] ____________________ loop = @pytest.mark.asyncio async def test_readers_cancel(loop): rwlock = RWLock() rl = rwlock.reader wl = rwlock.writer async def coro(lock): async with lock: assert lock.locked await asyncio.sleep(0.2, loop) > async with wl: ../../../tests/test_corner_cases.py:119: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ aiorwlock/__init__.py:190: in __aenter__ await self.acquire() aiorwlock/__init__.py:234: in acquire await self._lock.acquire_write() aiorwlock/__init__.py:116: in acquire_write await self._yield_after_acquire(self._WL) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = , lock_type = 2 async def _yield_after_acquire(self, lock_type: int) -> None: if self._do_yield: try: > await asyncio.sleep(0.0, loop=self._loop) E TypeError: sleep() got an unexpected keyword argument 'loop' aiorwlock/__init__.py:58: TypeError _______________ test_canceled_inside_acquire[debug:false-uvloop] _______________ loop = @pytest.mark.asyncio async def test_canceled_inside_acquire(loop): rwlock = RWLock() rl = rwlock.reader async def coro(lock): async with lock: pass task = ensure_future(coro(rl)) await asyncio.sleep(0) task.cancel() try: > await task ../../../tests/test_corner_cases.py:148: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../../../tests/test_corner_cases.py:140: in coro async with lock: aiorwlock/__init__.py:190: in __aenter__ await self.acquire() aiorwlock/__init__.py:215: in acquire await self._lock.acquire_read() aiorwlock/__init__.py:81: in acquire_read await self._yield_after_acquire(self._RL) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = , lock_type = 1 async def _yield_after_acquire(self, lock_type: int) -> None: if self._do_yield: try: > await asyncio.sleep(0.0, loop=self._loop) E TypeError: sleep() got an unexpected keyword argument 'loop' aiorwlock/__init__.py:58: TypeError ________________________ test_repr[debug:false-pyloop] _________________________ loop = <_UnixSelectorEventLoop running=False closed=False debug=False> @pytest.mark.asyncio async def test_repr(loop): rwlock = RWLock() assert 'RWLock' in rwlock.__repr__() assert 'WriterLock: [unlocked' in rwlock.__repr__() assert 'ReaderLock: [unlocked' in rwlock.__repr__() # reader lock __repr__ > await rwlock.reader_lock.acquire() ../../../tests/test_rwlock.py:101: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ aiorwlock/__init__.py:215: in acquire await self._lock.acquire_read() aiorwlock/__init__.py:81: in acquire_read await self._yield_after_acquire(self._RL) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = , lock_type = 1 async def _yield_after_acquire(self, lock_type: int) -> None: if self._do_yield: try: > await asyncio.sleep(0.0, loop=self._loop) E TypeError: sleep() got an unexpected keyword argument 'loop' aiorwlock/__init__.py:58: TypeError ________________________ test_repr[debug:false-uvloop] _________________________ loop = @pytest.mark.asyncio async def test_repr(loop): rwlock = RWLock() assert 'RWLock' in rwlock.__repr__() assert 'WriterLock: [unlocked' in rwlock.__repr__() assert 'ReaderLock: [unlocked' in rwlock.__repr__() # reader lock __repr__ > await rwlock.reader_lock.acquire() ../../../tests/test_rwlock.py:101: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ aiorwlock/__init__.py:215: in acquire await self._lock.acquire_read() aiorwlock/__init__.py:81: in acquire_read await self._yield_after_acquire(self._RL) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = , lock_type = 1 async def _yield_after_acquire(self, lock_type: int) -> None: if self._do_yield: try: > await asyncio.sleep(0.0, loop=self._loop) E TypeError: sleep() got an unexpected keyword argument 'loop' aiorwlock/__init__.py:58: TypeError __________________ test_many_readers[debug:false-slow-uvloop] __________________ loop = , fast_track = False @pytest.mark.asyncio async def test_many_readers(loop, fast_track): rwlock = RWLock(fast=fast_track) N = 5 locked = [] nlocked = [] async def f(): await rwlock.reader_lock.acquire() try: locked.append(1) await _wait() nlocked.append(len(locked)) await _wait() locked.pop(-1) finally: rwlock.reader_lock.release() > await Bunch(f, N).wait_for_finished() ../../../tests/test_rwlock.py:138: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../../../tests/test_rwlock.py:41: in wait_for_finished await asyncio.gather(*self._futures) ../../../tests/test_rwlock.py:30: in task await f() ../../../tests/test_rwlock.py:128: in f await rwlock.reader_lock.acquire() aiorwlock/__init__.py:215: in acquire await self._lock.acquire_read() aiorwlock/__init__.py:81: in acquire_read await self._yield_after_acquire(self._RL) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = , lock_type = 1 async def _yield_after_acquire(self, lock_type: int) -> None: if self._do_yield: try: > await asyncio.sleep(0.0, loop=self._loop) E TypeError: sleep() got an unexpected keyword argument 'loop' aiorwlock/__init__.py:58: TypeError ________________ test_reader_recursion[debug:false-slow-uvloop] ________________ loop = , fast_track = False @pytest.mark.asyncio async def test_reader_recursion(loop, fast_track): rwlock = RWLock(fast=fast_track) N = 5 locked = [] nlocked = [] async def f(): await rwlock.reader_lock.acquire() try: await rwlock.reader_lock.acquire() try: locked.append(1) await _wait() nlocked.append(len(locked)) await _wait() locked.pop(-1) finally: rwlock.reader_lock.release() finally: rwlock.reader_lock.release() > await Bunch(f, N).wait_for_finished() ../../../tests/test_rwlock.py:189: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../../../tests/test_rwlock.py:41: in wait_for_finished await asyncio.gather(*self._futures) ../../../tests/test_rwlock.py:30: in task await f() ../../../tests/test_rwlock.py:175: in f await rwlock.reader_lock.acquire() aiorwlock/__init__.py:215: in acquire await self._lock.acquire_read() aiorwlock/__init__.py:81: in acquire_read await self._yield_after_acquire(self._RL) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = , lock_type = 1 async def _yield_after_acquire(self, lock_type: int) -> None: if self._do_yield: try: > await asyncio.sleep(0.0, loop=self._loop) E TypeError: sleep() got an unexpected keyword argument 'loop' aiorwlock/__init__.py:58: TypeError ________________ test_writer_recursion[debug:false-slow-uvloop] ________________ loop = , fast_track = False @pytest.mark.asyncio async def test_writer_recursion(loop, fast_track): rwlock = RWLock(fast=fast_track) N = 5 locked = [] nlocked = [] async def f(): await rwlock.writer_lock.acquire() try: await rwlock.writer_lock.acquire() try: locked.append(1) await _wait() nlocked.append(len(locked)) await _wait() locked.pop(-1) finally: rwlock.writer_lock.release() finally: rwlock.writer_lock.release() > await Bunch(f, N).wait_for_finished() ../../../tests/test_rwlock.py:215: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../../../tests/test_rwlock.py:41: in wait_for_finished await asyncio.gather(*self._futures) ../../../tests/test_rwlock.py:30: in task await f() ../../../tests/test_rwlock.py:201: in f await rwlock.writer_lock.acquire() aiorwlock/__init__.py:234: in acquire await self._lock.acquire_write() aiorwlock/__init__.py:116: in acquire_write await self._yield_after_acquire(self._WL) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = , lock_type = 2 async def _yield_after_acquire(self, lock_type: int) -> None: if self._do_yield: try: > await asyncio.sleep(0.0, loop=self._loop) E TypeError: sleep() got an unexpected keyword argument 'loop' aiorwlock/__init__.py:58: TypeError __________ test_writer_then_reader_recursion[debug:false-slow-uvloop] __________ loop = , fast_track = False @pytest.mark.asyncio async def test_writer_then_reader_recursion(loop, fast_track): rwlock = RWLock(fast=fast_track) N = 5 locked = [] nlocked = [] async def f(): await rwlock.writer_lock.acquire() try: await rwlock.reader_lock.acquire() try: locked.append(1) await _wait() nlocked.append(len(locked)) await _wait() locked.pop(-1) finally: rwlock.reader_lock.release() finally: rwlock.writer_lock.release() > await Bunch(f, N).wait_for_finished() ../../../tests/test_rwlock.py:241: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../../../tests/test_rwlock.py:41: in wait_for_finished await asyncio.gather(*self._futures) ../../../tests/test_rwlock.py:30: in task await f() ../../../tests/test_rwlock.py:227: in f await rwlock.writer_lock.acquire() aiorwlock/__init__.py:234: in acquire await self._lock.acquire_write() aiorwlock/__init__.py:116: in acquire_write await self._yield_after_acquire(self._WL) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = , lock_type = 2 async def _yield_after_acquire(self, lock_type: int) -> None: if self._do_yield: try: > await asyncio.sleep(0.0, loop=self._loop) E TypeError: sleep() got an unexpected keyword argument 'loop' aiorwlock/__init__.py:58: TypeError ________________ test_readers_writers[debug:false-slow-uvloop] _________________ loop = , fast_track = False @pytest.mark.asyncio async def test_readers_writers(loop, fast_track): rwlock = RWLock(fast=fast_track) N = 5 rlocked = [] wlocked = [] nlocked = [] async def r(): await rwlock.reader_lock.acquire() try: rlocked.append(1) await _wait() nlocked.append((len(rlocked), len(wlocked))) await _wait() rlocked.pop(-1) finally: rwlock.reader_lock.release() async def w(): await rwlock.writer_lock.acquire() try: wlocked.append(1) await _wait() nlocked.append((len(rlocked), len(wlocked))) await _wait() wlocked.pop(-1) finally: rwlock.writer_lock.release() b1 = Bunch(r, N) b2 = Bunch(w, N) await asyncio.sleep(0.0001) > await b1.wait_for_finished() ../../../tests/test_rwlock.py:299: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../../../tests/test_rwlock.py:41: in wait_for_finished await asyncio.gather(*self._futures) ../../../tests/test_rwlock.py:30: in task await f() ../../../tests/test_rwlock.py:273: in r await rwlock.reader_lock.acquire() aiorwlock/__init__.py:215: in acquire await self._lock.acquire_read() aiorwlock/__init__.py:81: in acquire_read await self._yield_after_acquire(self._RL) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = , lock_type = 1 async def _yield_after_acquire(self, lock_type: int) -> None: if self._do_yield: try: > await asyncio.sleep(0.0, loop=self._loop) E TypeError: sleep() got an unexpected keyword argument 'loop' aiorwlock/__init__.py:58: TypeError __________________ test_read_locked[debug:false-slow-uvloop] ___________________ loop = , fast_track = False @pytest.mark.asyncio async def test_read_locked(loop, fast_track): rwlock = RWLock(fast=fast_track) assert not rwlock.reader_lock.locked > async with rwlock.reader_lock: ../../../tests/test_rwlock.py:469: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ aiorwlock/__init__.py:190: in __aenter__ await self.acquire() aiorwlock/__init__.py:215: in acquire await self._lock.acquire_read() aiorwlock/__init__.py:81: in acquire_read await self._yield_after_acquire(self._RL) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = , lock_type = 1 async def _yield_after_acquire(self, lock_type: int) -> None: if self._do_yield: try: > await asyncio.sleep(0.0, loop=self._loop) E TypeError: sleep() got an unexpected keyword argument 'loop' aiorwlock/__init__.py:58: TypeError __________________ test_write_locked[debug:false-slow-uvloop] __________________ loop = , fast_track = False @pytest.mark.asyncio async def test_write_locked(loop, fast_track): rwlock = RWLock(fast=fast_track) assert not rwlock.writer_lock.locked > async with rwlock.writer_lock: ../../../tests/test_rwlock.py:477: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ aiorwlock/__init__.py:190: in __aenter__ await self.acquire() aiorwlock/__init__.py:234: in acquire await self._lock.acquire_write() aiorwlock/__init__.py:116: in acquire_write await self._yield_after_acquire(self._WL) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = , lock_type = 2 async def _yield_after_acquire(self, lock_type: int) -> None: if self._do_yield: try: > await asyncio.sleep(0.0, loop=self._loop) E TypeError: sleep() got an unexpected keyword argument 'loop' aiorwlock/__init__.py:58: TypeError _________ test_write_read_lock_multiple_tasks[debug:false-slow-uvloop] _________ loop = , fast_track = False @pytest.mark.asyncio async def test_write_read_lock_multiple_tasks(loop, fast_track): rwlock = RWLock(fast=fast_track) rl = rwlock.reader wl = rwlock.writer async def coro(): async with rl: assert not wl.locked assert rl.locked await asyncio.sleep(0.2, loop) > async with wl: ../../../tests/test_rwlock.py:493: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ aiorwlock/__init__.py:190: in __aenter__ await self.acquire() aiorwlock/__init__.py:234: in acquire await self._lock.acquire_write() aiorwlock/__init__.py:116: in acquire_write await self._yield_after_acquire(self._WL) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = , lock_type = 2 async def _yield_after_acquire(self, lock_type: int) -> None: if self._do_yield: try: > await asyncio.sleep(0.0, loop=self._loop) E TypeError: sleep() got an unexpected keyword argument 'loop' aiorwlock/__init__.py:58: TypeError ______________ test_read_context_manager[debug:false-slow-uvloop] ______________ loop = , fast_track = False @pytest.mark.asyncio async def test_read_context_manager(loop, fast_track): rwlock = RWLock(fast=fast_track) reader = rwlock.reader_lock assert not reader.locked > async with reader: ../../../tests/test_rwlock.py:516: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ aiorwlock/__init__.py:190: in __aenter__ await self.acquire() aiorwlock/__init__.py:215: in acquire await self._lock.acquire_read() aiorwlock/__init__.py:81: in acquire_read await self._yield_after_acquire(self._RL) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = , lock_type = 1 async def _yield_after_acquire(self, lock_type: int) -> None: if self._do_yield: try: > await asyncio.sleep(0.0, loop=self._loop) E TypeError: sleep() got an unexpected keyword argument 'loop' aiorwlock/__init__.py:58: TypeError _____________ test_write_context_manager[debug:false-slow-uvloop] ______________ loop = , fast_track = False @pytest.mark.asyncio async def test_write_context_manager(loop, fast_track): rwlock = RWLock(fast=fast_track) writer = rwlock.writer_lock assert not writer.locked > async with writer: ../../../tests/test_rwlock.py:525: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ aiorwlock/__init__.py:190: in __aenter__ await self.acquire() aiorwlock/__init__.py:234: in acquire await self._lock.acquire_write() aiorwlock/__init__.py:116: in acquire_write await self._yield_after_acquire(self._WL) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = , lock_type = 2 async def _yield_after_acquire(self, lock_type: int) -> None: if self._do_yield: try: > await asyncio.sleep(0.0, loop=self._loop) E TypeError: sleep() got an unexpected keyword argument 'loop' aiorwlock/__init__.py:58: TypeError ________________ test_await_read_lock[debug:false-slow-uvloop] _________________ loop = , fast_track = False @pytest.mark.asyncio async def test_await_read_lock(loop, fast_track): rwlock = RWLock(fast=fast_track) reader = rwlock.reader_lock assert not reader.locked > async with reader: ../../../tests/test_rwlock.py:534: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ aiorwlock/__init__.py:190: in __aenter__ await self.acquire() aiorwlock/__init__.py:215: in acquire await self._lock.acquire_read() aiorwlock/__init__.py:81: in acquire_read await self._yield_after_acquire(self._RL) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = , lock_type = 1 async def _yield_after_acquire(self, lock_type: int) -> None: if self._do_yield: try: > await asyncio.sleep(0.0, loop=self._loop) E TypeError: sleep() got an unexpected keyword argument 'loop' aiorwlock/__init__.py:58: TypeError ________________ test_await_write_lock[debug:false-slow-uvloop] ________________ loop = , fast_track = False @pytest.mark.asyncio async def test_await_write_lock(loop, fast_track): rwlock = RWLock(fast=fast_track) writer = rwlock.writer_lock assert not writer.locked > async with writer: ../../../tests/test_rwlock.py:543: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ aiorwlock/__init__.py:190: in __aenter__ await self.acquire() aiorwlock/__init__.py:234: in acquire await self._lock.acquire_write() aiorwlock/__init__.py:116: in acquire_write await self._yield_after_acquire(self._WL) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = , lock_type = 2 async def _yield_after_acquire(self, lock_type: int) -> None: if self._do_yield: try: > await asyncio.sleep(0.0, loop=self._loop) E TypeError: sleep() got an unexpected keyword argument 'loop' aiorwlock/__init__.py:58: TypeError __________________ test_many_readers[debug:false-slow-pyloop] __________________ loop = <_UnixSelectorEventLoop running=False closed=False debug=False> fast_track = False @pytest.mark.asyncio async def test_many_readers(loop, fast_track): rwlock = RWLock(fast=fast_track) N = 5 locked = [] nlocked = [] async def f(): await rwlock.reader_lock.acquire() try: locked.append(1) await _wait() nlocked.append(len(locked)) await _wait() locked.pop(-1) finally: rwlock.reader_lock.release() > await Bunch(f, N).wait_for_finished() ../../../tests/test_rwlock.py:138: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../../../tests/test_rwlock.py:41: in wait_for_finished await asyncio.gather(*self._futures) ../../../tests/test_rwlock.py:30: in task await f() ../../../tests/test_rwlock.py:128: in f await rwlock.reader_lock.acquire() aiorwlock/__init__.py:215: in acquire await self._lock.acquire_read() aiorwlock/__init__.py:81: in acquire_read await self._yield_after_acquire(self._RL) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = , lock_type = 1 async def _yield_after_acquire(self, lock_type: int) -> None: if self._do_yield: try: > await asyncio.sleep(0.0, loop=self._loop) E TypeError: sleep() got an unexpected keyword argument 'loop' aiorwlock/__init__.py:58: TypeError ________________ test_reader_recursion[debug:false-slow-pyloop] ________________ loop = <_UnixSelectorEventLoop running=False closed=False debug=False> fast_track = False @pytest.mark.asyncio async def test_reader_recursion(loop, fast_track): rwlock = RWLock(fast=fast_track) N = 5 locked = [] nlocked = [] async def f(): await rwlock.reader_lock.acquire() try: await rwlock.reader_lock.acquire() try: locked.append(1) await _wait() nlocked.append(len(locked)) await _wait() locked.pop(-1) finally: rwlock.reader_lock.release() finally: rwlock.reader_lock.release() > await Bunch(f, N).wait_for_finished() ../../../tests/test_rwlock.py:189: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../../../tests/test_rwlock.py:41: in wait_for_finished await asyncio.gather(*self._futures) ../../../tests/test_rwlock.py:30: in task await f() ../../../tests/test_rwlock.py:175: in f await rwlock.reader_lock.acquire() aiorwlock/__init__.py:215: in acquire await self._lock.acquire_read() aiorwlock/__init__.py:81: in acquire_read await self._yield_after_acquire(self._RL) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = , lock_type = 1 async def _yield_after_acquire(self, lock_type: int) -> None: if self._do_yield: try: > await asyncio.sleep(0.0, loop=self._loop) E TypeError: sleep() got an unexpected keyword argument 'loop' aiorwlock/__init__.py:58: TypeError ________________ test_writer_recursion[debug:false-slow-pyloop] ________________ loop = <_UnixSelectorEventLoop running=False closed=False debug=False> fast_track = False @pytest.mark.asyncio async def test_writer_recursion(loop, fast_track): rwlock = RWLock(fast=fast_track) N = 5 locked = [] nlocked = [] async def f(): await rwlock.writer_lock.acquire() try: await rwlock.writer_lock.acquire() try: locked.append(1) await _wait() nlocked.append(len(locked)) await _wait() locked.pop(-1) finally: rwlock.writer_lock.release() finally: rwlock.writer_lock.release() > await Bunch(f, N).wait_for_finished() ../../../tests/test_rwlock.py:215: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../../../tests/test_rwlock.py:41: in wait_for_finished await asyncio.gather(*self._futures) ../../../tests/test_rwlock.py:30: in task await f() ../../../tests/test_rwlock.py:201: in f await rwlock.writer_lock.acquire() aiorwlock/__init__.py:234: in acquire await self._lock.acquire_write() aiorwlock/__init__.py:116: in acquire_write await self._yield_after_acquire(self._WL) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = , lock_type = 2 async def _yield_after_acquire(self, lock_type: int) -> None: if self._do_yield: try: > await asyncio.sleep(0.0, loop=self._loop) E TypeError: sleep() got an unexpected keyword argument 'loop' aiorwlock/__init__.py:58: TypeError __________ test_writer_then_reader_recursion[debug:false-slow-pyloop] __________ loop = <_UnixSelectorEventLoop running=False closed=False debug=False> fast_track = False @pytest.mark.asyncio async def test_writer_then_reader_recursion(loop, fast_track): rwlock = RWLock(fast=fast_track) N = 5 locked = [] nlocked = [] async def f(): await rwlock.writer_lock.acquire() try: await rwlock.reader_lock.acquire() try: locked.append(1) await _wait() nlocked.append(len(locked)) await _wait() locked.pop(-1) finally: rwlock.reader_lock.release() finally: rwlock.writer_lock.release() > await Bunch(f, N).wait_for_finished() ../../../tests/test_rwlock.py:241: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../../../tests/test_rwlock.py:41: in wait_for_finished await asyncio.gather(*self._futures) ../../../tests/test_rwlock.py:30: in task await f() ../../../tests/test_rwlock.py:227: in f await rwlock.writer_lock.acquire() aiorwlock/__init__.py:234: in acquire await self._lock.acquire_write() aiorwlock/__init__.py:116: in acquire_write await self._yield_after_acquire(self._WL) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = , lock_type = 2 async def _yield_after_acquire(self, lock_type: int) -> None: if self._do_yield: try: > await asyncio.sleep(0.0, loop=self._loop) E TypeError: sleep() got an unexpected keyword argument 'loop' aiorwlock/__init__.py:58: TypeError ---------------------------- Captured log teardown ----------------------------- ERROR asyncio:base_events.py:1821 Task was destroyed but it is pending! task: .task() running at /build/reproducible-path/aiorwlock-1.0.0/tests/test_rwlock.py:30> wait_for= cb=[gather.._done_callback() at /usr/lib/python3.12/asyncio/tasks.py:767]> ERROR asyncio:base_events.py:1821 Task was destroyed but it is pending! task: .task() running at /build/reproducible-path/aiorwlock-1.0.0/tests/test_rwlock.py:30> wait_for= cb=[gather.._done_callback() at /usr/lib/python3.12/asyncio/tasks.py:767]> ERROR asyncio:base_events.py:1821 Task was destroyed but it is pending! task: .task() running at /build/reproducible-path/aiorwlock-1.0.0/tests/test_rwlock.py:30> wait_for= cb=[gather.._done_callback() at /usr/lib/python3.12/asyncio/tasks.py:767]> ERROR asyncio:base_events.py:1821 Task was destroyed but it is pending! task: .task() running at /build/reproducible-path/aiorwlock-1.0.0/tests/test_rwlock.py:30> wait_for= cb=[gather.._done_callback() at /usr/lib/python3.12/asyncio/tasks.py:767]> ________________ test_readers_writers[debug:false-slow-pyloop] _________________ loop = <_UnixSelectorEventLoop running=False closed=False debug=False> fast_track = False @pytest.mark.asyncio async def test_readers_writers(loop, fast_track): rwlock = RWLock(fast=fast_track) N = 5 rlocked = [] wlocked = [] nlocked = [] async def r(): await rwlock.reader_lock.acquire() try: rlocked.append(1) await _wait() nlocked.append((len(rlocked), len(wlocked))) await _wait() rlocked.pop(-1) finally: rwlock.reader_lock.release() async def w(): await rwlock.writer_lock.acquire() try: wlocked.append(1) await _wait() nlocked.append((len(rlocked), len(wlocked))) await _wait() wlocked.pop(-1) finally: rwlock.writer_lock.release() b1 = Bunch(r, N) b2 = Bunch(w, N) await asyncio.sleep(0.0001) > await b1.wait_for_finished() ../../../tests/test_rwlock.py:299: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../../../tests/test_rwlock.py:41: in wait_for_finished await asyncio.gather(*self._futures) ../../../tests/test_rwlock.py:30: in task await f() ../../../tests/test_rwlock.py:273: in r await rwlock.reader_lock.acquire() aiorwlock/__init__.py:215: in acquire await self._lock.acquire_read() aiorwlock/__init__.py:81: in acquire_read await self._yield_after_acquire(self._RL) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = , lock_type = 1 async def _yield_after_acquire(self, lock_type: int) -> None: if self._do_yield: try: > await asyncio.sleep(0.0, loop=self._loop) E TypeError: sleep() got an unexpected keyword argument 'loop' aiorwlock/__init__.py:58: TypeError ---------------------------- Captured log teardown ----------------------------- ERROR asyncio:base_events.py:1821 Task was destroyed but it is pending! task: .task() running at /build/reproducible-path/aiorwlock-1.0.0/tests/test_rwlock.py:30> wait_for= cb=[gather.._done_callback() at /usr/lib/python3.12/asyncio/tasks.py:767]> ERROR asyncio:base_events.py:1821 Task was destroyed but it is pending! task: .task() running at /build/reproducible-path/aiorwlock-1.0.0/tests/test_rwlock.py:30> wait_for= cb=[gather.._done_callback() at /usr/lib/python3.12/asyncio/tasks.py:767]> ERROR asyncio:base_events.py:1821 Task was destroyed but it is pending! task: .task() running at /build/reproducible-path/aiorwlock-1.0.0/tests/test_rwlock.py:30> wait_for= cb=[gather.._done_callback() at /usr/lib/python3.12/asyncio/tasks.py:767]> ERROR asyncio:base_events.py:1821 Task was destroyed but it is pending! task: .task() running at /build/reproducible-path/aiorwlock-1.0.0/tests/test_rwlock.py:30> wait_for= cb=[gather.._done_callback() at /usr/lib/python3.12/asyncio/tasks.py:767]> __________________ test_read_locked[debug:false-slow-pyloop] ___________________ loop = <_UnixSelectorEventLoop running=False closed=False debug=False> fast_track = False @pytest.mark.asyncio async def test_read_locked(loop, fast_track): rwlock = RWLock(fast=fast_track) assert not rwlock.reader_lock.locked > async with rwlock.reader_lock: ../../../tests/test_rwlock.py:469: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ aiorwlock/__init__.py:190: in __aenter__ await self.acquire() aiorwlock/__init__.py:215: in acquire await self._lock.acquire_read() aiorwlock/__init__.py:81: in acquire_read await self._yield_after_acquire(self._RL) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = , lock_type = 1 async def _yield_after_acquire(self, lock_type: int) -> None: if self._do_yield: try: > await asyncio.sleep(0.0, loop=self._loop) E TypeError: sleep() got an unexpected keyword argument 'loop' aiorwlock/__init__.py:58: TypeError __________________ test_write_locked[debug:false-slow-pyloop] __________________ loop = <_UnixSelectorEventLoop running=False closed=False debug=False> fast_track = False @pytest.mark.asyncio async def test_write_locked(loop, fast_track): rwlock = RWLock(fast=fast_track) assert not rwlock.writer_lock.locked > async with rwlock.writer_lock: ../../../tests/test_rwlock.py:477: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ aiorwlock/__init__.py:190: in __aenter__ await self.acquire() aiorwlock/__init__.py:234: in acquire await self._lock.acquire_write() aiorwlock/__init__.py:116: in acquire_write await self._yield_after_acquire(self._WL) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = , lock_type = 2 async def _yield_after_acquire(self, lock_type: int) -> None: if self._do_yield: try: > await asyncio.sleep(0.0, loop=self._loop) E TypeError: sleep() got an unexpected keyword argument 'loop' aiorwlock/__init__.py:58: TypeError _________ test_write_read_lock_multiple_tasks[debug:false-slow-pyloop] _________ loop = <_UnixSelectorEventLoop running=False closed=False debug=False> fast_track = False @pytest.mark.asyncio async def test_write_read_lock_multiple_tasks(loop, fast_track): rwlock = RWLock(fast=fast_track) rl = rwlock.reader wl = rwlock.writer async def coro(): async with rl: assert not wl.locked assert rl.locked await asyncio.sleep(0.2, loop) > async with wl: ../../../tests/test_rwlock.py:493: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ aiorwlock/__init__.py:190: in __aenter__ await self.acquire() aiorwlock/__init__.py:234: in acquire await self._lock.acquire_write() aiorwlock/__init__.py:116: in acquire_write await self._yield_after_acquire(self._WL) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = , lock_type = 2 async def _yield_after_acquire(self, lock_type: int) -> None: if self._do_yield: try: > await asyncio.sleep(0.0, loop=self._loop) E TypeError: sleep() got an unexpected keyword argument 'loop' aiorwlock/__init__.py:58: TypeError ______________ test_read_context_manager[debug:false-slow-pyloop] ______________ loop = <_UnixSelectorEventLoop running=False closed=False debug=False> fast_track = False @pytest.mark.asyncio async def test_read_context_manager(loop, fast_track): rwlock = RWLock(fast=fast_track) reader = rwlock.reader_lock assert not reader.locked > async with reader: ../../../tests/test_rwlock.py:516: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ aiorwlock/__init__.py:190: in __aenter__ await self.acquire() aiorwlock/__init__.py:215: in acquire await self._lock.acquire_read() aiorwlock/__init__.py:81: in acquire_read await self._yield_after_acquire(self._RL) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = , lock_type = 1 async def _yield_after_acquire(self, lock_type: int) -> None: if self._do_yield: try: > await asyncio.sleep(0.0, loop=self._loop) E TypeError: sleep() got an unexpected keyword argument 'loop' aiorwlock/__init__.py:58: TypeError _____________ test_write_context_manager[debug:false-slow-pyloop] ______________ loop = <_UnixSelectorEventLoop running=False closed=False debug=False> fast_track = False @pytest.mark.asyncio async def test_write_context_manager(loop, fast_track): rwlock = RWLock(fast=fast_track) writer = rwlock.writer_lock assert not writer.locked > async with writer: ../../../tests/test_rwlock.py:525: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ aiorwlock/__init__.py:190: in __aenter__ await self.acquire() aiorwlock/__init__.py:234: in acquire await self._lock.acquire_write() aiorwlock/__init__.py:116: in acquire_write await self._yield_after_acquire(self._WL) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = , lock_type = 2 async def _yield_after_acquire(self, lock_type: int) -> None: if self._do_yield: try: > await asyncio.sleep(0.0, loop=self._loop) E TypeError: sleep() got an unexpected keyword argument 'loop' aiorwlock/__init__.py:58: TypeError ________________ test_await_read_lock[debug:false-slow-pyloop] _________________ loop = <_UnixSelectorEventLoop running=False closed=False debug=False> fast_track = False @pytest.mark.asyncio async def test_await_read_lock(loop, fast_track): rwlock = RWLock(fast=fast_track) reader = rwlock.reader_lock assert not reader.locked > async with reader: ../../../tests/test_rwlock.py:534: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ aiorwlock/__init__.py:190: in __aenter__ await self.acquire() aiorwlock/__init__.py:215: in acquire await self._lock.acquire_read() aiorwlock/__init__.py:81: in acquire_read await self._yield_after_acquire(self._RL) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = , lock_type = 1 async def _yield_after_acquire(self, lock_type: int) -> None: if self._do_yield: try: > await asyncio.sleep(0.0, loop=self._loop) E TypeError: sleep() got an unexpected keyword argument 'loop' aiorwlock/__init__.py:58: TypeError ________________ test_await_write_lock[debug:false-slow-pyloop] ________________ loop = <_UnixSelectorEventLoop running=False closed=False debug=False> fast_track = False @pytest.mark.asyncio async def test_await_write_lock(loop, fast_track): rwlock = RWLock(fast=fast_track) writer = rwlock.writer_lock assert not writer.locked > async with writer: ../../../tests/test_rwlock.py:543: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ aiorwlock/__init__.py:190: in __aenter__ await self.acquire() aiorwlock/__init__.py:234: in acquire await self._lock.acquire_write() aiorwlock/__init__.py:116: in acquire_write await self._yield_after_acquire(self._WL) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = , lock_type = 2 async def _yield_after_acquire(self, lock_type: int) -> None: if self._do_yield: try: > await asyncio.sleep(0.0, loop=self._loop) E TypeError: sleep() got an unexpected keyword argument 'loop' aiorwlock/__init__.py:58: TypeError _____________ test_read_upgrade_write_release[debug:false-uvloop] ______________ loop = @pytest.mark.asyncio async def test_read_upgrade_write_release(loop): rwlock = RWLock() > await rwlock.writer_lock.acquire() ../../../tests/test_rwlock.py:145: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ aiorwlock/__init__.py:234: in acquire await self._lock.acquire_write() aiorwlock/__init__.py:116: in acquire_write await self._yield_after_acquire(self._WL) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = , lock_type = 2 async def _yield_after_acquire(self, lock_type: int) -> None: if self._do_yield: try: > await asyncio.sleep(0.0, loop=self._loop) E TypeError: sleep() got an unexpected keyword argument 'loop' aiorwlock/__init__.py:58: TypeError ________________ test_writer_recursion_fail[debug:false-uvloop] ________________ loop = @pytest.mark.asyncio async def test_writer_recursion_fail(loop): rwlock = RWLock() N = 5 locked = [] async def f(): await rwlock.reader_lock.acquire() try: with pytest.raises(RuntimeError): await rwlock.writer_lock.acquire() locked.append(1) finally: rwlock.reader_lock.release() > await Bunch(f, N).wait_for_finished() ../../../tests/test_rwlock.py:260: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../../../tests/test_rwlock.py:41: in wait_for_finished await asyncio.gather(*self._futures) ../../../tests/test_rwlock.py:30: in task await f() ../../../tests/test_rwlock.py:252: in f await rwlock.reader_lock.acquire() aiorwlock/__init__.py:215: in acquire await self._lock.acquire_read() aiorwlock/__init__.py:81: in acquire_read await self._yield_after_acquire(self._RL) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = , lock_type = 1 async def _yield_after_acquire(self, lock_type: int) -> None: if self._do_yield: try: > await asyncio.sleep(0.0, loop=self._loop) E TypeError: sleep() got an unexpected keyword argument 'loop' aiorwlock/__init__.py:58: TypeError ___________________ test_writer_success[debug:false-uvloop] ____________________ loop = @pytest.mark.asyncio async def test_writer_success(loop): # Verify that a writer can get access rwlock = RWLock() N = 5 reads = 0 writes = 0 async def r(): # read until we achive write successes nonlocal reads, writes while writes < 2: # print("current pre-reads", reads) await rwlock.reader_lock.acquire() try: reads += 1 # print("current reads", reads) finally: rwlock.reader_lock.release() async def w(): nonlocal reads, writes while reads == 0: await _wait() for _ in range(2): await _wait() # print("current pre-writes", reads) await rwlock.writer_lock.acquire() try: writes += 1 # print("current writes", reads) finally: rwlock.writer_lock.release() b1 = Bunch(r, N) b2 = Bunch(w, 1) > await b1.wait_for_finished() ../../../tests/test_rwlock.py:356: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../../../tests/test_rwlock.py:41: in wait_for_finished await asyncio.gather(*self._futures) ../../../tests/test_rwlock.py:30: in task await f() ../../../tests/test_rwlock.py:330: in r await rwlock.reader_lock.acquire() aiorwlock/__init__.py:215: in acquire await self._lock.acquire_read() aiorwlock/__init__.py:81: in acquire_read await self._yield_after_acquire(self._RL) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = , lock_type = 1 async def _yield_after_acquire(self, lock_type: int) -> None: if self._do_yield: try: > await asyncio.sleep(0.0, loop=self._loop) E TypeError: sleep() got an unexpected keyword argument 'loop' aiorwlock/__init__.py:58: TypeError ____________ test_writer_success_with_statement[debug:false-uvloop] ____________ loop = @pytest.mark.asyncio async def test_writer_success_with_statement(loop): # Verify that a writer can get access rwlock = RWLock() N = 5 reads = 0 writes = 0 async def r(): # read until we achive write successes nonlocal reads, writes while writes < 2: # print("current pre-reads", reads) async with rwlock.reader_lock: reads += 1 # print("current reads", reads) async def w(): nonlocal reads, writes while reads == 0: await _wait() for _ in range(2): await _wait() # print("current pre-writes", reads) async with rwlock.writer_lock: writes += 1 b1 = Bunch(r, N) b2 = Bunch(w, 1) > await b1.wait_for_finished() ../../../tests/test_rwlock.py:442: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../../../tests/test_rwlock.py:41: in wait_for_finished await asyncio.gather(*self._futures) ../../../tests/test_rwlock.py:30: in task await f() ../../../tests/test_rwlock.py:423: in r async with rwlock.reader_lock: aiorwlock/__init__.py:190: in __aenter__ await self.acquire() aiorwlock/__init__.py:215: in acquire await self._lock.acquire_read() aiorwlock/__init__.py:81: in acquire_read await self._yield_after_acquire(self._RL) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = , lock_type = 1 async def _yield_after_acquire(self, lock_type: int) -> None: if self._do_yield: try: > await asyncio.sleep(0.0, loop=self._loop) E TypeError: sleep() got an unexpected keyword argument 'loop' aiorwlock/__init__.py:58: TypeError _____________ test_read_upgrade_write_release[debug:false-pyloop] ______________ loop = <_UnixSelectorEventLoop running=False closed=False debug=False> @pytest.mark.asyncio async def test_read_upgrade_write_release(loop): rwlock = RWLock() > await rwlock.writer_lock.acquire() ../../../tests/test_rwlock.py:145: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ aiorwlock/__init__.py:234: in acquire await self._lock.acquire_write() aiorwlock/__init__.py:116: in acquire_write await self._yield_after_acquire(self._WL) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = , lock_type = 2 async def _yield_after_acquire(self, lock_type: int) -> None: if self._do_yield: try: > await asyncio.sleep(0.0, loop=self._loop) E TypeError: sleep() got an unexpected keyword argument 'loop' aiorwlock/__init__.py:58: TypeError ________________ test_writer_recursion_fail[debug:false-pyloop] ________________ loop = <_UnixSelectorEventLoop running=False closed=False debug=False> @pytest.mark.asyncio async def test_writer_recursion_fail(loop): rwlock = RWLock() N = 5 locked = [] async def f(): await rwlock.reader_lock.acquire() try: with pytest.raises(RuntimeError): await rwlock.writer_lock.acquire() locked.append(1) finally: rwlock.reader_lock.release() > await Bunch(f, N).wait_for_finished() ../../../tests/test_rwlock.py:260: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../../../tests/test_rwlock.py:41: in wait_for_finished await asyncio.gather(*self._futures) ../../../tests/test_rwlock.py:30: in task await f() ../../../tests/test_rwlock.py:252: in f await rwlock.reader_lock.acquire() aiorwlock/__init__.py:215: in acquire await self._lock.acquire_read() aiorwlock/__init__.py:81: in acquire_read await self._yield_after_acquire(self._RL) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = , lock_type = 1 async def _yield_after_acquire(self, lock_type: int) -> None: if self._do_yield: try: > await asyncio.sleep(0.0, loop=self._loop) E TypeError: sleep() got an unexpected keyword argument 'loop' aiorwlock/__init__.py:58: TypeError ___________________ test_writer_success[debug:false-pyloop] ____________________ loop = <_UnixSelectorEventLoop running=False closed=False debug=False> @pytest.mark.asyncio async def test_writer_success(loop): # Verify that a writer can get access rwlock = RWLock() N = 5 reads = 0 writes = 0 async def r(): # read until we achive write successes nonlocal reads, writes while writes < 2: # print("current pre-reads", reads) await rwlock.reader_lock.acquire() try: reads += 1 # print("current reads", reads) finally: rwlock.reader_lock.release() async def w(): nonlocal reads, writes while reads == 0: await _wait() for _ in range(2): await _wait() # print("current pre-writes", reads) await rwlock.writer_lock.acquire() try: writes += 1 # print("current writes", reads) finally: rwlock.writer_lock.release() b1 = Bunch(r, N) b2 = Bunch(w, 1) > await b1.wait_for_finished() ../../../tests/test_rwlock.py:356: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../../../tests/test_rwlock.py:41: in wait_for_finished await asyncio.gather(*self._futures) ../../../tests/test_rwlock.py:30: in task await f() ../../../tests/test_rwlock.py:330: in r await rwlock.reader_lock.acquire() aiorwlock/__init__.py:215: in acquire await self._lock.acquire_read() aiorwlock/__init__.py:81: in acquire_read await self._yield_after_acquire(self._RL) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = , lock_type = 1 async def _yield_after_acquire(self, lock_type: int) -> None: if self._do_yield: try: > await asyncio.sleep(0.0, loop=self._loop) E TypeError: sleep() got an unexpected keyword argument 'loop' aiorwlock/__init__.py:58: TypeError ____________ test_writer_success_with_statement[debug:false-pyloop] ____________ loop = <_UnixSelectorEventLoop running=False closed=False debug=False> @pytest.mark.asyncio async def test_writer_success_with_statement(loop): # Verify that a writer can get access rwlock = RWLock() N = 5 reads = 0 writes = 0 async def r(): # read until we achive write successes nonlocal reads, writes while writes < 2: # print("current pre-reads", reads) async with rwlock.reader_lock: reads += 1 # print("current reads", reads) async def w(): nonlocal reads, writes while reads == 0: await _wait() for _ in range(2): await _wait() # print("current pre-writes", reads) async with rwlock.writer_lock: writes += 1 b1 = Bunch(r, N) b2 = Bunch(w, 1) > await b1.wait_for_finished() ../../../tests/test_rwlock.py:442: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../../../tests/test_rwlock.py:41: in wait_for_finished await asyncio.gather(*self._futures) ../../../tests/test_rwlock.py:30: in task await f() ../../../tests/test_rwlock.py:423: in r async with rwlock.reader_lock: aiorwlock/__init__.py:190: in __aenter__ await self.acquire() aiorwlock/__init__.py:215: in acquire await self._lock.acquire_read() aiorwlock/__init__.py:81: in acquire_read await self._yield_after_acquire(self._RL) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = , lock_type = 1 async def _yield_after_acquire(self, lock_type: int) -> None: if self._do_yield: try: > await asyncio.sleep(0.0, loop=self._loop) E TypeError: sleep() got an unexpected keyword argument 'loop' aiorwlock/__init__.py:58: TypeError =========================== short test summary info ============================ FAILED ../../../tests/test_corner_cases.py::test_get_write_then_read[debug:true-pyloop] FAILED ../../../tests/test_corner_cases.py::test_get_write_then_read_and_write_again[debug:true-pyloop] FAILED ../../../tests/test_corner_cases.py::test_writers_deadlock[debug:true-pyloop] FAILED ../../../tests/test_corner_cases.py::test_readers_cancel[debug:true-pyloop] FAILED ../../../tests/test_corner_cases.py::test_canceled_inside_acquire[debug:true-pyloop] FAILED ../../../tests/test_corner_cases.py::test_get_write_then_read[debug:true-uvloop] FAILED ../../../tests/test_corner_cases.py::test_get_write_then_read_and_write_again[debug:true-uvloop] FAILED ../../../tests/test_corner_cases.py::test_writers_deadlock[debug:true-uvloop] FAILED ../../../tests/test_corner_cases.py::test_readers_cancel[debug:true-uvloop] FAILED ../../../tests/test_corner_cases.py::test_canceled_inside_acquire[debug:true-uvloop] FAILED ../../../tests/test_rwlock.py::test_repr[debug:true-pyloop] - TypeErro... FAILED ../../../tests/test_rwlock.py::test_many_readers[debug:true-fast-uvloop] FAILED ../../../tests/test_rwlock.py::test_reader_recursion[debug:true-fast-uvloop] FAILED ../../../tests/test_rwlock.py::test_writer_recursion[debug:true-fast-uvloop] FAILED ../../../tests/test_rwlock.py::test_writer_then_reader_recursion[debug:true-fast-uvloop] FAILED ../../../tests/test_rwlock.py::test_readers_writers[debug:true-fast-uvloop] FAILED ../../../tests/test_rwlock.py::test_repr[debug:true-uvloop] - TypeErro... FAILED ../../../tests/test_rwlock.py::test_many_readers[debug:true-slow-uvloop] FAILED ../../../tests/test_rwlock.py::test_reader_recursion[debug:true-slow-uvloop] FAILED ../../../tests/test_rwlock.py::test_writer_recursion[debug:true-slow-uvloop] FAILED ../../../tests/test_rwlock.py::test_writer_then_reader_recursion[debug:true-slow-uvloop] FAILED ../../../tests/test_rwlock.py::test_readers_writers[debug:true-slow-uvloop] FAILED ../../../tests/test_rwlock.py::test_read_locked[debug:true-slow-uvloop] FAILED ../../../tests/test_rwlock.py::test_write_locked[debug:true-slow-uvloop] FAILED ../../../tests/test_rwlock.py::test_write_read_lock_multiple_tasks[debug:true-slow-uvloop] FAILED ../../../tests/test_rwlock.py::test_read_context_manager[debug:true-slow-uvloop] FAILED ../../../tests/test_rwlock.py::test_write_context_manager[debug:true-slow-uvloop] FAILED ../../../tests/test_rwlock.py::test_await_read_lock[debug:true-slow-uvloop] FAILED ../../../tests/test_rwlock.py::test_await_write_lock[debug:true-slow-uvloop] FAILED ../../../tests/test_rwlock.py::test_many_readers[debug:true-slow-pyloop] FAILED ../../../tests/test_rwlock.py::test_reader_recursion[debug:true-slow-pyloop] FAILED ../../../tests/test_rwlock.py::test_writer_recursion[debug:true-slow-pyloop] FAILED ../../../tests/test_rwlock.py::test_writer_then_reader_recursion[debug:true-slow-pyloop] FAILED ../../../tests/test_rwlock.py::test_readers_writers[debug:true-slow-pyloop] FAILED ../../../tests/test_rwlock.py::test_read_locked[debug:true-slow-pyloop] FAILED ../../../tests/test_rwlock.py::test_write_locked[debug:true-slow-pyloop] FAILED ../../../tests/test_rwlock.py::test_write_read_lock_multiple_tasks[debug:true-slow-pyloop] FAILED ../../../tests/test_rwlock.py::test_read_context_manager[debug:true-slow-pyloop] FAILED ../../../tests/test_rwlock.py::test_write_context_manager[debug:true-slow-pyloop] FAILED ../../../tests/test_rwlock.py::test_await_read_lock[debug:true-slow-pyloop] FAILED ../../../tests/test_rwlock.py::test_await_write_lock[debug:true-slow-pyloop] FAILED ../../../tests/test_rwlock.py::test_read_upgrade_write_release[debug:true-uvloop] FAILED ../../../tests/test_rwlock.py::test_writer_recursion_fail[debug:true-uvloop] FAILED ../../../tests/test_rwlock.py::test_writer_success[debug:true-uvloop] FAILED ../../../tests/test_rwlock.py::test_writer_success_fast[debug:true-uvloop] FAILED ../../../tests/test_rwlock.py::test_writer_success_with_statement[debug:true-uvloop] FAILED ../../../tests/test_rwlock.py::test_read_upgrade_write_release[debug:true-pyloop] FAILED ../../../tests/test_rwlock.py::test_writer_recursion_fail[debug:true-pyloop] FAILED ../../../tests/test_rwlock.py::test_writer_success[debug:true-pyloop] FAILED ../../../tests/test_rwlock.py::test_writer_success_fast[debug:true-pyloop] FAILED ../../../tests/test_rwlock.py::test_writer_success_with_statement[debug:true-pyloop] FAILED ../../../tests/test_corner_cases.py::test_get_write_then_read[debug:false-pyloop] FAILED ../../../tests/test_corner_cases.py::test_get_write_then_read_and_write_again[debug:false-pyloop] FAILED ../../../tests/test_corner_cases.py::test_writers_deadlock[debug:false-pyloop] FAILED ../../../tests/test_corner_cases.py::test_readers_cancel[debug:false-pyloop] FAILED ../../../tests/test_corner_cases.py::test_canceled_inside_acquire[debug:false-pyloop] FAILED ../../../tests/test_corner_cases.py::test_get_write_then_read[debug:false-uvloop] FAILED ../../../tests/test_corner_cases.py::test_get_write_then_read_and_write_again[debug:false-uvloop] FAILED ../../../tests/test_corner_cases.py::test_writers_deadlock[debug:false-uvloop] FAILED ../../../tests/test_corner_cases.py::test_readers_cancel[debug:false-uvloop] FAILED ../../../tests/test_corner_cases.py::test_canceled_inside_acquire[debug:false-uvloop] FAILED ../../../tests/test_rwlock.py::test_repr[debug:false-pyloop] - TypeErr... FAILED ../../../tests/test_rwlock.py::test_repr[debug:false-uvloop] - TypeErr... FAILED ../../../tests/test_rwlock.py::test_many_readers[debug:false-slow-uvloop] FAILED ../../../tests/test_rwlock.py::test_reader_recursion[debug:false-slow-uvloop] FAILED ../../../tests/test_rwlock.py::test_writer_recursion[debug:false-slow-uvloop] FAILED ../../../tests/test_rwlock.py::test_writer_then_reader_recursion[debug:false-slow-uvloop] FAILED ../../../tests/test_rwlock.py::test_readers_writers[debug:false-slow-uvloop] FAILED ../../../tests/test_rwlock.py::test_read_locked[debug:false-slow-uvloop] FAILED ../../../tests/test_rwlock.py::test_write_locked[debug:false-slow-uvloop] FAILED ../../../tests/test_rwlock.py::test_write_read_lock_multiple_tasks[debug:false-slow-uvloop] FAILED ../../../tests/test_rwlock.py::test_read_context_manager[debug:false-slow-uvloop] FAILED ../../../tests/test_rwlock.py::test_write_context_manager[debug:false-slow-uvloop] FAILED ../../../tests/test_rwlock.py::test_await_read_lock[debug:false-slow-uvloop] FAILED ../../../tests/test_rwlock.py::test_await_write_lock[debug:false-slow-uvloop] FAILED ../../../tests/test_rwlock.py::test_many_readers[debug:false-slow-pyloop] FAILED ../../../tests/test_rwlock.py::test_reader_recursion[debug:false-slow-pyloop] FAILED ../../../tests/test_rwlock.py::test_writer_recursion[debug:false-slow-pyloop] FAILED ../../../tests/test_rwlock.py::test_writer_then_reader_recursion[debug:false-slow-pyloop] FAILED ../../../tests/test_rwlock.py::test_readers_writers[debug:false-slow-pyloop] FAILED ../../../tests/test_rwlock.py::test_read_locked[debug:false-slow-pyloop] FAILED ../../../tests/test_rwlock.py::test_write_locked[debug:false-slow-pyloop] FAILED ../../../tests/test_rwlock.py::test_write_read_lock_multiple_tasks[debug:false-slow-pyloop] FAILED ../../../tests/test_rwlock.py::test_read_context_manager[debug:false-slow-pyloop] FAILED ../../../tests/test_rwlock.py::test_write_context_manager[debug:false-slow-pyloop] FAILED ../../../tests/test_rwlock.py::test_await_read_lock[debug:false-slow-pyloop] FAILED ../../../tests/test_rwlock.py::test_await_write_lock[debug:false-slow-pyloop] FAILED ../../../tests/test_rwlock.py::test_read_upgrade_write_release[debug:false-uvloop] FAILED ../../../tests/test_rwlock.py::test_writer_recursion_fail[debug:false-uvloop] FAILED ../../../tests/test_rwlock.py::test_writer_success[debug:false-uvloop] FAILED ../../../tests/test_rwlock.py::test_writer_success_with_statement[debug:false-uvloop] FAILED ../../../tests/test_rwlock.py::test_read_upgrade_write_release[debug:false-pyloop] FAILED ../../../tests/test_rwlock.py::test_writer_recursion_fail[debug:false-pyloop] FAILED ../../../tests/test_rwlock.py::test_writer_success[debug:false-pyloop] FAILED ../../../tests/test_rwlock.py::test_writer_success_with_statement[debug:false-pyloop] ERROR ../../../tests/test_rwlock.py::test_ctor_deprecated_implicit_not_running[debug:true-pyloop] ERROR ../../../tests/test_rwlock.py::test_ctor_deprecated_explicit_non_running[debug:true-pyloop] ERROR ../../../tests/test_rwlock.py::test_ctor_loop_deprecated_arg[debug:true-pyloop] ERROR ../../../tests/test_rwlock.py::test_ctor_loop_reader[debug:true-pyloop] ERROR ../../../tests/test_rwlock.py::test_ctor_noloop_reader[debug:true-pyloop] ERROR ../../../tests/test_rwlock.py::test_ctor_loop_writer[debug:true-pyloop] ERROR ../../../tests/test_rwlock.py::test_ctor_noloop_writer[debug:true-pyloop] ERROR ../../../tests/test_rwlock.py::test_repr[debug:true-pyloop] - pytest.Py... ERROR ../../../tests/test_rwlock.py::test_release_unlocked[debug:true-pyloop] ERROR ../../../tests/test_rwlock.py::test_many_readers[debug:true-fast-pyloop] ERROR ../../../tests/test_rwlock.py::test_reader_recursion[debug:true-fast-pyloop] ERROR ../../../tests/test_rwlock.py::test_writer_recursion[debug:true-fast-pyloop] ERROR ../../../tests/test_rwlock.py::test_writer_then_reader_recursion[debug:true-fast-pyloop] ERROR ../../../tests/test_rwlock.py::test_readers_writers[debug:true-fast-pyloop] ERROR ../../../tests/test_rwlock.py::test_raise_error_on_with_for_reader_lock[debug:true-fast-pyloop] ERROR ../../../tests/test_rwlock.py::test_raise_error_on_with_for_writer_lock[debug:true-fast-pyloop] ERROR ../../../tests/test_rwlock.py::test_read_locked[debug:true-fast-pyloop] ERROR ../../../tests/test_rwlock.py::test_write_locked[debug:true-fast-pyloop] ERROR ../../../tests/test_rwlock.py::test_write_read_lock_multiple_tasks[debug:true-fast-pyloop] ERROR ../../../tests/test_rwlock.py::test_read_context_manager[debug:true-fast-pyloop] ERROR ../../../tests/test_rwlock.py::test_write_context_manager[debug:true-fast-pyloop] ERROR ../../../tests/test_rwlock.py::test_await_read_lock[debug:true-fast-pyloop] ERROR ../../../tests/test_rwlock.py::test_await_write_lock[debug:true-fast-pyloop] ERROR ../../../tests/test_rwlock.py::test_raise_error_on_with_for_reader_lock[debug:true-fast-uvloop] ERROR ../../../tests/test_rwlock.py::test_raise_error_on_with_for_writer_lock[debug:true-fast-uvloop] ERROR ../../../tests/test_rwlock.py::test_read_locked[debug:true-fast-uvloop] ERROR ../../../tests/test_rwlock.py::test_write_locked[debug:true-fast-uvloop] ERROR ../../../tests/test_rwlock.py::test_write_read_lock_multiple_tasks[debug:true-fast-uvloop] ERROR ../../../tests/test_rwlock.py::test_read_context_manager[debug:true-fast-uvloop] ERROR ../../../tests/test_rwlock.py::test_write_context_manager[debug:true-fast-uvloop] ERROR ../../../tests/test_rwlock.py::test_await_read_lock[debug:true-fast-uvloop] ERROR ../../../tests/test_rwlock.py::test_await_write_lock[debug:true-fast-uvloop] ERROR ../../../tests/test_rwlock.py::test_ctor_deprecated_implicit_not_running[debug:true-uvloop] ERROR ../../../tests/test_rwlock.py::test_ctor_deprecated_explicit_non_running[debug:true-uvloop] ERROR ../../../tests/test_rwlock.py::test_ctor_loop_deprecated_arg[debug:true-uvloop] ERROR ../../../tests/test_rwlock.py::test_ctor_loop_reader[debug:true-uvloop] ERROR ../../../tests/test_rwlock.py::test_ctor_noloop_reader[debug:true-uvloop] ERROR ../../../tests/test_rwlock.py::test_ctor_loop_writer[debug:true-uvloop] ERROR ../../../tests/test_rwlock.py::test_ctor_noloop_writer[debug:true-uvloop] ERROR ../../../tests/test_rwlock.py::test_repr[debug:true-uvloop] - pytest.Py... ERROR ../../../tests/test_rwlock.py::test_release_unlocked[debug:true-uvloop] ERROR ../../../tests/test_rwlock.py::test_many_readers[debug:true-slow-uvloop] ERROR ../../../tests/test_rwlock.py::test_reader_recursion[debug:true-slow-uvloop] ERROR ../../../tests/test_rwlock.py::test_writer_recursion[debug:true-slow-uvloop] ERROR ../../../tests/test_rwlock.py::test_writer_then_reader_recursion[debug:true-slow-uvloop] ERROR ../../../tests/test_rwlock.py::test_readers_writers[debug:true-slow-uvloop] ERROR ../../../tests/test_rwlock.py::test_raise_error_on_with_for_reader_lock[debug:true-slow-uvloop] ERROR ../../../tests/test_rwlock.py::test_raise_error_on_with_for_writer_lock[debug:true-slow-uvloop] ERROR ../../../tests/test_rwlock.py::test_read_locked[debug:true-slow-uvloop] ERROR ../../../tests/test_rwlock.py::test_write_locked[debug:true-slow-uvloop] ERROR ../../../tests/test_rwlock.py::test_write_read_lock_multiple_tasks[debug:true-slow-uvloop] ERROR ../../../tests/test_rwlock.py::test_read_context_manager[debug:true-slow-uvloop] ERROR ../../../tests/test_rwlock.py::test_write_context_manager[debug:true-slow-uvloop] ERROR ../../../tests/test_rwlock.py::test_await_read_lock[debug:true-slow-uvloop] ERROR ../../../tests/test_rwlock.py::test_await_write_lock[debug:true-slow-uvloop] ERROR ../../../tests/test_rwlock.py::test_raise_error_on_with_for_reader_lock[debug:true-slow-pyloop] ERROR ../../../tests/test_rwlock.py::test_raise_error_on_with_for_writer_lock[debug:true-slow-pyloop] ERROR ../../../tests/test_rwlock.py::test_read_locked[debug:true-slow-pyloop] ERROR ../../../tests/test_rwlock.py::test_write_locked[debug:true-slow-pyloop] ERROR ../../../tests/test_rwlock.py::test_write_read_lock_multiple_tasks[debug:true-slow-pyloop] ERROR ../../../tests/test_rwlock.py::test_read_context_manager[debug:true-slow-pyloop] ERROR ../../../tests/test_rwlock.py::test_write_context_manager[debug:true-slow-pyloop] ERROR ../../../tests/test_rwlock.py::test_await_read_lock[debug:true-slow-pyloop] ERROR ../../../tests/test_rwlock.py::test_await_write_lock[debug:true-slow-pyloop] ERROR ../../../tests/test_rwlock.py::test_current_task[debug:true-uvloop] - p... ERROR ../../../tests/test_rwlock.py::test_current_task[debug:true-pyloop] - p... ERROR ../../../tests/test_rwlock.py::test_ctor_deprecated_implicit_not_running[debug:false-pyloop] ERROR ../../../tests/test_rwlock.py::test_ctor_deprecated_explicit_non_running[debug:false-pyloop] ERROR ../../../tests/test_rwlock.py::test_ctor_loop_deprecated_arg[debug:false-pyloop] ERROR ../../../tests/test_rwlock.py::test_ctor_loop_reader[debug:false-pyloop] ERROR ../../../tests/test_rwlock.py::test_ctor_noloop_reader[debug:false-pyloop] ERROR ../../../tests/test_rwlock.py::test_ctor_loop_writer[debug:false-pyloop] ERROR ../../../tests/test_rwlock.py::test_ctor_noloop_writer[debug:false-pyloop] ERROR ../../../tests/test_rwlock.py::test_repr[debug:false-pyloop] - pytest.P... ERROR ../../../tests/test_rwlock.py::test_release_unlocked[debug:false-pyloop] ERROR ../../../tests/test_rwlock.py::test_many_readers[debug:false-fast-pyloop] ERROR ../../../tests/test_rwlock.py::test_reader_recursion[debug:false-fast-pyloop] ERROR ../../../tests/test_rwlock.py::test_writer_recursion[debug:false-fast-pyloop] ERROR ../../../tests/test_rwlock.py::test_writer_then_reader_recursion[debug:false-fast-pyloop] ERROR ../../../tests/test_rwlock.py::test_readers_writers[debug:false-fast-pyloop] ERROR ../../../tests/test_rwlock.py::test_raise_error_on_with_for_reader_lock[debug:false-fast-pyloop] ERROR ../../../tests/test_rwlock.py::test_raise_error_on_with_for_writer_lock[debug:false-fast-pyloop] ERROR ../../../tests/test_rwlock.py::test_read_locked[debug:false-fast-pyloop] ERROR ../../../tests/test_rwlock.py::test_write_locked[debug:false-fast-pyloop] ERROR ../../../tests/test_rwlock.py::test_write_read_lock_multiple_tasks[debug:false-fast-pyloop] ERROR ../../../tests/test_rwlock.py::test_read_context_manager[debug:false-fast-pyloop] ERROR ../../../tests/test_rwlock.py::test_write_context_manager[debug:false-fast-pyloop] ERROR ../../../tests/test_rwlock.py::test_await_read_lock[debug:false-fast-pyloop] ERROR ../../../tests/test_rwlock.py::test_await_write_lock[debug:false-fast-pyloop] ERROR ../../../tests/test_rwlock.py::test_many_readers[debug:false-fast-uvloop] ERROR ../../../tests/test_rwlock.py::test_reader_recursion[debug:false-fast-uvloop] ERROR ../../../tests/test_rwlock.py::test_writer_recursion[debug:false-fast-uvloop] ERROR ../../../tests/test_rwlock.py::test_writer_then_reader_recursion[debug:false-fast-uvloop] ERROR ../../../tests/test_rwlock.py::test_readers_writers[debug:false-fast-uvloop] ERROR ../../../tests/test_rwlock.py::test_raise_error_on_with_for_reader_lock[debug:false-fast-uvloop] ERROR ../../../tests/test_rwlock.py::test_raise_error_on_with_for_writer_lock[debug:false-fast-uvloop] ERROR ../../../tests/test_rwlock.py::test_read_locked[debug:false-fast-uvloop] ERROR ../../../tests/test_rwlock.py::test_write_locked[debug:false-fast-uvloop] ERROR ../../../tests/test_rwlock.py::test_write_read_lock_multiple_tasks[debug:false-fast-uvloop] ERROR ../../../tests/test_rwlock.py::test_read_context_manager[debug:false-fast-uvloop] ERROR ../../../tests/test_rwlock.py::test_write_context_manager[debug:false-fast-uvloop] ERROR ../../../tests/test_rwlock.py::test_await_read_lock[debug:false-fast-uvloop] ERROR ../../../tests/test_rwlock.py::test_await_write_lock[debug:false-fast-uvloop] ERROR ../../../tests/test_rwlock.py::test_ctor_deprecated_implicit_not_running[debug:false-uvloop] ERROR ../../../tests/test_rwlock.py::test_ctor_deprecated_explicit_non_running[debug:false-uvloop] ERROR ../../../tests/test_rwlock.py::test_ctor_loop_deprecated_arg[debug:false-uvloop] ERROR ../../../tests/test_rwlock.py::test_ctor_loop_reader[debug:false-uvloop] ERROR ../../../tests/test_rwlock.py::test_ctor_noloop_reader[debug:false-uvloop] ERROR ../../../tests/test_rwlock.py::test_ctor_loop_writer[debug:false-uvloop] ERROR ../../../tests/test_rwlock.py::test_ctor_noloop_writer[debug:false-uvloop] ERROR ../../../tests/test_rwlock.py::test_repr[debug:false-uvloop] - pytest.P... ERROR ../../../tests/test_rwlock.py::test_release_unlocked[debug:false-uvloop] ERROR ../../../tests/test_rwlock.py::test_many_readers[debug:false-slow-uvloop] ERROR ../../../tests/test_rwlock.py::test_reader_recursion[debug:false-slow-uvloop] ERROR ../../../tests/test_rwlock.py::test_writer_recursion[debug:false-slow-uvloop] ERROR ../../../tests/test_rwlock.py::test_writer_then_reader_recursion[debug:false-slow-uvloop] ERROR ../../../tests/test_rwlock.py::test_readers_writers[debug:false-slow-uvloop] ERROR ../../../tests/test_rwlock.py::test_raise_error_on_with_for_reader_lock[debug:false-slow-uvloop] ERROR ../../../tests/test_rwlock.py::test_raise_error_on_with_for_writer_lock[debug:false-slow-uvloop] ERROR ../../../tests/test_rwlock.py::test_read_locked[debug:false-slow-uvloop] ERROR ../../../tests/test_rwlock.py::test_write_locked[debug:false-slow-uvloop] ERROR ../../../tests/test_rwlock.py::test_write_read_lock_multiple_tasks[debug:false-slow-uvloop] ERROR ../../../tests/test_rwlock.py::test_read_context_manager[debug:false-slow-uvloop] ERROR ../../../tests/test_rwlock.py::test_write_context_manager[debug:false-slow-uvloop] ERROR ../../../tests/test_rwlock.py::test_await_read_lock[debug:false-slow-uvloop] ERROR ../../../tests/test_rwlock.py::test_await_write_lock[debug:false-slow-uvloop] ERROR ../../../tests/test_rwlock.py::test_raise_error_on_with_for_reader_lock[debug:false-slow-pyloop] ERROR ../../../tests/test_rwlock.py::test_raise_error_on_with_for_writer_lock[debug:false-slow-pyloop] ERROR ../../../tests/test_rwlock.py::test_read_locked[debug:false-slow-pyloop] ERROR ../../../tests/test_rwlock.py::test_write_locked[debug:false-slow-pyloop] ERROR ../../../tests/test_rwlock.py::test_write_read_lock_multiple_tasks[debug:false-slow-pyloop] ERROR ../../../tests/test_rwlock.py::test_read_context_manager[debug:false-slow-pyloop] ERROR ../../../tests/test_rwlock.py::test_write_context_manager[debug:false-slow-pyloop] ERROR ../../../tests/test_rwlock.py::test_await_read_lock[debug:false-slow-pyloop] ERROR ../../../tests/test_rwlock.py::test_await_write_lock[debug:false-slow-pyloop] ERROR ../../../tests/test_rwlock.py::test_writer_success_fast[debug:false-uvloop] ERROR ../../../tests/test_rwlock.py::test_writer_success_with_statement[debug:false-uvloop] ERROR ../../../tests/test_rwlock.py::test_current_task[debug:false-uvloop] - ... ERROR ../../../tests/test_rwlock.py::test_writer_success_fast[debug:false-pyloop] ERROR ../../../tests/test_rwlock.py::test_writer_success_with_statement[debug:false-pyloop] ERROR ../../../tests/test_rwlock.py::test_current_task[debug:false-pyloop] - ... ================== 95 failed, 97 passed, 141 errors in 22.33s ================== E: pybuild pybuild:389: test: plugin distutils failed with: exit code=1: cd /build/reproducible-path/aiorwlock-1.0.0/.pybuild/cpython3_3.12_aiorwlock/build; python3.12 -m pytest {dir}/tests I: pybuild base:311: cd /build/reproducible-path/aiorwlock-1.0.0/.pybuild/cpython3_3.11_aiorwlock/build; python3.11 -m pytest /build/reproducible-path/aiorwlock-1.0.0/tests ============================= test session starts ============================== platform linux -- Python 3.11.9, pytest-8.2.1, pluggy-1.5.0 rootdir: /build/reproducible-path/aiorwlock-1.0.0 configfile: setup.cfg plugins: asyncio-0.20.3 asyncio: mode=Mode.STRICT collected 192 items ../../../tests/test_corner_cases.py FFFFFFFFFF [ 5%] ../../../tests/test_rwlock.py .E.E.E.E.E.E.EFE.E.E.E.E.E.E.E.E.E.E.E.E.E [ 16%] .E.EFFFFF.E.E.E.E.E.E.E.E.E.E.E.E.E.E.E.EFE.EFEFEFEFEFE.E.EFEFEFEFEFEFEFE [ 36%] FFFFF.E.EFEFEFEFEFEFEFEFFFFF.EFFFFF.E [ 50%] ../../../tests/test_corner_cases.py FFFFFFFFFF [ 55%] ../../../tests/test_rwlock.py .E.E.E.E.E.E.EFE.E.E.E.E.E.E.E.E.E.E.E.E.E [ 66%] .E.E.E.E.E.E.E.E.E.E.E.E.E.E.E.E.E.E.E.E.E.E.EFE.EFEFEFEFEFE.E.EFEFEFEFE [ 84%] FEFEFEFFFFF.E.EFEFEFEFEFEFEFEFFF.EFE.EFFF.EFE.E [100%] ==================================== ERRORS ==================================== _ ERROR at teardown of test_ctor_deprecated_implicit_not_running[debug:true-pyloop] _ cls = func = . at 0xf683bbb8> when = 'teardown' reraise = (, ) @classmethod def from_call( cls, func: Callable[[], TResult], when: Literal["collect", "setup", "call", "teardown"], reraise: Optional[ Union[Type[BaseException], Tuple[Type[BaseException], ...]] ] = None, ) -> "CallInfo[TResult]": """Call func, wrapping the result in a CallInfo. :param func: The function to call. Called without arguments. :param when: The phase in which the function is called. :param reraise: Exception or exceptions that shall propagate if raised by the function, instead of being wrapped in the CallInfo. """ excinfo = None start = timing.time() precise_start = timing.perf_counter() try: > result: Optional[TResult] = func() /usr/lib/python3/dist-packages/_pytest/runner.py:341: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/dist-packages/_pytest/runner.py:241: in lambda: runtest_hook(item=item, **kwds), when=when, reraise=reraise /usr/lib/python3/dist-packages/pluggy/_hooks.py:513: in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) /usr/lib/python3/dist-packages/pluggy/_manager.py:120: in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) /usr/lib/python3/dist-packages/_pytest/threadexception.py:92: in pytest_runtest_teardown yield from thread_exception_runtest_hook() /usr/lib/python3/dist-packages/_pytest/threadexception.py:63: in thread_exception_runtest_hook yield /usr/lib/python3/dist-packages/_pytest/unraisableexception.py:95: in pytest_runtest_teardown yield from unraisable_exception_runtest_hook() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ def unraisable_exception_runtest_hook() -> Generator[None, None, None]: with catch_unraisable_exception() as cm: try: yield finally: if cm.unraisable: if cm.unraisable.err_msg is not None: err_msg = cm.unraisable.err_msg else: err_msg = "Exception ignored in" msg = f"{err_msg}: {cm.unraisable.object!r}\n\n" msg += "".join( traceback.format_exception( cm.unraisable.exc_type, cm.unraisable.exc_value, cm.unraisable.exc_traceback, ) ) > warnings.warn(pytest.PytestUnraisableExceptionWarning(msg)) E pytest.PytestUnraisableExceptionWarning: Exception ignored in: E E Traceback (most recent call last): E File "/build/reproducible-path/aiorwlock-1.0.0/tests/conftest.py", line 44, in event_loop E gc.collect() E ResourceWarning: unclosed /usr/lib/python3/dist-packages/_pytest/unraisableexception.py:80: PytestUnraisableExceptionWarning _ ERROR at teardown of test_ctor_deprecated_explicit_non_running[debug:true-pyloop] _ cls = func = . at 0xf683be38> when = 'teardown' reraise = (, ) @classmethod def from_call( cls, func: Callable[[], TResult], when: Literal["collect", "setup", "call", "teardown"], reraise: Optional[ Union[Type[BaseException], Tuple[Type[BaseException], ...]] ] = None, ) -> "CallInfo[TResult]": """Call func, wrapping the result in a CallInfo. :param func: The function to call. Called without arguments. :param when: The phase in which the function is called. :param reraise: Exception or exceptions that shall propagate if raised by the function, instead of being wrapped in the CallInfo. """ excinfo = None start = timing.time() precise_start = timing.perf_counter() try: > result: Optional[TResult] = func() /usr/lib/python3/dist-packages/_pytest/runner.py:341: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/dist-packages/_pytest/runner.py:241: in lambda: runtest_hook(item=item, **kwds), when=when, reraise=reraise /usr/lib/python3/dist-packages/pluggy/_hooks.py:513: in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) /usr/lib/python3/dist-packages/pluggy/_manager.py:120: in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) /usr/lib/python3/dist-packages/_pytest/threadexception.py:92: in pytest_runtest_teardown yield from thread_exception_runtest_hook() /usr/lib/python3/dist-packages/_pytest/threadexception.py:63: in thread_exception_runtest_hook yield /usr/lib/python3/dist-packages/_pytest/unraisableexception.py:95: in pytest_runtest_teardown yield from unraisable_exception_runtest_hook() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ def unraisable_exception_runtest_hook() -> Generator[None, None, None]: with catch_unraisable_exception() as cm: try: yield finally: if cm.unraisable: if cm.unraisable.err_msg is not None: err_msg = cm.unraisable.err_msg else: err_msg = "Exception ignored in" msg = f"{err_msg}: {cm.unraisable.object!r}\n\n" msg += "".join( traceback.format_exception( cm.unraisable.exc_type, cm.unraisable.exc_value, cm.unraisable.exc_traceback, ) ) > warnings.warn(pytest.PytestUnraisableExceptionWarning(msg)) E pytest.PytestUnraisableExceptionWarning: Exception ignored in: E E Traceback (most recent call last): E File "/build/reproducible-path/aiorwlock-1.0.0/tests/conftest.py", line 44, in event_loop E gc.collect() E ResourceWarning: unclosed /usr/lib/python3/dist-packages/_pytest/unraisableexception.py:80: PytestUnraisableExceptionWarning ____ ERROR at teardown of test_ctor_loop_deprecated_arg[debug:true-pyloop] _____ cls = func = . at 0xf683b898> when = 'teardown' reraise = (, ) @classmethod def from_call( cls, func: Callable[[], TResult], when: Literal["collect", "setup", "call", "teardown"], reraise: Optional[ Union[Type[BaseException], Tuple[Type[BaseException], ...]] ] = None, ) -> "CallInfo[TResult]": """Call func, wrapping the result in a CallInfo. :param func: The function to call. Called without arguments. :param when: The phase in which the function is called. :param reraise: Exception or exceptions that shall propagate if raised by the function, instead of being wrapped in the CallInfo. """ excinfo = None start = timing.time() precise_start = timing.perf_counter() try: > result: Optional[TResult] = func() /usr/lib/python3/dist-packages/_pytest/runner.py:341: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/dist-packages/_pytest/runner.py:241: in lambda: runtest_hook(item=item, **kwds), when=when, reraise=reraise /usr/lib/python3/dist-packages/pluggy/_hooks.py:513: in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) /usr/lib/python3/dist-packages/pluggy/_manager.py:120: in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) /usr/lib/python3/dist-packages/_pytest/threadexception.py:92: in pytest_runtest_teardown yield from thread_exception_runtest_hook() /usr/lib/python3/dist-packages/_pytest/threadexception.py:63: in thread_exception_runtest_hook yield /usr/lib/python3/dist-packages/_pytest/unraisableexception.py:95: in pytest_runtest_teardown yield from unraisable_exception_runtest_hook() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ def unraisable_exception_runtest_hook() -> Generator[None, None, None]: with catch_unraisable_exception() as cm: try: yield finally: if cm.unraisable: if cm.unraisable.err_msg is not None: err_msg = cm.unraisable.err_msg else: err_msg = "Exception ignored in" msg = f"{err_msg}: {cm.unraisable.object!r}\n\n" msg += "".join( traceback.format_exception( cm.unraisable.exc_type, cm.unraisable.exc_value, cm.unraisable.exc_traceback, ) ) > warnings.warn(pytest.PytestUnraisableExceptionWarning(msg)) E pytest.PytestUnraisableExceptionWarning: Exception ignored in: E E Traceback (most recent call last): E File "/build/reproducible-path/aiorwlock-1.0.0/tests/conftest.py", line 44, in event_loop E gc.collect() E ResourceWarning: unclosed /usr/lib/python3/dist-packages/_pytest/unraisableexception.py:80: PytestUnraisableExceptionWarning ________ ERROR at teardown of test_ctor_loop_reader[debug:true-pyloop] _________ cls = func = . at 0xf683be38> when = 'teardown' reraise = (, ) @classmethod def from_call( cls, func: Callable[[], TResult], when: Literal["collect", "setup", "call", "teardown"], reraise: Optional[ Union[Type[BaseException], Tuple[Type[BaseException], ...]] ] = None, ) -> "CallInfo[TResult]": """Call func, wrapping the result in a CallInfo. :param func: The function to call. Called without arguments. :param when: The phase in which the function is called. :param reraise: Exception or exceptions that shall propagate if raised by the function, instead of being wrapped in the CallInfo. """ excinfo = None start = timing.time() precise_start = timing.perf_counter() try: > result: Optional[TResult] = func() /usr/lib/python3/dist-packages/_pytest/runner.py:341: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/dist-packages/_pytest/runner.py:241: in lambda: runtest_hook(item=item, **kwds), when=when, reraise=reraise /usr/lib/python3/dist-packages/pluggy/_hooks.py:513: in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) /usr/lib/python3/dist-packages/pluggy/_manager.py:120: in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) /usr/lib/python3/dist-packages/_pytest/threadexception.py:92: in pytest_runtest_teardown yield from thread_exception_runtest_hook() /usr/lib/python3/dist-packages/_pytest/threadexception.py:63: in thread_exception_runtest_hook yield /usr/lib/python3/dist-packages/_pytest/unraisableexception.py:95: in pytest_runtest_teardown yield from unraisable_exception_runtest_hook() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ def unraisable_exception_runtest_hook() -> Generator[None, None, None]: with catch_unraisable_exception() as cm: try: yield finally: if cm.unraisable: if cm.unraisable.err_msg is not None: err_msg = cm.unraisable.err_msg else: err_msg = "Exception ignored in" msg = f"{err_msg}: {cm.unraisable.object!r}\n\n" msg += "".join( traceback.format_exception( cm.unraisable.exc_type, cm.unraisable.exc_value, cm.unraisable.exc_traceback, ) ) > warnings.warn(pytest.PytestUnraisableExceptionWarning(msg)) E pytest.PytestUnraisableExceptionWarning: Exception ignored in: E E Traceback (most recent call last): E File "/build/reproducible-path/aiorwlock-1.0.0/tests/conftest.py", line 44, in event_loop E gc.collect() E ResourceWarning: unclosed /usr/lib/python3/dist-packages/_pytest/unraisableexception.py:80: PytestUnraisableExceptionWarning _______ ERROR at teardown of test_ctor_noloop_reader[debug:true-pyloop] ________ cls = func = . at 0xf683b898> when = 'teardown' reraise = (, ) @classmethod def from_call( cls, func: Callable[[], TResult], when: Literal["collect", "setup", "call", "teardown"], reraise: Optional[ Union[Type[BaseException], Tuple[Type[BaseException], ...]] ] = None, ) -> "CallInfo[TResult]": """Call func, wrapping the result in a CallInfo. :param func: The function to call. Called without arguments. :param when: The phase in which the function is called. :param reraise: Exception or exceptions that shall propagate if raised by the function, instead of being wrapped in the CallInfo. """ excinfo = None start = timing.time() precise_start = timing.perf_counter() try: > result: Optional[TResult] = func() /usr/lib/python3/dist-packages/_pytest/runner.py:341: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/dist-packages/_pytest/runner.py:241: in lambda: runtest_hook(item=item, **kwds), when=when, reraise=reraise /usr/lib/python3/dist-packages/pluggy/_hooks.py:513: in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) /usr/lib/python3/dist-packages/pluggy/_manager.py:120: in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) /usr/lib/python3/dist-packages/_pytest/threadexception.py:92: in pytest_runtest_teardown yield from thread_exception_runtest_hook() /usr/lib/python3/dist-packages/_pytest/threadexception.py:63: in thread_exception_runtest_hook yield /usr/lib/python3/dist-packages/_pytest/unraisableexception.py:95: in pytest_runtest_teardown yield from unraisable_exception_runtest_hook() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ def unraisable_exception_runtest_hook() -> Generator[None, None, None]: with catch_unraisable_exception() as cm: try: yield finally: if cm.unraisable: if cm.unraisable.err_msg is not None: err_msg = cm.unraisable.err_msg else: err_msg = "Exception ignored in" msg = f"{err_msg}: {cm.unraisable.object!r}\n\n" msg += "".join( traceback.format_exception( cm.unraisable.exc_type, cm.unraisable.exc_value, cm.unraisable.exc_traceback, ) ) > warnings.warn(pytest.PytestUnraisableExceptionWarning(msg)) E pytest.PytestUnraisableExceptionWarning: Exception ignored in: E E Traceback (most recent call last): E File "/build/reproducible-path/aiorwlock-1.0.0/tests/conftest.py", line 44, in event_loop E gc.collect() E ResourceWarning: unclosed /usr/lib/python3/dist-packages/_pytest/unraisableexception.py:80: PytestUnraisableExceptionWarning ________ ERROR at teardown of test_ctor_loop_writer[debug:true-pyloop] _________ cls = func = . at 0xf675a4d8> when = 'teardown' reraise = (, ) @classmethod def from_call( cls, func: Callable[[], TResult], when: Literal["collect", "setup", "call", "teardown"], reraise: Optional[ Union[Type[BaseException], Tuple[Type[BaseException], ...]] ] = None, ) -> "CallInfo[TResult]": """Call func, wrapping the result in a CallInfo. :param func: The function to call. Called without arguments. :param when: The phase in which the function is called. :param reraise: Exception or exceptions that shall propagate if raised by the function, instead of being wrapped in the CallInfo. """ excinfo = None start = timing.time() precise_start = timing.perf_counter() try: > result: Optional[TResult] = func() /usr/lib/python3/dist-packages/_pytest/runner.py:341: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/dist-packages/_pytest/runner.py:241: in lambda: runtest_hook(item=item, **kwds), when=when, reraise=reraise /usr/lib/python3/dist-packages/pluggy/_hooks.py:513: in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) /usr/lib/python3/dist-packages/pluggy/_manager.py:120: in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) /usr/lib/python3/dist-packages/_pytest/threadexception.py:92: in pytest_runtest_teardown yield from thread_exception_runtest_hook() /usr/lib/python3/dist-packages/_pytest/threadexception.py:63: in thread_exception_runtest_hook yield /usr/lib/python3/dist-packages/_pytest/unraisableexception.py:95: in pytest_runtest_teardown yield from unraisable_exception_runtest_hook() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ def unraisable_exception_runtest_hook() -> Generator[None, None, None]: with catch_unraisable_exception() as cm: try: yield finally: if cm.unraisable: if cm.unraisable.err_msg is not None: err_msg = cm.unraisable.err_msg else: err_msg = "Exception ignored in" msg = f"{err_msg}: {cm.unraisable.object!r}\n\n" msg += "".join( traceback.format_exception( cm.unraisable.exc_type, cm.unraisable.exc_value, cm.unraisable.exc_traceback, ) ) > warnings.warn(pytest.PytestUnraisableExceptionWarning(msg)) E pytest.PytestUnraisableExceptionWarning: Exception ignored in: E E Traceback (most recent call last): E File "/build/reproducible-path/aiorwlock-1.0.0/tests/conftest.py", line 44, in event_loop E gc.collect() E ResourceWarning: unclosed /usr/lib/python3/dist-packages/_pytest/unraisableexception.py:80: PytestUnraisableExceptionWarning _______ ERROR at teardown of test_ctor_noloop_writer[debug:true-pyloop] ________ cls = func = . at 0xf683be38> when = 'teardown' reraise = (, ) @classmethod def from_call( cls, func: Callable[[], TResult], when: Literal["collect", "setup", "call", "teardown"], reraise: Optional[ Union[Type[BaseException], Tuple[Type[BaseException], ...]] ] = None, ) -> "CallInfo[TResult]": """Call func, wrapping the result in a CallInfo. :param func: The function to call. Called without arguments. :param when: The phase in which the function is called. :param reraise: Exception or exceptions that shall propagate if raised by the function, instead of being wrapped in the CallInfo. """ excinfo = None start = timing.time() precise_start = timing.perf_counter() try: > result: Optional[TResult] = func() /usr/lib/python3/dist-packages/_pytest/runner.py:341: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/dist-packages/_pytest/runner.py:241: in lambda: runtest_hook(item=item, **kwds), when=when, reraise=reraise /usr/lib/python3/dist-packages/pluggy/_hooks.py:513: in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) /usr/lib/python3/dist-packages/pluggy/_manager.py:120: in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) /usr/lib/python3/dist-packages/_pytest/threadexception.py:92: in pytest_runtest_teardown yield from thread_exception_runtest_hook() /usr/lib/python3/dist-packages/_pytest/threadexception.py:63: in thread_exception_runtest_hook yield /usr/lib/python3/dist-packages/_pytest/unraisableexception.py:95: in pytest_runtest_teardown yield from unraisable_exception_runtest_hook() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ def unraisable_exception_runtest_hook() -> Generator[None, None, None]: with catch_unraisable_exception() as cm: try: yield finally: if cm.unraisable: if cm.unraisable.err_msg is not None: err_msg = cm.unraisable.err_msg else: err_msg = "Exception ignored in" msg = f"{err_msg}: {cm.unraisable.object!r}\n\n" msg += "".join( traceback.format_exception( cm.unraisable.exc_type, cm.unraisable.exc_value, cm.unraisable.exc_traceback, ) ) > warnings.warn(pytest.PytestUnraisableExceptionWarning(msg)) E pytest.PytestUnraisableExceptionWarning: Exception ignored in: E E Traceback (most recent call last): E File "/build/reproducible-path/aiorwlock-1.0.0/tests/conftest.py", line 44, in event_loop E gc.collect() E ResourceWarning: unclosed /usr/lib/python3/dist-packages/_pytest/unraisableexception.py:80: PytestUnraisableExceptionWarning ______________ ERROR at teardown of test_repr[debug:true-pyloop] _______________ cls = func = . at 0xf6730988> when = 'teardown' reraise = (, ) @classmethod def from_call( cls, func: Callable[[], TResult], when: Literal["collect", "setup", "call", "teardown"], reraise: Optional[ Union[Type[BaseException], Tuple[Type[BaseException], ...]] ] = None, ) -> "CallInfo[TResult]": """Call func, wrapping the result in a CallInfo. :param func: The function to call. Called without arguments. :param when: The phase in which the function is called. :param reraise: Exception or exceptions that shall propagate if raised by the function, instead of being wrapped in the CallInfo. """ excinfo = None start = timing.time() precise_start = timing.perf_counter() try: > result: Optional[TResult] = func() /usr/lib/python3/dist-packages/_pytest/runner.py:341: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/dist-packages/_pytest/runner.py:241: in lambda: runtest_hook(item=item, **kwds), when=when, reraise=reraise /usr/lib/python3/dist-packages/pluggy/_hooks.py:513: in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) /usr/lib/python3/dist-packages/pluggy/_manager.py:120: in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) /usr/lib/python3/dist-packages/_pytest/threadexception.py:92: in pytest_runtest_teardown yield from thread_exception_runtest_hook() /usr/lib/python3/dist-packages/_pytest/threadexception.py:63: in thread_exception_runtest_hook yield /usr/lib/python3/dist-packages/_pytest/unraisableexception.py:95: in pytest_runtest_teardown yield from unraisable_exception_runtest_hook() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ def unraisable_exception_runtest_hook() -> Generator[None, None, None]: with catch_unraisable_exception() as cm: try: yield finally: if cm.unraisable: if cm.unraisable.err_msg is not None: err_msg = cm.unraisable.err_msg else: err_msg = "Exception ignored in" msg = f"{err_msg}: {cm.unraisable.object!r}\n\n" msg += "".join( traceback.format_exception( cm.unraisable.exc_type, cm.unraisable.exc_value, cm.unraisable.exc_traceback, ) ) > warnings.warn(pytest.PytestUnraisableExceptionWarning(msg)) E pytest.PytestUnraisableExceptionWarning: Exception ignored in: E E Traceback (most recent call last): E File "/build/reproducible-path/aiorwlock-1.0.0/tests/conftest.py", line 44, in event_loop E gc.collect() E ResourceWarning: unclosed /usr/lib/python3/dist-packages/_pytest/unraisableexception.py:80: PytestUnraisableExceptionWarning ________ ERROR at teardown of test_release_unlocked[debug:true-pyloop] _________ cls = func = . at 0xf683be38> when = 'teardown' reraise = (, ) @classmethod def from_call( cls, func: Callable[[], TResult], when: Literal["collect", "setup", "call", "teardown"], reraise: Optional[ Union[Type[BaseException], Tuple[Type[BaseException], ...]] ] = None, ) -> "CallInfo[TResult]": """Call func, wrapping the result in a CallInfo. :param func: The function to call. Called without arguments. :param when: The phase in which the function is called. :param reraise: Exception or exceptions that shall propagate if raised by the function, instead of being wrapped in the CallInfo. """ excinfo = None start = timing.time() precise_start = timing.perf_counter() try: > result: Optional[TResult] = func() /usr/lib/python3/dist-packages/_pytest/runner.py:341: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/dist-packages/_pytest/runner.py:241: in lambda: runtest_hook(item=item, **kwds), when=when, reraise=reraise /usr/lib/python3/dist-packages/pluggy/_hooks.py:513: in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) /usr/lib/python3/dist-packages/pluggy/_manager.py:120: in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) /usr/lib/python3/dist-packages/_pytest/threadexception.py:92: in pytest_runtest_teardown yield from thread_exception_runtest_hook() /usr/lib/python3/dist-packages/_pytest/threadexception.py:63: in thread_exception_runtest_hook yield /usr/lib/python3/dist-packages/_pytest/unraisableexception.py:95: in pytest_runtest_teardown yield from unraisable_exception_runtest_hook() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ def unraisable_exception_runtest_hook() -> Generator[None, None, None]: with catch_unraisable_exception() as cm: try: yield finally: if cm.unraisable: if cm.unraisable.err_msg is not None: err_msg = cm.unraisable.err_msg else: err_msg = "Exception ignored in" msg = f"{err_msg}: {cm.unraisable.object!r}\n\n" msg += "".join( traceback.format_exception( cm.unraisable.exc_type, cm.unraisable.exc_value, cm.unraisable.exc_traceback, ) ) > warnings.warn(pytest.PytestUnraisableExceptionWarning(msg)) E pytest.PytestUnraisableExceptionWarning: Exception ignored in: E E Traceback (most recent call last): E File "/build/reproducible-path/aiorwlock-1.0.0/tests/conftest.py", line 44, in event_loop E gc.collect() E ResourceWarning: unclosed /usr/lib/python3/dist-packages/_pytest/unraisableexception.py:80: PytestUnraisableExceptionWarning ________ ERROR at teardown of test_many_readers[debug:true-fast-pyloop] ________ cls = func = . at 0xf675a4d8> when = 'teardown' reraise = (, ) @classmethod def from_call( cls, func: Callable[[], TResult], when: Literal["collect", "setup", "call", "teardown"], reraise: Optional[ Union[Type[BaseException], Tuple[Type[BaseException], ...]] ] = None, ) -> "CallInfo[TResult]": """Call func, wrapping the result in a CallInfo. :param func: The function to call. Called without arguments. :param when: The phase in which the function is called. :param reraise: Exception or exceptions that shall propagate if raised by the function, instead of being wrapped in the CallInfo. """ excinfo = None start = timing.time() precise_start = timing.perf_counter() try: > result: Optional[TResult] = func() /usr/lib/python3/dist-packages/_pytest/runner.py:341: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/dist-packages/_pytest/runner.py:241: in lambda: runtest_hook(item=item, **kwds), when=when, reraise=reraise /usr/lib/python3/dist-packages/pluggy/_hooks.py:513: in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) /usr/lib/python3/dist-packages/pluggy/_manager.py:120: in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) /usr/lib/python3/dist-packages/_pytest/threadexception.py:92: in pytest_runtest_teardown yield from thread_exception_runtest_hook() /usr/lib/python3/dist-packages/_pytest/threadexception.py:63: in thread_exception_runtest_hook yield /usr/lib/python3/dist-packages/_pytest/unraisableexception.py:95: in pytest_runtest_teardown yield from unraisable_exception_runtest_hook() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ def unraisable_exception_runtest_hook() -> Generator[None, None, None]: with catch_unraisable_exception() as cm: try: yield finally: if cm.unraisable: if cm.unraisable.err_msg is not None: err_msg = cm.unraisable.err_msg else: err_msg = "Exception ignored in" msg = f"{err_msg}: {cm.unraisable.object!r}\n\n" msg += "".join( traceback.format_exception( cm.unraisable.exc_type, cm.unraisable.exc_value, cm.unraisable.exc_traceback, ) ) > warnings.warn(pytest.PytestUnraisableExceptionWarning(msg)) E pytest.PytestUnraisableExceptionWarning: Exception ignored in: E E Traceback (most recent call last): E File "/build/reproducible-path/aiorwlock-1.0.0/tests/conftest.py", line 44, in event_loop E gc.collect() E ResourceWarning: unclosed /usr/lib/python3/dist-packages/_pytest/unraisableexception.py:80: PytestUnraisableExceptionWarning ______ ERROR at teardown of test_reader_recursion[debug:true-fast-pyloop] ______ cls = func = . at 0xf683be38> when = 'teardown' reraise = (, ) @classmethod def from_call( cls, func: Callable[[], TResult], when: Literal["collect", "setup", "call", "teardown"], reraise: Optional[ Union[Type[BaseException], Tuple[Type[BaseException], ...]] ] = None, ) -> "CallInfo[TResult]": """Call func, wrapping the result in a CallInfo. :param func: The function to call. Called without arguments. :param when: The phase in which the function is called. :param reraise: Exception or exceptions that shall propagate if raised by the function, instead of being wrapped in the CallInfo. """ excinfo = None start = timing.time() precise_start = timing.perf_counter() try: > result: Optional[TResult] = func() /usr/lib/python3/dist-packages/_pytest/runner.py:341: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/dist-packages/_pytest/runner.py:241: in lambda: runtest_hook(item=item, **kwds), when=when, reraise=reraise /usr/lib/python3/dist-packages/pluggy/_hooks.py:513: in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) /usr/lib/python3/dist-packages/pluggy/_manager.py:120: in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) /usr/lib/python3/dist-packages/_pytest/threadexception.py:92: in pytest_runtest_teardown yield from thread_exception_runtest_hook() /usr/lib/python3/dist-packages/_pytest/threadexception.py:63: in thread_exception_runtest_hook yield /usr/lib/python3/dist-packages/_pytest/unraisableexception.py:95: in pytest_runtest_teardown yield from unraisable_exception_runtest_hook() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ def unraisable_exception_runtest_hook() -> Generator[None, None, None]: with catch_unraisable_exception() as cm: try: yield finally: if cm.unraisable: if cm.unraisable.err_msg is not None: err_msg = cm.unraisable.err_msg else: err_msg = "Exception ignored in" msg = f"{err_msg}: {cm.unraisable.object!r}\n\n" msg += "".join( traceback.format_exception( cm.unraisable.exc_type, cm.unraisable.exc_value, cm.unraisable.exc_traceback, ) ) > warnings.warn(pytest.PytestUnraisableExceptionWarning(msg)) E pytest.PytestUnraisableExceptionWarning: Exception ignored in: E E Traceback (most recent call last): E File "/build/reproducible-path/aiorwlock-1.0.0/tests/conftest.py", line 44, in event_loop E gc.collect() E ResourceWarning: unclosed /usr/lib/python3/dist-packages/_pytest/unraisableexception.py:80: PytestUnraisableExceptionWarning ______ ERROR at teardown of test_writer_recursion[debug:true-fast-pyloop] ______ cls = func = . at 0xf675a4d8> when = 'teardown' reraise = (, ) @classmethod def from_call( cls, func: Callable[[], TResult], when: Literal["collect", "setup", "call", "teardown"], reraise: Optional[ Union[Type[BaseException], Tuple[Type[BaseException], ...]] ] = None, ) -> "CallInfo[TResult]": """Call func, wrapping the result in a CallInfo. :param func: The function to call. Called without arguments. :param when: The phase in which the function is called. :param reraise: Exception or exceptions that shall propagate if raised by the function, instead of being wrapped in the CallInfo. """ excinfo = None start = timing.time() precise_start = timing.perf_counter() try: > result: Optional[TResult] = func() /usr/lib/python3/dist-packages/_pytest/runner.py:341: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/dist-packages/_pytest/runner.py:241: in lambda: runtest_hook(item=item, **kwds), when=when, reraise=reraise /usr/lib/python3/dist-packages/pluggy/_hooks.py:513: in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) /usr/lib/python3/dist-packages/pluggy/_manager.py:120: in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) /usr/lib/python3/dist-packages/_pytest/threadexception.py:92: in pytest_runtest_teardown yield from thread_exception_runtest_hook() /usr/lib/python3/dist-packages/_pytest/threadexception.py:63: in thread_exception_runtest_hook yield /usr/lib/python3/dist-packages/_pytest/unraisableexception.py:95: in pytest_runtest_teardown yield from unraisable_exception_runtest_hook() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ def unraisable_exception_runtest_hook() -> Generator[None, None, None]: with catch_unraisable_exception() as cm: try: yield finally: if cm.unraisable: if cm.unraisable.err_msg is not None: err_msg = cm.unraisable.err_msg else: err_msg = "Exception ignored in" msg = f"{err_msg}: {cm.unraisable.object!r}\n\n" msg += "".join( traceback.format_exception( cm.unraisable.exc_type, cm.unraisable.exc_value, cm.unraisable.exc_traceback, ) ) > warnings.warn(pytest.PytestUnraisableExceptionWarning(msg)) E pytest.PytestUnraisableExceptionWarning: Exception ignored in: E E Traceback (most recent call last): E File "/build/reproducible-path/aiorwlock-1.0.0/tests/conftest.py", line 44, in event_loop E gc.collect() E ResourceWarning: unclosed /usr/lib/python3/dist-packages/_pytest/unraisableexception.py:80: PytestUnraisableExceptionWarning _ ERROR at teardown of test_writer_then_reader_recursion[debug:true-fast-pyloop] _ cls = func = . at 0xf683be38> when = 'teardown' reraise = (, ) @classmethod def from_call( cls, func: Callable[[], TResult], when: Literal["collect", "setup", "call", "teardown"], reraise: Optional[ Union[Type[BaseException], Tuple[Type[BaseException], ...]] ] = None, ) -> "CallInfo[TResult]": """Call func, wrapping the result in a CallInfo. :param func: The function to call. Called without arguments. :param when: The phase in which the function is called. :param reraise: Exception or exceptions that shall propagate if raised by the function, instead of being wrapped in the CallInfo. """ excinfo = None start = timing.time() precise_start = timing.perf_counter() try: > result: Optional[TResult] = func() /usr/lib/python3/dist-packages/_pytest/runner.py:341: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/dist-packages/_pytest/runner.py:241: in lambda: runtest_hook(item=item, **kwds), when=when, reraise=reraise /usr/lib/python3/dist-packages/pluggy/_hooks.py:513: in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) /usr/lib/python3/dist-packages/pluggy/_manager.py:120: in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) /usr/lib/python3/dist-packages/_pytest/threadexception.py:92: in pytest_runtest_teardown yield from thread_exception_runtest_hook() /usr/lib/python3/dist-packages/_pytest/threadexception.py:63: in thread_exception_runtest_hook yield /usr/lib/python3/dist-packages/_pytest/unraisableexception.py:95: in pytest_runtest_teardown yield from unraisable_exception_runtest_hook() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ def unraisable_exception_runtest_hook() -> Generator[None, None, None]: with catch_unraisable_exception() as cm: try: yield finally: if cm.unraisable: if cm.unraisable.err_msg is not None: err_msg = cm.unraisable.err_msg else: err_msg = "Exception ignored in" msg = f"{err_msg}: {cm.unraisable.object!r}\n\n" msg += "".join( traceback.format_exception( cm.unraisable.exc_type, cm.unraisable.exc_value, cm.unraisable.exc_traceback, ) ) > warnings.warn(pytest.PytestUnraisableExceptionWarning(msg)) E pytest.PytestUnraisableExceptionWarning: Exception ignored in: E E Traceback (most recent call last): E File "/build/reproducible-path/aiorwlock-1.0.0/tests/conftest.py", line 44, in event_loop E gc.collect() E ResourceWarning: unclosed /usr/lib/python3/dist-packages/_pytest/unraisableexception.py:80: PytestUnraisableExceptionWarning ______ ERROR at teardown of test_readers_writers[debug:true-fast-pyloop] _______ cls = func = . at 0xf6754e38> when = 'teardown' reraise = (, ) @classmethod def from_call( cls, func: Callable[[], TResult], when: Literal["collect", "setup", "call", "teardown"], reraise: Optional[ Union[Type[BaseException], Tuple[Type[BaseException], ...]] ] = None, ) -> "CallInfo[TResult]": """Call func, wrapping the result in a CallInfo. :param func: The function to call. Called without arguments. :param when: The phase in which the function is called. :param reraise: Exception or exceptions that shall propagate if raised by the function, instead of being wrapped in the CallInfo. """ excinfo = None start = timing.time() precise_start = timing.perf_counter() try: > result: Optional[TResult] = func() /usr/lib/python3/dist-packages/_pytest/runner.py:341: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/dist-packages/_pytest/runner.py:241: in lambda: runtest_hook(item=item, **kwds), when=when, reraise=reraise /usr/lib/python3/dist-packages/pluggy/_hooks.py:513: in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) /usr/lib/python3/dist-packages/pluggy/_manager.py:120: in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) /usr/lib/python3/dist-packages/_pytest/threadexception.py:92: in pytest_runtest_teardown yield from thread_exception_runtest_hook() /usr/lib/python3/dist-packages/_pytest/threadexception.py:63: in thread_exception_runtest_hook yield /usr/lib/python3/dist-packages/_pytest/unraisableexception.py:95: in pytest_runtest_teardown yield from unraisable_exception_runtest_hook() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ def unraisable_exception_runtest_hook() -> Generator[None, None, None]: with catch_unraisable_exception() as cm: try: yield finally: if cm.unraisable: if cm.unraisable.err_msg is not None: err_msg = cm.unraisable.err_msg else: err_msg = "Exception ignored in" msg = f"{err_msg}: {cm.unraisable.object!r}\n\n" msg += "".join( traceback.format_exception( cm.unraisable.exc_type, cm.unraisable.exc_value, cm.unraisable.exc_traceback, ) ) > warnings.warn(pytest.PytestUnraisableExceptionWarning(msg)) E pytest.PytestUnraisableExceptionWarning: Exception ignored in: E E Traceback (most recent call last): E File "/build/reproducible-path/aiorwlock-1.0.0/tests/conftest.py", line 44, in event_loop E gc.collect() E ResourceWarning: unclosed /usr/lib/python3/dist-packages/_pytest/unraisableexception.py:80: PytestUnraisableExceptionWarning _ ERROR at teardown of test_raise_error_on_with_for_reader_lock[debug:true-fast-pyloop] _ cls = func = . at 0xf683be38> when = 'teardown' reraise = (, ) @classmethod def from_call( cls, func: Callable[[], TResult], when: Literal["collect", "setup", "call", "teardown"], reraise: Optional[ Union[Type[BaseException], Tuple[Type[BaseException], ...]] ] = None, ) -> "CallInfo[TResult]": """Call func, wrapping the result in a CallInfo. :param func: The function to call. Called without arguments. :param when: The phase in which the function is called. :param reraise: Exception or exceptions that shall propagate if raised by the function, instead of being wrapped in the CallInfo. """ excinfo = None start = timing.time() precise_start = timing.perf_counter() try: > result: Optional[TResult] = func() /usr/lib/python3/dist-packages/_pytest/runner.py:341: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/dist-packages/_pytest/runner.py:241: in lambda: runtest_hook(item=item, **kwds), when=when, reraise=reraise /usr/lib/python3/dist-packages/pluggy/_hooks.py:513: in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) /usr/lib/python3/dist-packages/pluggy/_manager.py:120: in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) /usr/lib/python3/dist-packages/_pytest/threadexception.py:92: in pytest_runtest_teardown yield from thread_exception_runtest_hook() /usr/lib/python3/dist-packages/_pytest/threadexception.py:63: in thread_exception_runtest_hook yield /usr/lib/python3/dist-packages/_pytest/unraisableexception.py:95: in pytest_runtest_teardown yield from unraisable_exception_runtest_hook() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ def unraisable_exception_runtest_hook() -> Generator[None, None, None]: with catch_unraisable_exception() as cm: try: yield finally: if cm.unraisable: if cm.unraisable.err_msg is not None: err_msg = cm.unraisable.err_msg else: err_msg = "Exception ignored in" msg = f"{err_msg}: {cm.unraisable.object!r}\n\n" msg += "".join( traceback.format_exception( cm.unraisable.exc_type, cm.unraisable.exc_value, cm.unraisable.exc_traceback, ) ) > warnings.warn(pytest.PytestUnraisableExceptionWarning(msg)) E pytest.PytestUnraisableExceptionWarning: Exception ignored in: E E Traceback (most recent call last): E File "/build/reproducible-path/aiorwlock-1.0.0/tests/conftest.py", line 44, in event_loop E gc.collect() E ResourceWarning: unclosed /usr/lib/python3/dist-packages/_pytest/unraisableexception.py:80: PytestUnraisableExceptionWarning _ ERROR at teardown of test_raise_error_on_with_for_writer_lock[debug:true-fast-pyloop] _ cls = func = . at 0xf6754e38> when = 'teardown' reraise = (, ) @classmethod def from_call( cls, func: Callable[[], TResult], when: Literal["collect", "setup", "call", "teardown"], reraise: Optional[ Union[Type[BaseException], Tuple[Type[BaseException], ...]] ] = None, ) -> "CallInfo[TResult]": """Call func, wrapping the result in a CallInfo. :param func: The function to call. Called without arguments. :param when: The phase in which the function is called. :param reraise: Exception or exceptions that shall propagate if raised by the function, instead of being wrapped in the CallInfo. """ excinfo = None start = timing.time() precise_start = timing.perf_counter() try: > result: Optional[TResult] = func() /usr/lib/python3/dist-packages/_pytest/runner.py:341: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/dist-packages/_pytest/runner.py:241: in lambda: runtest_hook(item=item, **kwds), when=when, reraise=reraise /usr/lib/python3/dist-packages/pluggy/_hooks.py:513: in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) /usr/lib/python3/dist-packages/pluggy/_manager.py:120: in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) /usr/lib/python3/dist-packages/_pytest/threadexception.py:92: in pytest_runtest_teardown yield from thread_exception_runtest_hook() /usr/lib/python3/dist-packages/_pytest/threadexception.py:63: in thread_exception_runtest_hook yield /usr/lib/python3/dist-packages/_pytest/unraisableexception.py:95: in pytest_runtest_teardown yield from unraisable_exception_runtest_hook() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ def unraisable_exception_runtest_hook() -> Generator[None, None, None]: with catch_unraisable_exception() as cm: try: yield finally: if cm.unraisable: if cm.unraisable.err_msg is not None: err_msg = cm.unraisable.err_msg else: err_msg = "Exception ignored in" msg = f"{err_msg}: {cm.unraisable.object!r}\n\n" msg += "".join( traceback.format_exception( cm.unraisable.exc_type, cm.unraisable.exc_value, cm.unraisable.exc_traceback, ) ) > warnings.warn(pytest.PytestUnraisableExceptionWarning(msg)) E pytest.PytestUnraisableExceptionWarning: Exception ignored in: E E Traceback (most recent call last): E File "/build/reproducible-path/aiorwlock-1.0.0/tests/conftest.py", line 44, in event_loop E gc.collect() E ResourceWarning: unclosed /usr/lib/python3/dist-packages/_pytest/unraisableexception.py:80: PytestUnraisableExceptionWarning ________ ERROR at teardown of test_read_locked[debug:true-fast-pyloop] _________ cls = func = . at 0xf683be38> when = 'teardown' reraise = (, ) @classmethod def from_call( cls, func: Callable[[], TResult], when: Literal["collect", "setup", "call", "teardown"], reraise: Optional[ Union[Type[BaseException], Tuple[Type[BaseException], ...]] ] = None, ) -> "CallInfo[TResult]": """Call func, wrapping the result in a CallInfo. :param func: The function to call. Called without arguments. :param when: The phase in which the function is called. :param reraise: Exception or exceptions that shall propagate if raised by the function, instead of being wrapped in the CallInfo. """ excinfo = None start = timing.time() precise_start = timing.perf_counter() try: > result: Optional[TResult] = func() /usr/lib/python3/dist-packages/_pytest/runner.py:341: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/dist-packages/_pytest/runner.py:241: in lambda: runtest_hook(item=item, **kwds), when=when, reraise=reraise /usr/lib/python3/dist-packages/pluggy/_hooks.py:513: in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) /usr/lib/python3/dist-packages/pluggy/_manager.py:120: in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) /usr/lib/python3/dist-packages/_pytest/threadexception.py:92: in pytest_runtest_teardown yield from thread_exception_runtest_hook() /usr/lib/python3/dist-packages/_pytest/threadexception.py:63: in thread_exception_runtest_hook yield /usr/lib/python3/dist-packages/_pytest/unraisableexception.py:95: in pytest_runtest_teardown yield from unraisable_exception_runtest_hook() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ def unraisable_exception_runtest_hook() -> Generator[None, None, None]: with catch_unraisable_exception() as cm: try: yield finally: if cm.unraisable: if cm.unraisable.err_msg is not None: err_msg = cm.unraisable.err_msg else: err_msg = "Exception ignored in" msg = f"{err_msg}: {cm.unraisable.object!r}\n\n" msg += "".join( traceback.format_exception( cm.unraisable.exc_type, cm.unraisable.exc_value, cm.unraisable.exc_traceback, ) ) > warnings.warn(pytest.PytestUnraisableExceptionWarning(msg)) E pytest.PytestUnraisableExceptionWarning: Exception ignored in: E E Traceback (most recent call last): E File "/build/reproducible-path/aiorwlock-1.0.0/tests/conftest.py", line 44, in event_loop E gc.collect() E ResourceWarning: unclosed /usr/lib/python3/dist-packages/_pytest/unraisableexception.py:80: PytestUnraisableExceptionWarning ________ ERROR at teardown of test_write_locked[debug:true-fast-pyloop] ________ cls = func = . at 0xf6754e38> when = 'teardown' reraise = (, ) @classmethod def from_call( cls, func: Callable[[], TResult], when: Literal["collect", "setup", "call", "teardown"], reraise: Optional[ Union[Type[BaseException], Tuple[Type[BaseException], ...]] ] = None, ) -> "CallInfo[TResult]": """Call func, wrapping the result in a CallInfo. :param func: The function to call. Called without arguments. :param when: The phase in which the function is called. :param reraise: Exception or exceptions that shall propagate if raised by the function, instead of being wrapped in the CallInfo. """ excinfo = None start = timing.time() precise_start = timing.perf_counter() try: > result: Optional[TResult] = func() /usr/lib/python3/dist-packages/_pytest/runner.py:341: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/dist-packages/_pytest/runner.py:241: in lambda: runtest_hook(item=item, **kwds), when=when, reraise=reraise /usr/lib/python3/dist-packages/pluggy/_hooks.py:513: in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) /usr/lib/python3/dist-packages/pluggy/_manager.py:120: in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) /usr/lib/python3/dist-packages/_pytest/threadexception.py:92: in pytest_runtest_teardown yield from thread_exception_runtest_hook() /usr/lib/python3/dist-packages/_pytest/threadexception.py:63: in thread_exception_runtest_hook yield /usr/lib/python3/dist-packages/_pytest/unraisableexception.py:95: in pytest_runtest_teardown yield from unraisable_exception_runtest_hook() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ def unraisable_exception_runtest_hook() -> Generator[None, None, None]: with catch_unraisable_exception() as cm: try: yield finally: if cm.unraisable: if cm.unraisable.err_msg is not None: err_msg = cm.unraisable.err_msg else: err_msg = "Exception ignored in" msg = f"{err_msg}: {cm.unraisable.object!r}\n\n" msg += "".join( traceback.format_exception( cm.unraisable.exc_type, cm.unraisable.exc_value, cm.unraisable.exc_traceback, ) ) > warnings.warn(pytest.PytestUnraisableExceptionWarning(msg)) E pytest.PytestUnraisableExceptionWarning: Exception ignored in: E E Traceback (most recent call last): E File "/build/reproducible-path/aiorwlock-1.0.0/tests/conftest.py", line 44, in event_loop E gc.collect() E ResourceWarning: unclosed /usr/lib/python3/dist-packages/_pytest/unraisableexception.py:80: PytestUnraisableExceptionWarning _ ERROR at teardown of test_write_read_lock_multiple_tasks[debug:true-fast-pyloop] _ cls = func = . at 0xf683be38> when = 'teardown' reraise = (, ) @classmethod def from_call( cls, func: Callable[[], TResult], when: Literal["collect", "setup", "call", "teardown"], reraise: Optional[ Union[Type[BaseException], Tuple[Type[BaseException], ...]] ] = None, ) -> "CallInfo[TResult]": """Call func, wrapping the result in a CallInfo. :param func: The function to call. Called without arguments. :param when: The phase in which the function is called. :param reraise: Exception or exceptions that shall propagate if raised by the function, instead of being wrapped in the CallInfo. """ excinfo = None start = timing.time() precise_start = timing.perf_counter() try: > result: Optional[TResult] = func() /usr/lib/python3/dist-packages/_pytest/runner.py:341: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/dist-packages/_pytest/runner.py:241: in lambda: runtest_hook(item=item, **kwds), when=when, reraise=reraise /usr/lib/python3/dist-packages/pluggy/_hooks.py:513: in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) /usr/lib/python3/dist-packages/pluggy/_manager.py:120: in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) /usr/lib/python3/dist-packages/_pytest/threadexception.py:92: in pytest_runtest_teardown yield from thread_exception_runtest_hook() /usr/lib/python3/dist-packages/_pytest/threadexception.py:63: in thread_exception_runtest_hook yield /usr/lib/python3/dist-packages/_pytest/unraisableexception.py:95: in pytest_runtest_teardown yield from unraisable_exception_runtest_hook() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ def unraisable_exception_runtest_hook() -> Generator[None, None, None]: with catch_unraisable_exception() as cm: try: yield finally: if cm.unraisable: if cm.unraisable.err_msg is not None: err_msg = cm.unraisable.err_msg else: err_msg = "Exception ignored in" msg = f"{err_msg}: {cm.unraisable.object!r}\n\n" msg += "".join( traceback.format_exception( cm.unraisable.exc_type, cm.unraisable.exc_value, cm.unraisable.exc_traceback, ) ) > warnings.warn(pytest.PytestUnraisableExceptionWarning(msg)) E pytest.PytestUnraisableExceptionWarning: Exception ignored in: E E Traceback (most recent call last): E File "/build/reproducible-path/aiorwlock-1.0.0/tests/conftest.py", line 44, in event_loop E gc.collect() E ResourceWarning: unclosed /usr/lib/python3/dist-packages/_pytest/unraisableexception.py:80: PytestUnraisableExceptionWarning ____ ERROR at teardown of test_read_context_manager[debug:true-fast-pyloop] ____ cls = func = . at 0xf6754e38> when = 'teardown' reraise = (, ) @classmethod def from_call( cls, func: Callable[[], TResult], when: Literal["collect", "setup", "call", "teardown"], reraise: Optional[ Union[Type[BaseException], Tuple[Type[BaseException], ...]] ] = None, ) -> "CallInfo[TResult]": """Call func, wrapping the result in a CallInfo. :param func: The function to call. Called without arguments. :param when: The phase in which the function is called. :param reraise: Exception or exceptions that shall propagate if raised by the function, instead of being wrapped in the CallInfo. """ excinfo = None start = timing.time() precise_start = timing.perf_counter() try: > result: Optional[TResult] = func() /usr/lib/python3/dist-packages/_pytest/runner.py:341: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/dist-packages/_pytest/runner.py:241: in lambda: runtest_hook(item=item, **kwds), when=when, reraise=reraise /usr/lib/python3/dist-packages/pluggy/_hooks.py:513: in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) /usr/lib/python3/dist-packages/pluggy/_manager.py:120: in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) /usr/lib/python3/dist-packages/_pytest/threadexception.py:92: in pytest_runtest_teardown yield from thread_exception_runtest_hook() /usr/lib/python3/dist-packages/_pytest/threadexception.py:63: in thread_exception_runtest_hook yield /usr/lib/python3/dist-packages/_pytest/unraisableexception.py:95: in pytest_runtest_teardown yield from unraisable_exception_runtest_hook() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ def unraisable_exception_runtest_hook() -> Generator[None, None, None]: with catch_unraisable_exception() as cm: try: yield finally: if cm.unraisable: if cm.unraisable.err_msg is not None: err_msg = cm.unraisable.err_msg else: err_msg = "Exception ignored in" msg = f"{err_msg}: {cm.unraisable.object!r}\n\n" msg += "".join( traceback.format_exception( cm.unraisable.exc_type, cm.unraisable.exc_value, cm.unraisable.exc_traceback, ) ) > warnings.warn(pytest.PytestUnraisableExceptionWarning(msg)) E pytest.PytestUnraisableExceptionWarning: Exception ignored in: E E Traceback (most recent call last): E File "/build/reproducible-path/aiorwlock-1.0.0/tests/conftest.py", line 44, in event_loop E gc.collect() E ResourceWarning: unclosed /usr/lib/python3/dist-packages/_pytest/unraisableexception.py:80: PytestUnraisableExceptionWarning ___ ERROR at teardown of test_write_context_manager[debug:true-fast-pyloop] ____ cls = func = . at 0xf683be38> when = 'teardown' reraise = (, ) @classmethod def from_call( cls, func: Callable[[], TResult], when: Literal["collect", "setup", "call", "teardown"], reraise: Optional[ Union[Type[BaseException], Tuple[Type[BaseException], ...]] ] = None, ) -> "CallInfo[TResult]": """Call func, wrapping the result in a CallInfo. :param func: The function to call. Called without arguments. :param when: The phase in which the function is called. :param reraise: Exception or exceptions that shall propagate if raised by the function, instead of being wrapped in the CallInfo. """ excinfo = None start = timing.time() precise_start = timing.perf_counter() try: > result: Optional[TResult] = func() /usr/lib/python3/dist-packages/_pytest/runner.py:341: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/dist-packages/_pytest/runner.py:241: in lambda: runtest_hook(item=item, **kwds), when=when, reraise=reraise /usr/lib/python3/dist-packages/pluggy/_hooks.py:513: in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) /usr/lib/python3/dist-packages/pluggy/_manager.py:120: in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) /usr/lib/python3/dist-packages/_pytest/threadexception.py:92: in pytest_runtest_teardown yield from thread_exception_runtest_hook() /usr/lib/python3/dist-packages/_pytest/threadexception.py:63: in thread_exception_runtest_hook yield /usr/lib/python3/dist-packages/_pytest/unraisableexception.py:95: in pytest_runtest_teardown yield from unraisable_exception_runtest_hook() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ def unraisable_exception_runtest_hook() -> Generator[None, None, None]: with catch_unraisable_exception() as cm: try: yield finally: if cm.unraisable: if cm.unraisable.err_msg is not None: err_msg = cm.unraisable.err_msg else: err_msg = "Exception ignored in" msg = f"{err_msg}: {cm.unraisable.object!r}\n\n" msg += "".join( traceback.format_exception( cm.unraisable.exc_type, cm.unraisable.exc_value, cm.unraisable.exc_traceback, ) ) > warnings.warn(pytest.PytestUnraisableExceptionWarning(msg)) E pytest.PytestUnraisableExceptionWarning: Exception ignored in: E E Traceback (most recent call last): E File "/build/reproducible-path/aiorwlock-1.0.0/tests/conftest.py", line 44, in event_loop E gc.collect() E ResourceWarning: unclosed /usr/lib/python3/dist-packages/_pytest/unraisableexception.py:80: PytestUnraisableExceptionWarning ______ ERROR at teardown of test_await_read_lock[debug:true-fast-pyloop] _______ cls = func = . at 0xf6754e38> when = 'teardown' reraise = (, ) @classmethod def from_call( cls, func: Callable[[], TResult], when: Literal["collect", "setup", "call", "teardown"], reraise: Optional[ Union[Type[BaseException], Tuple[Type[BaseException], ...]] ] = None, ) -> "CallInfo[TResult]": """Call func, wrapping the result in a CallInfo. :param func: The function to call. Called without arguments. :param when: The phase in which the function is called. :param reraise: Exception or exceptions that shall propagate if raised by the function, instead of being wrapped in the CallInfo. """ excinfo = None start = timing.time() precise_start = timing.perf_counter() try: > result: Optional[TResult] = func() /usr/lib/python3/dist-packages/_pytest/runner.py:341: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/dist-packages/_pytest/runner.py:241: in lambda: runtest_hook(item=item, **kwds), when=when, reraise=reraise /usr/lib/python3/dist-packages/pluggy/_hooks.py:513: in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) /usr/lib/python3/dist-packages/pluggy/_manager.py:120: in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) /usr/lib/python3/dist-packages/_pytest/threadexception.py:92: in pytest_runtest_teardown yield from thread_exception_runtest_hook() /usr/lib/python3/dist-packages/_pytest/threadexception.py:63: in thread_exception_runtest_hook yield /usr/lib/python3/dist-packages/_pytest/unraisableexception.py:95: in pytest_runtest_teardown yield from unraisable_exception_runtest_hook() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ def unraisable_exception_runtest_hook() -> Generator[None, None, None]: with catch_unraisable_exception() as cm: try: yield finally: if cm.unraisable: if cm.unraisable.err_msg is not None: err_msg = cm.unraisable.err_msg else: err_msg = "Exception ignored in" msg = f"{err_msg}: {cm.unraisable.object!r}\n\n" msg += "".join( traceback.format_exception( cm.unraisable.exc_type, cm.unraisable.exc_value, cm.unraisable.exc_traceback, ) ) > warnings.warn(pytest.PytestUnraisableExceptionWarning(msg)) E pytest.PytestUnraisableExceptionWarning: Exception ignored in: E E Traceback (most recent call last): E File "/build/reproducible-path/aiorwlock-1.0.0/tests/conftest.py", line 44, in event_loop E gc.collect() E ResourceWarning: unclosed /usr/lib/python3/dist-packages/_pytest/unraisableexception.py:80: PytestUnraisableExceptionWarning ______ ERROR at teardown of test_await_write_lock[debug:true-fast-pyloop] ______ cls = func = . at 0xf683be38> when = 'teardown' reraise = (, ) @classmethod def from_call( cls, func: Callable[[], TResult], when: Literal["collect", "setup", "call", "teardown"], reraise: Optional[ Union[Type[BaseException], Tuple[Type[BaseException], ...]] ] = None, ) -> "CallInfo[TResult]": """Call func, wrapping the result in a CallInfo. :param func: The function to call. Called without arguments. :param when: The phase in which the function is called. :param reraise: Exception or exceptions that shall propagate if raised by the function, instead of being wrapped in the CallInfo. """ excinfo = None start = timing.time() precise_start = timing.perf_counter() try: > result: Optional[TResult] = func() /usr/lib/python3/dist-packages/_pytest/runner.py:341: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/dist-packages/_pytest/runner.py:241: in lambda: runtest_hook(item=item, **kwds), when=when, reraise=reraise /usr/lib/python3/dist-packages/pluggy/_hooks.py:513: in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) /usr/lib/python3/dist-packages/pluggy/_manager.py:120: in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) /usr/lib/python3/dist-packages/_pytest/threadexception.py:92: in pytest_runtest_teardown yield from thread_exception_runtest_hook() /usr/lib/python3/dist-packages/_pytest/threadexception.py:63: in thread_exception_runtest_hook yield /usr/lib/python3/dist-packages/_pytest/unraisableexception.py:95: in pytest_runtest_teardown yield from unraisable_exception_runtest_hook() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ def unraisable_exception_runtest_hook() -> Generator[None, None, None]: with catch_unraisable_exception() as cm: try: yield finally: if cm.unraisable: if cm.unraisable.err_msg is not None: err_msg = cm.unraisable.err_msg else: err_msg = "Exception ignored in" msg = f"{err_msg}: {cm.unraisable.object!r}\n\n" msg += "".join( traceback.format_exception( cm.unraisable.exc_type, cm.unraisable.exc_value, cm.unraisable.exc_traceback, ) ) > warnings.warn(pytest.PytestUnraisableExceptionWarning(msg)) E pytest.PytestUnraisableExceptionWarning: Exception ignored in: E E Traceback (most recent call last): E File "/build/reproducible-path/aiorwlock-1.0.0/tests/conftest.py", line 44, in event_loop E gc.collect() E ResourceWarning: unclosed /usr/lib/python3/dist-packages/_pytest/unraisableexception.py:80: PytestUnraisableExceptionWarning _ ERROR at teardown of test_raise_error_on_with_for_reader_lock[debug:true-fast-uvloop] _ cls = func = . at 0xf6753e88> when = 'teardown' reraise = (, ) @classmethod def from_call( cls, func: Callable[[], TResult], when: Literal["collect", "setup", "call", "teardown"], reraise: Optional[ Union[Type[BaseException], Tuple[Type[BaseException], ...]] ] = None, ) -> "CallInfo[TResult]": """Call func, wrapping the result in a CallInfo. :param func: The function to call. Called without arguments. :param when: The phase in which the function is called. :param reraise: Exception or exceptions that shall propagate if raised by the function, instead of being wrapped in the CallInfo. """ excinfo = None start = timing.time() precise_start = timing.perf_counter() try: > result: Optional[TResult] = func() /usr/lib/python3/dist-packages/_pytest/runner.py:341: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/dist-packages/_pytest/runner.py:241: in lambda: runtest_hook(item=item, **kwds), when=when, reraise=reraise /usr/lib/python3/dist-packages/pluggy/_hooks.py:513: in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) /usr/lib/python3/dist-packages/pluggy/_manager.py:120: in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) /usr/lib/python3/dist-packages/_pytest/threadexception.py:92: in pytest_runtest_teardown yield from thread_exception_runtest_hook() /usr/lib/python3/dist-packages/_pytest/threadexception.py:63: in thread_exception_runtest_hook yield /usr/lib/python3/dist-packages/_pytest/unraisableexception.py:95: in pytest_runtest_teardown yield from unraisable_exception_runtest_hook() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ def unraisable_exception_runtest_hook() -> Generator[None, None, None]: with catch_unraisable_exception() as cm: try: yield finally: if cm.unraisable: if cm.unraisable.err_msg is not None: err_msg = cm.unraisable.err_msg else: err_msg = "Exception ignored in" msg = f"{err_msg}: {cm.unraisable.object!r}\n\n" msg += "".join( traceback.format_exception( cm.unraisable.exc_type, cm.unraisable.exc_value, cm.unraisable.exc_traceback, ) ) > warnings.warn(pytest.PytestUnraisableExceptionWarning(msg)) E pytest.PytestUnraisableExceptionWarning: Exception ignored in: E E Traceback (most recent call last): E File "/build/reproducible-path/aiorwlock-1.0.0/tests/conftest.py", line 44, in event_loop E gc.collect() E ResourceWarning: unclosed /usr/lib/python3/dist-packages/_pytest/unraisableexception.py:80: PytestUnraisableExceptionWarning _ ERROR at teardown of test_raise_error_on_with_for_writer_lock[debug:true-fast-uvloop] _ cls = func = . at 0xf6620b18> when = 'teardown' reraise = (, ) @classmethod def from_call( cls, func: Callable[[], TResult], when: Literal["collect", "setup", "call", "teardown"], reraise: Optional[ Union[Type[BaseException], Tuple[Type[BaseException], ...]] ] = None, ) -> "CallInfo[TResult]": """Call func, wrapping the result in a CallInfo. :param func: The function to call. Called without arguments. :param when: The phase in which the function is called. :param reraise: Exception or exceptions that shall propagate if raised by the function, instead of being wrapped in the CallInfo. """ excinfo = None start = timing.time() precise_start = timing.perf_counter() try: > result: Optional[TResult] = func() /usr/lib/python3/dist-packages/_pytest/runner.py:341: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/dist-packages/_pytest/runner.py:241: in lambda: runtest_hook(item=item, **kwds), when=when, reraise=reraise /usr/lib/python3/dist-packages/pluggy/_hooks.py:513: in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) /usr/lib/python3/dist-packages/pluggy/_manager.py:120: in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) /usr/lib/python3/dist-packages/_pytest/threadexception.py:92: in pytest_runtest_teardown yield from thread_exception_runtest_hook() /usr/lib/python3/dist-packages/_pytest/threadexception.py:63: in thread_exception_runtest_hook yield /usr/lib/python3/dist-packages/_pytest/unraisableexception.py:95: in pytest_runtest_teardown yield from unraisable_exception_runtest_hook() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ def unraisable_exception_runtest_hook() -> Generator[None, None, None]: with catch_unraisable_exception() as cm: try: yield finally: if cm.unraisable: if cm.unraisable.err_msg is not None: err_msg = cm.unraisable.err_msg else: err_msg = "Exception ignored in" msg = f"{err_msg}: {cm.unraisable.object!r}\n\n" msg += "".join( traceback.format_exception( cm.unraisable.exc_type, cm.unraisable.exc_value, cm.unraisable.exc_traceback, ) ) > warnings.warn(pytest.PytestUnraisableExceptionWarning(msg)) E pytest.PytestUnraisableExceptionWarning: Exception ignored in: E E Traceback (most recent call last): E File "/build/reproducible-path/aiorwlock-1.0.0/tests/conftest.py", line 44, in event_loop E gc.collect() E ResourceWarning: unclosed /usr/lib/python3/dist-packages/_pytest/unraisableexception.py:80: PytestUnraisableExceptionWarning ________ ERROR at teardown of test_read_locked[debug:true-fast-uvloop] _________ cls = func = . at 0xf6753e88> when = 'teardown' reraise = (, ) @classmethod def from_call( cls, func: Callable[[], TResult], when: Literal["collect", "setup", "call", "teardown"], reraise: Optional[ Union[Type[BaseException], Tuple[Type[BaseException], ...]] ] = None, ) -> "CallInfo[TResult]": """Call func, wrapping the result in a CallInfo. :param func: The function to call. Called without arguments. :param when: The phase in which the function is called. :param reraise: Exception or exceptions that shall propagate if raised by the function, instead of being wrapped in the CallInfo. """ excinfo = None start = timing.time() precise_start = timing.perf_counter() try: > result: Optional[TResult] = func() /usr/lib/python3/dist-packages/_pytest/runner.py:341: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/dist-packages/_pytest/runner.py:241: in lambda: runtest_hook(item=item, **kwds), when=when, reraise=reraise /usr/lib/python3/dist-packages/pluggy/_hooks.py:513: in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) /usr/lib/python3/dist-packages/pluggy/_manager.py:120: in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) /usr/lib/python3/dist-packages/_pytest/threadexception.py:92: in pytest_runtest_teardown yield from thread_exception_runtest_hook() /usr/lib/python3/dist-packages/_pytest/threadexception.py:63: in thread_exception_runtest_hook yield /usr/lib/python3/dist-packages/_pytest/unraisableexception.py:95: in pytest_runtest_teardown yield from unraisable_exception_runtest_hook() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ def unraisable_exception_runtest_hook() -> Generator[None, None, None]: with catch_unraisable_exception() as cm: try: yield finally: if cm.unraisable: if cm.unraisable.err_msg is not None: err_msg = cm.unraisable.err_msg else: err_msg = "Exception ignored in" msg = f"{err_msg}: {cm.unraisable.object!r}\n\n" msg += "".join( traceback.format_exception( cm.unraisable.exc_type, cm.unraisable.exc_value, cm.unraisable.exc_traceback, ) ) > warnings.warn(pytest.PytestUnraisableExceptionWarning(msg)) E pytest.PytestUnraisableExceptionWarning: Exception ignored in: E E Traceback (most recent call last): E File "/build/reproducible-path/aiorwlock-1.0.0/tests/conftest.py", line 44, in event_loop E gc.collect() E ResourceWarning: unclosed /usr/lib/python3/dist-packages/_pytest/unraisableexception.py:80: PytestUnraisableExceptionWarning ________ ERROR at teardown of test_write_locked[debug:true-fast-uvloop] ________ cls = func = . at 0xf6620b18> when = 'teardown' reraise = (, ) @classmethod def from_call( cls, func: Callable[[], TResult], when: Literal["collect", "setup", "call", "teardown"], reraise: Optional[ Union[Type[BaseException], Tuple[Type[BaseException], ...]] ] = None, ) -> "CallInfo[TResult]": """Call func, wrapping the result in a CallInfo. :param func: The function to call. Called without arguments. :param when: The phase in which the function is called. :param reraise: Exception or exceptions that shall propagate if raised by the function, instead of being wrapped in the CallInfo. """ excinfo = None start = timing.time() precise_start = timing.perf_counter() try: > result: Optional[TResult] = func() /usr/lib/python3/dist-packages/_pytest/runner.py:341: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/dist-packages/_pytest/runner.py:241: in lambda: runtest_hook(item=item, **kwds), when=when, reraise=reraise /usr/lib/python3/dist-packages/pluggy/_hooks.py:513: in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) /usr/lib/python3/dist-packages/pluggy/_manager.py:120: in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) /usr/lib/python3/dist-packages/_pytest/threadexception.py:92: in pytest_runtest_teardown yield from thread_exception_runtest_hook() /usr/lib/python3/dist-packages/_pytest/threadexception.py:63: in thread_exception_runtest_hook yield /usr/lib/python3/dist-packages/_pytest/unraisableexception.py:95: in pytest_runtest_teardown yield from unraisable_exception_runtest_hook() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ def unraisable_exception_runtest_hook() -> Generator[None, None, None]: with catch_unraisable_exception() as cm: try: yield finally: if cm.unraisable: if cm.unraisable.err_msg is not None: err_msg = cm.unraisable.err_msg else: err_msg = "Exception ignored in" msg = f"{err_msg}: {cm.unraisable.object!r}\n\n" msg += "".join( traceback.format_exception( cm.unraisable.exc_type, cm.unraisable.exc_value, cm.unraisable.exc_traceback, ) ) > warnings.warn(pytest.PytestUnraisableExceptionWarning(msg)) E pytest.PytestUnraisableExceptionWarning: Exception ignored in: E E Traceback (most recent call last): E File "/build/reproducible-path/aiorwlock-1.0.0/tests/conftest.py", line 44, in event_loop E gc.collect() E ResourceWarning: unclosed /usr/lib/python3/dist-packages/_pytest/unraisableexception.py:80: PytestUnraisableExceptionWarning _ ERROR at teardown of test_write_read_lock_multiple_tasks[debug:true-fast-uvloop] _ cls = func = . at 0xf6753e88> when = 'teardown' reraise = (, ) @classmethod def from_call( cls, func: Callable[[], TResult], when: Literal["collect", "setup", "call", "teardown"], reraise: Optional[ Union[Type[BaseException], Tuple[Type[BaseException], ...]] ] = None, ) -> "CallInfo[TResult]": """Call func, wrapping the result in a CallInfo. :param func: The function to call. Called without arguments. :param when: The phase in which the function is called. :param reraise: Exception or exceptions that shall propagate if raised by the function, instead of being wrapped in the CallInfo. """ excinfo = None start = timing.time() precise_start = timing.perf_counter() try: > result: Optional[TResult] = func() /usr/lib/python3/dist-packages/_pytest/runner.py:341: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/dist-packages/_pytest/runner.py:241: in lambda: runtest_hook(item=item, **kwds), when=when, reraise=reraise /usr/lib/python3/dist-packages/pluggy/_hooks.py:513: in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) /usr/lib/python3/dist-packages/pluggy/_manager.py:120: in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) /usr/lib/python3/dist-packages/_pytest/threadexception.py:92: in pytest_runtest_teardown yield from thread_exception_runtest_hook() /usr/lib/python3/dist-packages/_pytest/threadexception.py:63: in thread_exception_runtest_hook yield /usr/lib/python3/dist-packages/_pytest/unraisableexception.py:95: in pytest_runtest_teardown yield from unraisable_exception_runtest_hook() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ def unraisable_exception_runtest_hook() -> Generator[None, None, None]: with catch_unraisable_exception() as cm: try: yield finally: if cm.unraisable: if cm.unraisable.err_msg is not None: err_msg = cm.unraisable.err_msg else: err_msg = "Exception ignored in" msg = f"{err_msg}: {cm.unraisable.object!r}\n\n" msg += "".join( traceback.format_exception( cm.unraisable.exc_type, cm.unraisable.exc_value, cm.unraisable.exc_traceback, ) ) > warnings.warn(pytest.PytestUnraisableExceptionWarning(msg)) E pytest.PytestUnraisableExceptionWarning: Exception ignored in: E E Traceback (most recent call last): E File "/build/reproducible-path/aiorwlock-1.0.0/tests/conftest.py", line 44, in event_loop E gc.collect() E ResourceWarning: unclosed /usr/lib/python3/dist-packages/_pytest/unraisableexception.py:80: PytestUnraisableExceptionWarning ____ ERROR at teardown of test_read_context_manager[debug:true-fast-uvloop] ____ cls = func = . at 0xf66249d8> when = 'teardown' reraise = (, ) @classmethod def from_call( cls, func: Callable[[], TResult], when: Literal["collect", "setup", "call", "teardown"], reraise: Optional[ Union[Type[BaseException], Tuple[Type[BaseException], ...]] ] = None, ) -> "CallInfo[TResult]": """Call func, wrapping the result in a CallInfo. :param func: The function to call. Called without arguments. :param when: The phase in which the function is called. :param reraise: Exception or exceptions that shall propagate if raised by the function, instead of being wrapped in the CallInfo. """ excinfo = None start = timing.time() precise_start = timing.perf_counter() try: > result: Optional[TResult] = func() /usr/lib/python3/dist-packages/_pytest/runner.py:341: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/dist-packages/_pytest/runner.py:241: in lambda: runtest_hook(item=item, **kwds), when=when, reraise=reraise /usr/lib/python3/dist-packages/pluggy/_hooks.py:513: in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) /usr/lib/python3/dist-packages/pluggy/_manager.py:120: in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) /usr/lib/python3/dist-packages/_pytest/threadexception.py:92: in pytest_runtest_teardown yield from thread_exception_runtest_hook() /usr/lib/python3/dist-packages/_pytest/threadexception.py:63: in thread_exception_runtest_hook yield /usr/lib/python3/dist-packages/_pytest/unraisableexception.py:95: in pytest_runtest_teardown yield from unraisable_exception_runtest_hook() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ def unraisable_exception_runtest_hook() -> Generator[None, None, None]: with catch_unraisable_exception() as cm: try: yield finally: if cm.unraisable: if cm.unraisable.err_msg is not None: err_msg = cm.unraisable.err_msg else: err_msg = "Exception ignored in" msg = f"{err_msg}: {cm.unraisable.object!r}\n\n" msg += "".join( traceback.format_exception( cm.unraisable.exc_type, cm.unraisable.exc_value, cm.unraisable.exc_traceback, ) ) > warnings.warn(pytest.PytestUnraisableExceptionWarning(msg)) E pytest.PytestUnraisableExceptionWarning: Exception ignored in: E E Traceback (most recent call last): E File "/build/reproducible-path/aiorwlock-1.0.0/tests/conftest.py", line 44, in event_loop E gc.collect() E ResourceWarning: unclosed /usr/lib/python3/dist-packages/_pytest/unraisableexception.py:80: PytestUnraisableExceptionWarning ___ ERROR at teardown of test_write_context_manager[debug:true-fast-uvloop] ____ cls = func = . at 0xf6753e88> when = 'teardown' reraise = (, ) @classmethod def from_call( cls, func: Callable[[], TResult], when: Literal["collect", "setup", "call", "teardown"], reraise: Optional[ Union[Type[BaseException], Tuple[Type[BaseException], ...]] ] = None, ) -> "CallInfo[TResult]": """Call func, wrapping the result in a CallInfo. :param func: The function to call. Called without arguments. :param when: The phase in which the function is called. :param reraise: Exception or exceptions that shall propagate if raised by the function, instead of being wrapped in the CallInfo. """ excinfo = None start = timing.time() precise_start = timing.perf_counter() try: > result: Optional[TResult] = func() /usr/lib/python3/dist-packages/_pytest/runner.py:341: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/dist-packages/_pytest/runner.py:241: in lambda: runtest_hook(item=item, **kwds), when=when, reraise=reraise /usr/lib/python3/dist-packages/pluggy/_hooks.py:513: in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) /usr/lib/python3/dist-packages/pluggy/_manager.py:120: in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) /usr/lib/python3/dist-packages/_pytest/threadexception.py:92: in pytest_runtest_teardown yield from thread_exception_runtest_hook() /usr/lib/python3/dist-packages/_pytest/threadexception.py:63: in thread_exception_runtest_hook yield /usr/lib/python3/dist-packages/_pytest/unraisableexception.py:95: in pytest_runtest_teardown yield from unraisable_exception_runtest_hook() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ def unraisable_exception_runtest_hook() -> Generator[None, None, None]: with catch_unraisable_exception() as cm: try: yield finally: if cm.unraisable: if cm.unraisable.err_msg is not None: err_msg = cm.unraisable.err_msg else: err_msg = "Exception ignored in" msg = f"{err_msg}: {cm.unraisable.object!r}\n\n" msg += "".join( traceback.format_exception( cm.unraisable.exc_type, cm.unraisable.exc_value, cm.unraisable.exc_traceback, ) ) > warnings.warn(pytest.PytestUnraisableExceptionWarning(msg)) E pytest.PytestUnraisableExceptionWarning: Exception ignored in: E E Traceback (most recent call last): E File "/build/reproducible-path/aiorwlock-1.0.0/tests/conftest.py", line 44, in event_loop E gc.collect() E ResourceWarning: unclosed /usr/lib/python3/dist-packages/_pytest/unraisableexception.py:80: PytestUnraisableExceptionWarning ______ ERROR at teardown of test_await_read_lock[debug:true-fast-uvloop] _______ cls = func = . at 0xf66249d8> when = 'teardown' reraise = (, ) @classmethod def from_call( cls, func: Callable[[], TResult], when: Literal["collect", "setup", "call", "teardown"], reraise: Optional[ Union[Type[BaseException], Tuple[Type[BaseException], ...]] ] = None, ) -> "CallInfo[TResult]": """Call func, wrapping the result in a CallInfo. :param func: The function to call. Called without arguments. :param when: The phase in which the function is called. :param reraise: Exception or exceptions that shall propagate if raised by the function, instead of being wrapped in the CallInfo. """ excinfo = None start = timing.time() precise_start = timing.perf_counter() try: > result: Optional[TResult] = func() /usr/lib/python3/dist-packages/_pytest/runner.py:341: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/dist-packages/_pytest/runner.py:241: in lambda: runtest_hook(item=item, **kwds), when=when, reraise=reraise /usr/lib/python3/dist-packages/pluggy/_hooks.py:513: in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) /usr/lib/python3/dist-packages/pluggy/_manager.py:120: in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) /usr/lib/python3/dist-packages/_pytest/threadexception.py:92: in pytest_runtest_teardown yield from thread_exception_runtest_hook() /usr/lib/python3/dist-packages/_pytest/threadexception.py:63: in thread_exception_runtest_hook yield /usr/lib/python3/dist-packages/_pytest/unraisableexception.py:95: in pytest_runtest_teardown yield from unraisable_exception_runtest_hook() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ def unraisable_exception_runtest_hook() -> Generator[None, None, None]: with catch_unraisable_exception() as cm: try: yield finally: if cm.unraisable: if cm.unraisable.err_msg is not None: err_msg = cm.unraisable.err_msg else: err_msg = "Exception ignored in" msg = f"{err_msg}: {cm.unraisable.object!r}\n\n" msg += "".join( traceback.format_exception( cm.unraisable.exc_type, cm.unraisable.exc_value, cm.unraisable.exc_traceback, ) ) > warnings.warn(pytest.PytestUnraisableExceptionWarning(msg)) E pytest.PytestUnraisableExceptionWarning: Exception ignored in: E E Traceback (most recent call last): E File "/build/reproducible-path/aiorwlock-1.0.0/tests/conftest.py", line 44, in event_loop E gc.collect() E ResourceWarning: unclosed /usr/lib/python3/dist-packages/_pytest/unraisableexception.py:80: PytestUnraisableExceptionWarning ______ ERROR at teardown of test_await_write_lock[debug:true-fast-uvloop] ______ cls = func = . at 0xf6753e88> when = 'teardown' reraise = (, ) @classmethod def from_call( cls, func: Callable[[], TResult], when: Literal["collect", "setup", "call", "teardown"], reraise: Optional[ Union[Type[BaseException], Tuple[Type[BaseException], ...]] ] = None, ) -> "CallInfo[TResult]": """Call func, wrapping the result in a CallInfo. :param func: The function to call. Called without arguments. :param when: The phase in which the function is called. :param reraise: Exception or exceptions that shall propagate if raised by the function, instead of being wrapped in the CallInfo. """ excinfo = None start = timing.time() precise_start = timing.perf_counter() try: > result: Optional[TResult] = func() /usr/lib/python3/dist-packages/_pytest/runner.py:341: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/dist-packages/_pytest/runner.py:241: in lambda: runtest_hook(item=item, **kwds), when=when, reraise=reraise /usr/lib/python3/dist-packages/pluggy/_hooks.py:513: in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) /usr/lib/python3/dist-packages/pluggy/_manager.py:120: in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) /usr/lib/python3/dist-packages/_pytest/threadexception.py:92: in pytest_runtest_teardown yield from thread_exception_runtest_hook() /usr/lib/python3/dist-packages/_pytest/threadexception.py:63: in thread_exception_runtest_hook yield /usr/lib/python3/dist-packages/_pytest/unraisableexception.py:95: in pytest_runtest_teardown yield from unraisable_exception_runtest_hook() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ def unraisable_exception_runtest_hook() -> Generator[None, None, None]: with catch_unraisable_exception() as cm: try: yield finally: if cm.unraisable: if cm.unraisable.err_msg is not None: err_msg = cm.unraisable.err_msg else: err_msg = "Exception ignored in" msg = f"{err_msg}: {cm.unraisable.object!r}\n\n" msg += "".join( traceback.format_exception( cm.unraisable.exc_type, cm.unraisable.exc_value, cm.unraisable.exc_traceback, ) ) > warnings.warn(pytest.PytestUnraisableExceptionWarning(msg)) E pytest.PytestUnraisableExceptionWarning: Exception ignored in: E E Traceback (most recent call last): E File "/build/reproducible-path/aiorwlock-1.0.0/tests/conftest.py", line 44, in event_loop E gc.collect() E ResourceWarning: unclosed /usr/lib/python3/dist-packages/_pytest/unraisableexception.py:80: PytestUnraisableExceptionWarning _ ERROR at teardown of test_ctor_deprecated_implicit_not_running[debug:true-uvloop] _ cls = func = . at 0xf66249d8> when = 'teardown' reraise = (, ) @classmethod def from_call( cls, func: Callable[[], TResult], when: Literal["collect", "setup", "call", "teardown"], reraise: Optional[ Union[Type[BaseException], Tuple[Type[BaseException], ...]] ] = None, ) -> "CallInfo[TResult]": """Call func, wrapping the result in a CallInfo. :param func: The function to call. Called without arguments. :param when: The phase in which the function is called. :param reraise: Exception or exceptions that shall propagate if raised by the function, instead of being wrapped in the CallInfo. """ excinfo = None start = timing.time() precise_start = timing.perf_counter() try: > result: Optional[TResult] = func() /usr/lib/python3/dist-packages/_pytest/runner.py:341: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/dist-packages/_pytest/runner.py:241: in lambda: runtest_hook(item=item, **kwds), when=when, reraise=reraise /usr/lib/python3/dist-packages/pluggy/_hooks.py:513: in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) /usr/lib/python3/dist-packages/pluggy/_manager.py:120: in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) /usr/lib/python3/dist-packages/_pytest/threadexception.py:92: in pytest_runtest_teardown yield from thread_exception_runtest_hook() /usr/lib/python3/dist-packages/_pytest/threadexception.py:63: in thread_exception_runtest_hook yield /usr/lib/python3/dist-packages/_pytest/unraisableexception.py:95: in pytest_runtest_teardown yield from unraisable_exception_runtest_hook() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ def unraisable_exception_runtest_hook() -> Generator[None, None, None]: with catch_unraisable_exception() as cm: try: yield finally: if cm.unraisable: if cm.unraisable.err_msg is not None: err_msg = cm.unraisable.err_msg else: err_msg = "Exception ignored in" msg = f"{err_msg}: {cm.unraisable.object!r}\n\n" msg += "".join( traceback.format_exception( cm.unraisable.exc_type, cm.unraisable.exc_value, cm.unraisable.exc_traceback, ) ) > warnings.warn(pytest.PytestUnraisableExceptionWarning(msg)) E pytest.PytestUnraisableExceptionWarning: Exception ignored in: E E Traceback (most recent call last): E File "/build/reproducible-path/aiorwlock-1.0.0/tests/conftest.py", line 44, in event_loop E gc.collect() E ResourceWarning: unclosed /usr/lib/python3/dist-packages/_pytest/unraisableexception.py:80: PytestUnraisableExceptionWarning _ ERROR at teardown of test_ctor_deprecated_explicit_non_running[debug:true-uvloop] _ cls = func = . at 0xf6753e88> when = 'teardown' reraise = (, ) @classmethod def from_call( cls, func: Callable[[], TResult], when: Literal["collect", "setup", "call", "teardown"], reraise: Optional[ Union[Type[BaseException], Tuple[Type[BaseException], ...]] ] = None, ) -> "CallInfo[TResult]": """Call func, wrapping the result in a CallInfo. :param func: The function to call. Called without arguments. :param when: The phase in which the function is called. :param reraise: Exception or exceptions that shall propagate if raised by the function, instead of being wrapped in the CallInfo. """ excinfo = None start = timing.time() precise_start = timing.perf_counter() try: > result: Optional[TResult] = func() /usr/lib/python3/dist-packages/_pytest/runner.py:341: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/dist-packages/_pytest/runner.py:241: in lambda: runtest_hook(item=item, **kwds), when=when, reraise=reraise /usr/lib/python3/dist-packages/pluggy/_hooks.py:513: in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) /usr/lib/python3/dist-packages/pluggy/_manager.py:120: in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) /usr/lib/python3/dist-packages/_pytest/threadexception.py:92: in pytest_runtest_teardown yield from thread_exception_runtest_hook() /usr/lib/python3/dist-packages/_pytest/threadexception.py:63: in thread_exception_runtest_hook yield /usr/lib/python3/dist-packages/_pytest/unraisableexception.py:95: in pytest_runtest_teardown yield from unraisable_exception_runtest_hook() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ def unraisable_exception_runtest_hook() -> Generator[None, None, None]: with catch_unraisable_exception() as cm: try: yield finally: if cm.unraisable: if cm.unraisable.err_msg is not None: err_msg = cm.unraisable.err_msg else: err_msg = "Exception ignored in" msg = f"{err_msg}: {cm.unraisable.object!r}\n\n" msg += "".join( traceback.format_exception( cm.unraisable.exc_type, cm.unraisable.exc_value, cm.unraisable.exc_traceback, ) ) > warnings.warn(pytest.PytestUnraisableExceptionWarning(msg)) E pytest.PytestUnraisableExceptionWarning: Exception ignored in: E E Traceback (most recent call last): E File "/build/reproducible-path/aiorwlock-1.0.0/tests/conftest.py", line 44, in event_loop E gc.collect() E ResourceWarning: unclosed /usr/lib/python3/dist-packages/_pytest/unraisableexception.py:80: PytestUnraisableExceptionWarning ____ ERROR at teardown of test_ctor_loop_deprecated_arg[debug:true-uvloop] _____ cls = func = . at 0xf66249d8> when = 'teardown' reraise = (, ) @classmethod def from_call( cls, func: Callable[[], TResult], when: Literal["collect", "setup", "call", "teardown"], reraise: Optional[ Union[Type[BaseException], Tuple[Type[BaseException], ...]] ] = None, ) -> "CallInfo[TResult]": """Call func, wrapping the result in a CallInfo. :param func: The function to call. Called without arguments. :param when: The phase in which the function is called. :param reraise: Exception or exceptions that shall propagate if raised by the function, instead of being wrapped in the CallInfo. """ excinfo = None start = timing.time() precise_start = timing.perf_counter() try: > result: Optional[TResult] = func() /usr/lib/python3/dist-packages/_pytest/runner.py:341: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/dist-packages/_pytest/runner.py:241: in lambda: runtest_hook(item=item, **kwds), when=when, reraise=reraise /usr/lib/python3/dist-packages/pluggy/_hooks.py:513: in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) /usr/lib/python3/dist-packages/pluggy/_manager.py:120: in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) /usr/lib/python3/dist-packages/_pytest/threadexception.py:92: in pytest_runtest_teardown yield from thread_exception_runtest_hook() /usr/lib/python3/dist-packages/_pytest/threadexception.py:63: in thread_exception_runtest_hook yield /usr/lib/python3/dist-packages/_pytest/unraisableexception.py:95: in pytest_runtest_teardown yield from unraisable_exception_runtest_hook() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ def unraisable_exception_runtest_hook() -> Generator[None, None, None]: with catch_unraisable_exception() as cm: try: yield finally: if cm.unraisable: if cm.unraisable.err_msg is not None: err_msg = cm.unraisable.err_msg else: err_msg = "Exception ignored in" msg = f"{err_msg}: {cm.unraisable.object!r}\n\n" msg += "".join( traceback.format_exception( cm.unraisable.exc_type, cm.unraisable.exc_value, cm.unraisable.exc_traceback, ) ) > warnings.warn(pytest.PytestUnraisableExceptionWarning(msg)) E pytest.PytestUnraisableExceptionWarning: Exception ignored in: E E Traceback (most recent call last): E File "/build/reproducible-path/aiorwlock-1.0.0/tests/conftest.py", line 44, in event_loop E gc.collect() E ResourceWarning: unclosed /usr/lib/python3/dist-packages/_pytest/unraisableexception.py:80: PytestUnraisableExceptionWarning ________ ERROR at teardown of test_ctor_loop_reader[debug:true-uvloop] _________ cls = func = . at 0xf6564cf8> when = 'teardown' reraise = (, ) @classmethod def from_call( cls, func: Callable[[], TResult], when: Literal["collect", "setup", "call", "teardown"], reraise: Optional[ Union[Type[BaseException], Tuple[Type[BaseException], ...]] ] = None, ) -> "CallInfo[TResult]": """Call func, wrapping the result in a CallInfo. :param func: The function to call. Called without arguments. :param when: The phase in which the function is called. :param reraise: Exception or exceptions that shall propagate if raised by the function, instead of being wrapped in the CallInfo. """ excinfo = None start = timing.time() precise_start = timing.perf_counter() try: > result: Optional[TResult] = func() /usr/lib/python3/dist-packages/_pytest/runner.py:341: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/dist-packages/_pytest/runner.py:241: in lambda: runtest_hook(item=item, **kwds), when=when, reraise=reraise /usr/lib/python3/dist-packages/pluggy/_hooks.py:513: in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) /usr/lib/python3/dist-packages/pluggy/_manager.py:120: in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) /usr/lib/python3/dist-packages/_pytest/threadexception.py:92: in pytest_runtest_teardown yield from thread_exception_runtest_hook() /usr/lib/python3/dist-packages/_pytest/threadexception.py:63: in thread_exception_runtest_hook yield /usr/lib/python3/dist-packages/_pytest/unraisableexception.py:95: in pytest_runtest_teardown yield from unraisable_exception_runtest_hook() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ def unraisable_exception_runtest_hook() -> Generator[None, None, None]: with catch_unraisable_exception() as cm: try: yield finally: if cm.unraisable: if cm.unraisable.err_msg is not None: err_msg = cm.unraisable.err_msg else: err_msg = "Exception ignored in" msg = f"{err_msg}: {cm.unraisable.object!r}\n\n" msg += "".join( traceback.format_exception( cm.unraisable.exc_type, cm.unraisable.exc_value, cm.unraisable.exc_traceback, ) ) > warnings.warn(pytest.PytestUnraisableExceptionWarning(msg)) E pytest.PytestUnraisableExceptionWarning: Exception ignored in: E E Traceback (most recent call last): E File "/build/reproducible-path/aiorwlock-1.0.0/tests/conftest.py", line 44, in event_loop E gc.collect() E ResourceWarning: unclosed /usr/lib/python3/dist-packages/_pytest/unraisableexception.py:80: PytestUnraisableExceptionWarning _______ ERROR at teardown of test_ctor_noloop_reader[debug:true-uvloop] ________ cls = func = . at 0xf66249d8> when = 'teardown' reraise = (, ) @classmethod def from_call( cls, func: Callable[[], TResult], when: Literal["collect", "setup", "call", "teardown"], reraise: Optional[ Union[Type[BaseException], Tuple[Type[BaseException], ...]] ] = None, ) -> "CallInfo[TResult]": """Call func, wrapping the result in a CallInfo. :param func: The function to call. Called without arguments. :param when: The phase in which the function is called. :param reraise: Exception or exceptions that shall propagate if raised by the function, instead of being wrapped in the CallInfo. """ excinfo = None start = timing.time() precise_start = timing.perf_counter() try: > result: Optional[TResult] = func() /usr/lib/python3/dist-packages/_pytest/runner.py:341: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/dist-packages/_pytest/runner.py:241: in lambda: runtest_hook(item=item, **kwds), when=when, reraise=reraise /usr/lib/python3/dist-packages/pluggy/_hooks.py:513: in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) /usr/lib/python3/dist-packages/pluggy/_manager.py:120: in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) /usr/lib/python3/dist-packages/_pytest/threadexception.py:92: in pytest_runtest_teardown yield from thread_exception_runtest_hook() /usr/lib/python3/dist-packages/_pytest/threadexception.py:63: in thread_exception_runtest_hook yield /usr/lib/python3/dist-packages/_pytest/unraisableexception.py:95: in pytest_runtest_teardown yield from unraisable_exception_runtest_hook() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ def unraisable_exception_runtest_hook() -> Generator[None, None, None]: with catch_unraisable_exception() as cm: try: yield finally: if cm.unraisable: if cm.unraisable.err_msg is not None: err_msg = cm.unraisable.err_msg else: err_msg = "Exception ignored in" msg = f"{err_msg}: {cm.unraisable.object!r}\n\n" msg += "".join( traceback.format_exception( cm.unraisable.exc_type, cm.unraisable.exc_value, cm.unraisable.exc_traceback, ) ) > warnings.warn(pytest.PytestUnraisableExceptionWarning(msg)) E pytest.PytestUnraisableExceptionWarning: Exception ignored in: E E Traceback (most recent call last): E File "/build/reproducible-path/aiorwlock-1.0.0/tests/conftest.py", line 44, in event_loop E gc.collect() E ResourceWarning: unclosed /usr/lib/python3/dist-packages/_pytest/unraisableexception.py:80: PytestUnraisableExceptionWarning ________ ERROR at teardown of test_ctor_loop_writer[debug:true-uvloop] _________ cls = func = . at 0xf6564cf8> when = 'teardown' reraise = (, ) @classmethod def from_call( cls, func: Callable[[], TResult], when: Literal["collect", "setup", "call", "teardown"], reraise: Optional[ Union[Type[BaseException], Tuple[Type[BaseException], ...]] ] = None, ) -> "CallInfo[TResult]": """Call func, wrapping the result in a CallInfo. :param func: The function to call. Called without arguments. :param when: The phase in which the function is called. :param reraise: Exception or exceptions that shall propagate if raised by the function, instead of being wrapped in the CallInfo. """ excinfo = None start = timing.time() precise_start = timing.perf_counter() try: > result: Optional[TResult] = func() /usr/lib/python3/dist-packages/_pytest/runner.py:341: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/dist-packages/_pytest/runner.py:241: in lambda: runtest_hook(item=item, **kwds), when=when, reraise=reraise /usr/lib/python3/dist-packages/pluggy/_hooks.py:513: in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) /usr/lib/python3/dist-packages/pluggy/_manager.py:120: in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) /usr/lib/python3/dist-packages/_pytest/threadexception.py:92: in pytest_runtest_teardown yield from thread_exception_runtest_hook() /usr/lib/python3/dist-packages/_pytest/threadexception.py:63: in thread_exception_runtest_hook yield /usr/lib/python3/dist-packages/_pytest/unraisableexception.py:95: in pytest_runtest_teardown yield from unraisable_exception_runtest_hook() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ def unraisable_exception_runtest_hook() -> Generator[None, None, None]: with catch_unraisable_exception() as cm: try: yield finally: if cm.unraisable: if cm.unraisable.err_msg is not None: err_msg = cm.unraisable.err_msg else: err_msg = "Exception ignored in" msg = f"{err_msg}: {cm.unraisable.object!r}\n\n" msg += "".join( traceback.format_exception( cm.unraisable.exc_type, cm.unraisable.exc_value, cm.unraisable.exc_traceback, ) ) > warnings.warn(pytest.PytestUnraisableExceptionWarning(msg)) E pytest.PytestUnraisableExceptionWarning: Exception ignored in: E E Traceback (most recent call last): E File "/build/reproducible-path/aiorwlock-1.0.0/tests/conftest.py", line 44, in event_loop E gc.collect() E ResourceWarning: unclosed /usr/lib/python3/dist-packages/_pytest/unraisableexception.py:80: PytestUnraisableExceptionWarning _______ ERROR at teardown of test_ctor_noloop_writer[debug:true-uvloop] ________ cls = func = . at 0xf66249d8> when = 'teardown' reraise = (, ) @classmethod def from_call( cls, func: Callable[[], TResult], when: Literal["collect", "setup", "call", "teardown"], reraise: Optional[ Union[Type[BaseException], Tuple[Type[BaseException], ...]] ] = None, ) -> "CallInfo[TResult]": """Call func, wrapping the result in a CallInfo. :param func: The function to call. Called without arguments. :param when: The phase in which the function is called. :param reraise: Exception or exceptions that shall propagate if raised by the function, instead of being wrapped in the CallInfo. """ excinfo = None start = timing.time() precise_start = timing.perf_counter() try: > result: Optional[TResult] = func() /usr/lib/python3/dist-packages/_pytest/runner.py:341: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/dist-packages/_pytest/runner.py:241: in lambda: runtest_hook(item=item, **kwds), when=when, reraise=reraise /usr/lib/python3/dist-packages/pluggy/_hooks.py:513: in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) /usr/lib/python3/dist-packages/pluggy/_manager.py:120: in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) /usr/lib/python3/dist-packages/_pytest/threadexception.py:92: in pytest_runtest_teardown yield from thread_exception_runtest_hook() /usr/lib/python3/dist-packages/_pytest/threadexception.py:63: in thread_exception_runtest_hook yield /usr/lib/python3/dist-packages/_pytest/unraisableexception.py:95: in pytest_runtest_teardown yield from unraisable_exception_runtest_hook() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ def unraisable_exception_runtest_hook() -> Generator[None, None, None]: with catch_unraisable_exception() as cm: try: yield finally: if cm.unraisable: if cm.unraisable.err_msg is not None: err_msg = cm.unraisable.err_msg else: err_msg = "Exception ignored in" msg = f"{err_msg}: {cm.unraisable.object!r}\n\n" msg += "".join( traceback.format_exception( cm.unraisable.exc_type, cm.unraisable.exc_value, cm.unraisable.exc_traceback, ) ) > warnings.warn(pytest.PytestUnraisableExceptionWarning(msg)) E pytest.PytestUnraisableExceptionWarning: Exception ignored in: E E Traceback (most recent call last): E File "/build/reproducible-path/aiorwlock-1.0.0/tests/conftest.py", line 44, in event_loop E gc.collect() E ResourceWarning: unclosed /usr/lib/python3/dist-packages/_pytest/unraisableexception.py:80: PytestUnraisableExceptionWarning ______________ ERROR at teardown of test_repr[debug:true-uvloop] _______________ cls = func = . at 0xf6576c08> when = 'teardown' reraise = (, ) @classmethod def from_call( cls, func: Callable[[], TResult], when: Literal["collect", "setup", "call", "teardown"], reraise: Optional[ Union[Type[BaseException], Tuple[Type[BaseException], ...]] ] = None, ) -> "CallInfo[TResult]": """Call func, wrapping the result in a CallInfo. :param func: The function to call. Called without arguments. :param when: The phase in which the function is called. :param reraise: Exception or exceptions that shall propagate if raised by the function, instead of being wrapped in the CallInfo. """ excinfo = None start = timing.time() precise_start = timing.perf_counter() try: > result: Optional[TResult] = func() /usr/lib/python3/dist-packages/_pytest/runner.py:341: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/dist-packages/_pytest/runner.py:241: in lambda: runtest_hook(item=item, **kwds), when=when, reraise=reraise /usr/lib/python3/dist-packages/pluggy/_hooks.py:513: in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) /usr/lib/python3/dist-packages/pluggy/_manager.py:120: in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) /usr/lib/python3/dist-packages/_pytest/threadexception.py:92: in pytest_runtest_teardown yield from thread_exception_runtest_hook() /usr/lib/python3/dist-packages/_pytest/threadexception.py:63: in thread_exception_runtest_hook yield /usr/lib/python3/dist-packages/_pytest/unraisableexception.py:95: in pytest_runtest_teardown yield from unraisable_exception_runtest_hook() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ def unraisable_exception_runtest_hook() -> Generator[None, None, None]: with catch_unraisable_exception() as cm: try: yield finally: if cm.unraisable: if cm.unraisable.err_msg is not None: err_msg = cm.unraisable.err_msg else: err_msg = "Exception ignored in" msg = f"{err_msg}: {cm.unraisable.object!r}\n\n" msg += "".join( traceback.format_exception( cm.unraisable.exc_type, cm.unraisable.exc_value, cm.unraisable.exc_traceback, ) ) > warnings.warn(pytest.PytestUnraisableExceptionWarning(msg)) E pytest.PytestUnraisableExceptionWarning: Exception ignored in: E E Traceback (most recent call last): E File "/build/reproducible-path/aiorwlock-1.0.0/tests/conftest.py", line 44, in event_loop E gc.collect() E ResourceWarning: unclosed /usr/lib/python3/dist-packages/_pytest/unraisableexception.py:80: PytestUnraisableExceptionWarning ________ ERROR at teardown of test_release_unlocked[debug:true-uvloop] _________ cls = func = . at 0xf66249d8> when = 'teardown' reraise = (, ) @classmethod def from_call( cls, func: Callable[[], TResult], when: Literal["collect", "setup", "call", "teardown"], reraise: Optional[ Union[Type[BaseException], Tuple[Type[BaseException], ...]] ] = None, ) -> "CallInfo[TResult]": """Call func, wrapping the result in a CallInfo. :param func: The function to call. Called without arguments. :param when: The phase in which the function is called. :param reraise: Exception or exceptions that shall propagate if raised by the function, instead of being wrapped in the CallInfo. """ excinfo = None start = timing.time() precise_start = timing.perf_counter() try: > result: Optional[TResult] = func() /usr/lib/python3/dist-packages/_pytest/runner.py:341: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/dist-packages/_pytest/runner.py:241: in lambda: runtest_hook(item=item, **kwds), when=when, reraise=reraise /usr/lib/python3/dist-packages/pluggy/_hooks.py:513: in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) /usr/lib/python3/dist-packages/pluggy/_manager.py:120: in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) /usr/lib/python3/dist-packages/_pytest/threadexception.py:92: in pytest_runtest_teardown yield from thread_exception_runtest_hook() /usr/lib/python3/dist-packages/_pytest/threadexception.py:63: in thread_exception_runtest_hook yield /usr/lib/python3/dist-packages/_pytest/unraisableexception.py:95: in pytest_runtest_teardown yield from unraisable_exception_runtest_hook() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ def unraisable_exception_runtest_hook() -> Generator[None, None, None]: with catch_unraisable_exception() as cm: try: yield finally: if cm.unraisable: if cm.unraisable.err_msg is not None: err_msg = cm.unraisable.err_msg else: err_msg = "Exception ignored in" msg = f"{err_msg}: {cm.unraisable.object!r}\n\n" msg += "".join( traceback.format_exception( cm.unraisable.exc_type, cm.unraisable.exc_value, cm.unraisable.exc_traceback, ) ) > warnings.warn(pytest.PytestUnraisableExceptionWarning(msg)) E pytest.PytestUnraisableExceptionWarning: Exception ignored in: E E Traceback (most recent call last): E File "/build/reproducible-path/aiorwlock-1.0.0/tests/conftest.py", line 44, in event_loop E gc.collect() E ResourceWarning: unclosed /usr/lib/python3/dist-packages/_pytest/unraisableexception.py:80: PytestUnraisableExceptionWarning ________ ERROR at teardown of test_many_readers[debug:true-slow-uvloop] ________ cls = func = . at 0xf6576398> when = 'teardown' reraise = (, ) @classmethod def from_call( cls, func: Callable[[], TResult], when: Literal["collect", "setup", "call", "teardown"], reraise: Optional[ Union[Type[BaseException], Tuple[Type[BaseException], ...]] ] = None, ) -> "CallInfo[TResult]": """Call func, wrapping the result in a CallInfo. :param func: The function to call. Called without arguments. :param when: The phase in which the function is called. :param reraise: Exception or exceptions that shall propagate if raised by the function, instead of being wrapped in the CallInfo. """ excinfo = None start = timing.time() precise_start = timing.perf_counter() try: > result: Optional[TResult] = func() /usr/lib/python3/dist-packages/_pytest/runner.py:341: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/dist-packages/_pytest/runner.py:241: in lambda: runtest_hook(item=item, **kwds), when=when, reraise=reraise /usr/lib/python3/dist-packages/pluggy/_hooks.py:513: in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) /usr/lib/python3/dist-packages/pluggy/_manager.py:120: in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) /usr/lib/python3/dist-packages/_pytest/threadexception.py:92: in pytest_runtest_teardown yield from thread_exception_runtest_hook() /usr/lib/python3/dist-packages/_pytest/threadexception.py:63: in thread_exception_runtest_hook yield /usr/lib/python3/dist-packages/_pytest/unraisableexception.py:95: in pytest_runtest_teardown yield from unraisable_exception_runtest_hook() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ def unraisable_exception_runtest_hook() -> Generator[None, None, None]: with catch_unraisable_exception() as cm: try: yield finally: if cm.unraisable: if cm.unraisable.err_msg is not None: err_msg = cm.unraisable.err_msg else: err_msg = "Exception ignored in" msg = f"{err_msg}: {cm.unraisable.object!r}\n\n" msg += "".join( traceback.format_exception( cm.unraisable.exc_type, cm.unraisable.exc_value, cm.unraisable.exc_traceback, ) ) > warnings.warn(pytest.PytestUnraisableExceptionWarning(msg)) E pytest.PytestUnraisableExceptionWarning: Exception ignored in: E E Traceback (most recent call last): E File "/build/reproducible-path/aiorwlock-1.0.0/tests/conftest.py", line 44, in event_loop E gc.collect() E ResourceWarning: unclosed /usr/lib/python3/dist-packages/_pytest/unraisableexception.py:80: PytestUnraisableExceptionWarning ______ ERROR at teardown of test_reader_recursion[debug:true-slow-uvloop] ______ cls = func = . at 0xf6572a78> when = 'teardown' reraise = (, ) @classmethod def from_call( cls, func: Callable[[], TResult], when: Literal["collect", "setup", "call", "teardown"], reraise: Optional[ Union[Type[BaseException], Tuple[Type[BaseException], ...]] ] = None, ) -> "CallInfo[TResult]": """Call func, wrapping the result in a CallInfo. :param func: The function to call. Called without arguments. :param when: The phase in which the function is called. :param reraise: Exception or exceptions that shall propagate if raised by the function, instead of being wrapped in the CallInfo. """ excinfo = None start = timing.time() precise_start = timing.perf_counter() try: > result: Optional[TResult] = func() /usr/lib/python3/dist-packages/_pytest/runner.py:341: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/dist-packages/_pytest/runner.py:241: in lambda: runtest_hook(item=item, **kwds), when=when, reraise=reraise /usr/lib/python3/dist-packages/pluggy/_hooks.py:513: in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) /usr/lib/python3/dist-packages/pluggy/_manager.py:120: in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) /usr/lib/python3/dist-packages/_pytest/threadexception.py:92: in pytest_runtest_teardown yield from thread_exception_runtest_hook() /usr/lib/python3/dist-packages/_pytest/threadexception.py:63: in thread_exception_runtest_hook yield /usr/lib/python3/dist-packages/_pytest/unraisableexception.py:95: in pytest_runtest_teardown yield from unraisable_exception_runtest_hook() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ def unraisable_exception_runtest_hook() -> Generator[None, None, None]: with catch_unraisable_exception() as cm: try: yield finally: if cm.unraisable: if cm.unraisable.err_msg is not None: err_msg = cm.unraisable.err_msg else: err_msg = "Exception ignored in" msg = f"{err_msg}: {cm.unraisable.object!r}\n\n" msg += "".join( traceback.format_exception( cm.unraisable.exc_type, cm.unraisable.exc_value, cm.unraisable.exc_traceback, ) ) > warnings.warn(pytest.PytestUnraisableExceptionWarning(msg)) E pytest.PytestUnraisableExceptionWarning: Exception ignored in: E E Traceback (most recent call last): E File "/build/reproducible-path/aiorwlock-1.0.0/tests/conftest.py", line 44, in event_loop E gc.collect() E ResourceWarning: unclosed /usr/lib/python3/dist-packages/_pytest/unraisableexception.py:80: PytestUnraisableExceptionWarning ______ ERROR at teardown of test_writer_recursion[debug:true-slow-uvloop] ______ cls = func = . at 0xf655fd48> when = 'teardown' reraise = (, ) @classmethod def from_call( cls, func: Callable[[], TResult], when: Literal["collect", "setup", "call", "teardown"], reraise: Optional[ Union[Type[BaseException], Tuple[Type[BaseException], ...]] ] = None, ) -> "CallInfo[TResult]": """Call func, wrapping the result in a CallInfo. :param func: The function to call. Called without arguments. :param when: The phase in which the function is called. :param reraise: Exception or exceptions that shall propagate if raised by the function, instead of being wrapped in the CallInfo. """ excinfo = None start = timing.time() precise_start = timing.perf_counter() try: > result: Optional[TResult] = func() /usr/lib/python3/dist-packages/_pytest/runner.py:341: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/dist-packages/_pytest/runner.py:241: in lambda: runtest_hook(item=item, **kwds), when=when, reraise=reraise /usr/lib/python3/dist-packages/pluggy/_hooks.py:513: in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) /usr/lib/python3/dist-packages/pluggy/_manager.py:120: in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) /usr/lib/python3/dist-packages/_pytest/threadexception.py:92: in pytest_runtest_teardown yield from thread_exception_runtest_hook() /usr/lib/python3/dist-packages/_pytest/threadexception.py:63: in thread_exception_runtest_hook yield /usr/lib/python3/dist-packages/_pytest/unraisableexception.py:95: in pytest_runtest_teardown yield from unraisable_exception_runtest_hook() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ def unraisable_exception_runtest_hook() -> Generator[None, None, None]: with catch_unraisable_exception() as cm: try: yield finally: if cm.unraisable: if cm.unraisable.err_msg is not None: err_msg = cm.unraisable.err_msg else: err_msg = "Exception ignored in" msg = f"{err_msg}: {cm.unraisable.object!r}\n\n" msg += "".join( traceback.format_exception( cm.unraisable.exc_type, cm.unraisable.exc_value, cm.unraisable.exc_traceback, ) ) > warnings.warn(pytest.PytestUnraisableExceptionWarning(msg)) E pytest.PytestUnraisableExceptionWarning: Exception ignored in: E E Traceback (most recent call last): E File "/build/reproducible-path/aiorwlock-1.0.0/tests/conftest.py", line 44, in event_loop E gc.collect() E ResourceWarning: unclosed /usr/lib/python3/dist-packages/_pytest/unraisableexception.py:80: PytestUnraisableExceptionWarning _ ERROR at teardown of test_writer_then_reader_recursion[debug:true-slow-uvloop] _ cls = func = . at 0xf66249d8> when = 'teardown' reraise = (, ) @classmethod def from_call( cls, func: Callable[[], TResult], when: Literal["collect", "setup", "call", "teardown"], reraise: Optional[ Union[Type[BaseException], Tuple[Type[BaseException], ...]] ] = None, ) -> "CallInfo[TResult]": """Call func, wrapping the result in a CallInfo. :param func: The function to call. Called without arguments. :param when: The phase in which the function is called. :param reraise: Exception or exceptions that shall propagate if raised by the function, instead of being wrapped in the CallInfo. """ excinfo = None start = timing.time() precise_start = timing.perf_counter() try: > result: Optional[TResult] = func() /usr/lib/python3/dist-packages/_pytest/runner.py:341: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/dist-packages/_pytest/runner.py:241: in lambda: runtest_hook(item=item, **kwds), when=when, reraise=reraise /usr/lib/python3/dist-packages/pluggy/_hooks.py:513: in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) /usr/lib/python3/dist-packages/pluggy/_manager.py:120: in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) /usr/lib/python3/dist-packages/_pytest/threadexception.py:92: in pytest_runtest_teardown yield from thread_exception_runtest_hook() /usr/lib/python3/dist-packages/_pytest/threadexception.py:63: in thread_exception_runtest_hook yield /usr/lib/python3/dist-packages/_pytest/unraisableexception.py:95: in pytest_runtest_teardown yield from unraisable_exception_runtest_hook() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ def unraisable_exception_runtest_hook() -> Generator[None, None, None]: with catch_unraisable_exception() as cm: try: yield finally: if cm.unraisable: if cm.unraisable.err_msg is not None: err_msg = cm.unraisable.err_msg else: err_msg = "Exception ignored in" msg = f"{err_msg}: {cm.unraisable.object!r}\n\n" msg += "".join( traceback.format_exception( cm.unraisable.exc_type, cm.unraisable.exc_value, cm.unraisable.exc_traceback, ) ) > warnings.warn(pytest.PytestUnraisableExceptionWarning(msg)) E pytest.PytestUnraisableExceptionWarning: Exception ignored in: E E Traceback (most recent call last): E File "/build/reproducible-path/aiorwlock-1.0.0/tests/conftest.py", line 44, in event_loop E gc.collect() E ResourceWarning: unclosed /usr/lib/python3/dist-packages/_pytest/unraisableexception.py:80: PytestUnraisableExceptionWarning ---------------------------- Captured log teardown ----------------------------- ERROR asyncio:conftest.py:44 Task was destroyed but it is pending! source_traceback: Object created at (most recent call last): File "", line 198, in _run_module_as_main File "", line 88, in _run_code File "/usr/lib/python3/dist-packages/pytest/__main__.py", line 7, in raise SystemExit(pytest.console_main()) File "/usr/lib/python3/dist-packages/_pytest/config/__init__.py", line 206, in console_main code = main() File "/usr/lib/python3/dist-packages/_pytest/config/__init__.py", line 178, in main ret: Union[ExitCode, int] = config.hook.pytest_cmdline_main( File "/usr/lib/python3/dist-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3/dist-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3/dist-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3/dist-packages/_pytest/main.py", line 332, in pytest_cmdline_main return wrap_session(config, _main) File "/usr/lib/python3/dist-packages/_pytest/main.py", line 285, in wrap_session session.exitstatus = doit(config, session) or 0 File "/usr/lib/python3/dist-packages/_pytest/main.py", line 339, in _main config.hook.pytest_runtestloop(session=session) File "/usr/lib/python3/dist-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3/dist-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3/dist-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3/dist-packages/_pytest/main.py", line 364, in pytest_runtestloop item.config.hook.pytest_runtest_protocol(item=item, nextitem=nextitem) File "/usr/lib/python3/dist-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3/dist-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3/dist-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3/dist-packages/_pytest/runner.py", line 116, in pytest_runtest_protocol runtestprotocol(item, nextitem=nextitem) File "/usr/lib/python3/dist-packages/_pytest/runner.py", line 135, in runtestprotocol reports.append(call_and_report(item, "call", log)) File "/usr/lib/python3/dist-packages/_pytest/runner.py", line 240, in call_and_report call = CallInfo.from_call( File "/usr/lib/python3/dist-packages/_pytest/runner.py", line 341, in from_call result: Optional[TResult] = func() File "/usr/lib/python3/dist-packages/_pytest/runner.py", line 241, in lambda: runtest_hook(item=item, **kwds), when=when, reraise=reraise File "/usr/lib/python3/dist-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3/dist-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3/dist-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3/dist-packages/_pytest/runner.py", line 173, in pytest_runtest_call item.runtest() File "/usr/lib/python3/dist-packages/_pytest/python.py", line 1632, in runtest self.ihook.pytest_pyfunc_call(pyfuncitem=self) File "/usr/lib/python3/dist-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3/dist-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3/dist-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3/dist-packages/_pytest/python.py", line 162, in pytest_pyfunc_call result = testfunction(**testargs) File "/usr/lib/python3/dist-packages/pytest_asyncio/plugin.py", line 478, in inner _loop.run_until_complete(task) File "/build/reproducible-path/aiorwlock-1.0.0/tests/test_rwlock.py", line 215, in test_writer_recursion await Bunch(f, N).wait_for_finished() File "/build/reproducible-path/aiorwlock-1.0.0/tests/test_rwlock.py", line 37, in __init__ t = asyncio.Task(task()) task: .task() running at /build/reproducible-path/aiorwlock-1.0.0/tests/test_rwlock.py:30> wait_for= cb=[gather.._done_callback() at /usr/lib/python3.11/asyncio/tasks.py:764] created at /build/reproducible-path/aiorwlock-1.0.0/tests/test_rwlock.py:37> ERROR asyncio:conftest.py:44 Task was destroyed but it is pending! source_traceback: Object created at (most recent call last): File "", line 198, in _run_module_as_main File "", line 88, in _run_code File "/usr/lib/python3/dist-packages/pytest/__main__.py", line 7, in raise SystemExit(pytest.console_main()) File "/usr/lib/python3/dist-packages/_pytest/config/__init__.py", line 206, in console_main code = main() File "/usr/lib/python3/dist-packages/_pytest/config/__init__.py", line 178, in main ret: Union[ExitCode, int] = config.hook.pytest_cmdline_main( File "/usr/lib/python3/dist-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3/dist-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3/dist-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3/dist-packages/_pytest/main.py", line 332, in pytest_cmdline_main return wrap_session(config, _main) File "/usr/lib/python3/dist-packages/_pytest/main.py", line 285, in wrap_session session.exitstatus = doit(config, session) or 0 File "/usr/lib/python3/dist-packages/_pytest/main.py", line 339, in _main config.hook.pytest_runtestloop(session=session) File "/usr/lib/python3/dist-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3/dist-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3/dist-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3/dist-packages/_pytest/main.py", line 364, in pytest_runtestloop item.config.hook.pytest_runtest_protocol(item=item, nextitem=nextitem) File "/usr/lib/python3/dist-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3/dist-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3/dist-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3/dist-packages/_pytest/runner.py", line 116, in pytest_runtest_protocol runtestprotocol(item, nextitem=nextitem) File "/usr/lib/python3/dist-packages/_pytest/runner.py", line 135, in runtestprotocol reports.append(call_and_report(item, "call", log)) File "/usr/lib/python3/dist-packages/_pytest/runner.py", line 240, in call_and_report call = CallInfo.from_call( File "/usr/lib/python3/dist-packages/_pytest/runner.py", line 341, in from_call result: Optional[TResult] = func() File "/usr/lib/python3/dist-packages/_pytest/runner.py", line 241, in lambda: runtest_hook(item=item, **kwds), when=when, reraise=reraise File "/usr/lib/python3/dist-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3/dist-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3/dist-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3/dist-packages/_pytest/runner.py", line 173, in pytest_runtest_call item.runtest() File "/usr/lib/python3/dist-packages/_pytest/python.py", line 1632, in runtest self.ihook.pytest_pyfunc_call(pyfuncitem=self) File "/usr/lib/python3/dist-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3/dist-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3/dist-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3/dist-packages/_pytest/python.py", line 162, in pytest_pyfunc_call result = testfunction(**testargs) File "/usr/lib/python3/dist-packages/pytest_asyncio/plugin.py", line 478, in inner _loop.run_until_complete(task) File "/build/reproducible-path/aiorwlock-1.0.0/tests/test_rwlock.py", line 215, in test_writer_recursion await Bunch(f, N).wait_for_finished() File "/build/reproducible-path/aiorwlock-1.0.0/tests/test_rwlock.py", line 37, in __init__ t = asyncio.Task(task()) task: .task() running at /build/reproducible-path/aiorwlock-1.0.0/tests/test_rwlock.py:30> wait_for= cb=[gather.._done_callback() at /usr/lib/python3.11/asyncio/tasks.py:764] created at /build/reproducible-path/aiorwlock-1.0.0/tests/test_rwlock.py:37> ERROR asyncio:conftest.py:44 Task was destroyed but it is pending! source_traceback: Object created at (most recent call last): File "", line 198, in _run_module_as_main File "", line 88, in _run_code File "/usr/lib/python3/dist-packages/pytest/__main__.py", line 7, in raise SystemExit(pytest.console_main()) File "/usr/lib/python3/dist-packages/_pytest/config/__init__.py", line 206, in console_main code = main() File "/usr/lib/python3/dist-packages/_pytest/config/__init__.py", line 178, in main ret: Union[ExitCode, int] = config.hook.pytest_cmdline_main( File "/usr/lib/python3/dist-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3/dist-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3/dist-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3/dist-packages/_pytest/main.py", line 332, in pytest_cmdline_main return wrap_session(config, _main) File "/usr/lib/python3/dist-packages/_pytest/main.py", line 285, in wrap_session session.exitstatus = doit(config, session) or 0 File "/usr/lib/python3/dist-packages/_pytest/main.py", line 339, in _main config.hook.pytest_runtestloop(session=session) File "/usr/lib/python3/dist-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3/dist-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3/dist-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3/dist-packages/_pytest/main.py", line 364, in pytest_runtestloop item.config.hook.pytest_runtest_protocol(item=item, nextitem=nextitem) File "/usr/lib/python3/dist-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3/dist-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3/dist-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3/dist-packages/_pytest/runner.py", line 116, in pytest_runtest_protocol runtestprotocol(item, nextitem=nextitem) File "/usr/lib/python3/dist-packages/_pytest/runner.py", line 135, in runtestprotocol reports.append(call_and_report(item, "call", log)) File "/usr/lib/python3/dist-packages/_pytest/runner.py", line 240, in call_and_report call = CallInfo.from_call( File "/usr/lib/python3/dist-packages/_pytest/runner.py", line 341, in from_call result: Optional[TResult] = func() File "/usr/lib/python3/dist-packages/_pytest/runner.py", line 241, in lambda: runtest_hook(item=item, **kwds), when=when, reraise=reraise File "/usr/lib/python3/dist-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3/dist-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3/dist-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3/dist-packages/_pytest/runner.py", line 173, in pytest_runtest_call item.runtest() File "/usr/lib/python3/dist-packages/_pytest/python.py", line 1632, in runtest self.ihook.pytest_pyfunc_call(pyfuncitem=self) File "/usr/lib/python3/dist-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3/dist-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3/dist-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3/dist-packages/_pytest/python.py", line 162, in pytest_pyfunc_call result = testfunction(**testargs) File "/usr/lib/python3/dist-packages/pytest_asyncio/plugin.py", line 478, in inner _loop.run_until_complete(task) File "/build/reproducible-path/aiorwlock-1.0.0/tests/test_rwlock.py", line 215, in test_writer_recursion await Bunch(f, N).wait_for_finished() File "/build/reproducible-path/aiorwlock-1.0.0/tests/test_rwlock.py", line 37, in __init__ t = asyncio.Task(task()) task: .task() running at /build/reproducible-path/aiorwlock-1.0.0/tests/test_rwlock.py:30> wait_for= cb=[gather.._done_callback() at /usr/lib/python3.11/asyncio/tasks.py:764] created at /build/reproducible-path/aiorwlock-1.0.0/tests/test_rwlock.py:37> ERROR asyncio:conftest.py:44 Task was destroyed but it is pending! source_traceback: Object created at (most recent call last): File "", line 198, in _run_module_as_main File "", line 88, in _run_code File "/usr/lib/python3/dist-packages/pytest/__main__.py", line 7, in raise SystemExit(pytest.console_main()) File "/usr/lib/python3/dist-packages/_pytest/config/__init__.py", line 206, in console_main code = main() File "/usr/lib/python3/dist-packages/_pytest/config/__init__.py", line 178, in main ret: Union[ExitCode, int] = config.hook.pytest_cmdline_main( File "/usr/lib/python3/dist-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3/dist-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3/dist-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3/dist-packages/_pytest/main.py", line 332, in pytest_cmdline_main return wrap_session(config, _main) File "/usr/lib/python3/dist-packages/_pytest/main.py", line 285, in wrap_session session.exitstatus = doit(config, session) or 0 File "/usr/lib/python3/dist-packages/_pytest/main.py", line 339, in _main config.hook.pytest_runtestloop(session=session) File "/usr/lib/python3/dist-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3/dist-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3/dist-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3/dist-packages/_pytest/main.py", line 364, in pytest_runtestloop item.config.hook.pytest_runtest_protocol(item=item, nextitem=nextitem) File "/usr/lib/python3/dist-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3/dist-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3/dist-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3/dist-packages/_pytest/runner.py", line 116, in pytest_runtest_protocol runtestprotocol(item, nextitem=nextitem) File "/usr/lib/python3/dist-packages/_pytest/runner.py", line 135, in runtestprotocol reports.append(call_and_report(item, "call", log)) File "/usr/lib/python3/dist-packages/_pytest/runner.py", line 240, in call_and_report call = CallInfo.from_call( File "/usr/lib/python3/dist-packages/_pytest/runner.py", line 341, in from_call result: Optional[TResult] = func() File "/usr/lib/python3/dist-packages/_pytest/runner.py", line 241, in lambda: runtest_hook(item=item, **kwds), when=when, reraise=reraise File "/usr/lib/python3/dist-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3/dist-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3/dist-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3/dist-packages/_pytest/runner.py", line 173, in pytest_runtest_call item.runtest() File "/usr/lib/python3/dist-packages/_pytest/python.py", line 1632, in runtest self.ihook.pytest_pyfunc_call(pyfuncitem=self) File "/usr/lib/python3/dist-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3/dist-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3/dist-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3/dist-packages/_pytest/python.py", line 162, in pytest_pyfunc_call result = testfunction(**testargs) File "/usr/lib/python3/dist-packages/pytest_asyncio/plugin.py", line 478, in inner _loop.run_until_complete(task) File "/build/reproducible-path/aiorwlock-1.0.0/tests/test_rwlock.py", line 215, in test_writer_recursion await Bunch(f, N).wait_for_finished() File "/build/reproducible-path/aiorwlock-1.0.0/tests/test_rwlock.py", line 37, in __init__ t = asyncio.Task(task()) task: .task() running at /build/reproducible-path/aiorwlock-1.0.0/tests/test_rwlock.py:30> wait_for= cb=[gather.._done_callback() at /usr/lib/python3.11/asyncio/tasks.py:764] created at /build/reproducible-path/aiorwlock-1.0.0/tests/test_rwlock.py:37> ______ ERROR at teardown of test_readers_writers[debug:true-slow-uvloop] _______ cls = func = . at 0xf655fd48> when = 'teardown' reraise = (, ) @classmethod def from_call( cls, func: Callable[[], TResult], when: Literal["collect", "setup", "call", "teardown"], reraise: Optional[ Union[Type[BaseException], Tuple[Type[BaseException], ...]] ] = None, ) -> "CallInfo[TResult]": """Call func, wrapping the result in a CallInfo. :param func: The function to call. Called without arguments. :param when: The phase in which the function is called. :param reraise: Exception or exceptions that shall propagate if raised by the function, instead of being wrapped in the CallInfo. """ excinfo = None start = timing.time() precise_start = timing.perf_counter() try: > result: Optional[TResult] = func() /usr/lib/python3/dist-packages/_pytest/runner.py:341: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/dist-packages/_pytest/runner.py:241: in lambda: runtest_hook(item=item, **kwds), when=when, reraise=reraise /usr/lib/python3/dist-packages/pluggy/_hooks.py:513: in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) /usr/lib/python3/dist-packages/pluggy/_manager.py:120: in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) /usr/lib/python3/dist-packages/_pytest/threadexception.py:92: in pytest_runtest_teardown yield from thread_exception_runtest_hook() /usr/lib/python3/dist-packages/_pytest/threadexception.py:63: in thread_exception_runtest_hook yield /usr/lib/python3/dist-packages/_pytest/unraisableexception.py:95: in pytest_runtest_teardown yield from unraisable_exception_runtest_hook() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ def unraisable_exception_runtest_hook() -> Generator[None, None, None]: with catch_unraisable_exception() as cm: try: yield finally: if cm.unraisable: if cm.unraisable.err_msg is not None: err_msg = cm.unraisable.err_msg else: err_msg = "Exception ignored in" msg = f"{err_msg}: {cm.unraisable.object!r}\n\n" msg += "".join( traceback.format_exception( cm.unraisable.exc_type, cm.unraisable.exc_value, cm.unraisable.exc_traceback, ) ) > warnings.warn(pytest.PytestUnraisableExceptionWarning(msg)) E pytest.PytestUnraisableExceptionWarning: Exception ignored in: E E Traceback (most recent call last): E File "/build/reproducible-path/aiorwlock-1.0.0/tests/conftest.py", line 44, in event_loop E gc.collect() E ResourceWarning: unclosed /usr/lib/python3/dist-packages/_pytest/unraisableexception.py:80: PytestUnraisableExceptionWarning ---------------------------- Captured log teardown ----------------------------- ERROR asyncio:conftest.py:44 Task was destroyed but it is pending! source_traceback: Object created at (most recent call last): File "", line 198, in _run_module_as_main File "", line 88, in _run_code File "/usr/lib/python3/dist-packages/pytest/__main__.py", line 7, in raise SystemExit(pytest.console_main()) File "/usr/lib/python3/dist-packages/_pytest/config/__init__.py", line 206, in console_main code = main() File "/usr/lib/python3/dist-packages/_pytest/config/__init__.py", line 178, in main ret: Union[ExitCode, int] = config.hook.pytest_cmdline_main( File "/usr/lib/python3/dist-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3/dist-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3/dist-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3/dist-packages/_pytest/main.py", line 332, in pytest_cmdline_main return wrap_session(config, _main) File "/usr/lib/python3/dist-packages/_pytest/main.py", line 285, in wrap_session session.exitstatus = doit(config, session) or 0 File "/usr/lib/python3/dist-packages/_pytest/main.py", line 339, in _main config.hook.pytest_runtestloop(session=session) File "/usr/lib/python3/dist-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3/dist-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3/dist-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3/dist-packages/_pytest/main.py", line 364, in pytest_runtestloop item.config.hook.pytest_runtest_protocol(item=item, nextitem=nextitem) File "/usr/lib/python3/dist-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3/dist-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3/dist-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3/dist-packages/_pytest/runner.py", line 116, in pytest_runtest_protocol runtestprotocol(item, nextitem=nextitem) File "/usr/lib/python3/dist-packages/_pytest/runner.py", line 135, in runtestprotocol reports.append(call_and_report(item, "call", log)) File "/usr/lib/python3/dist-packages/_pytest/runner.py", line 240, in call_and_report call = CallInfo.from_call( File "/usr/lib/python3/dist-packages/_pytest/runner.py", line 341, in from_call result: Optional[TResult] = func() File "/usr/lib/python3/dist-packages/_pytest/runner.py", line 241, in lambda: runtest_hook(item=item, **kwds), when=when, reraise=reraise File "/usr/lib/python3/dist-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3/dist-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3/dist-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3/dist-packages/_pytest/runner.py", line 173, in pytest_runtest_call item.runtest() File "/usr/lib/python3/dist-packages/_pytest/python.py", line 1632, in runtest self.ihook.pytest_pyfunc_call(pyfuncitem=self) File "/usr/lib/python3/dist-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3/dist-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3/dist-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3/dist-packages/_pytest/python.py", line 162, in pytest_pyfunc_call result = testfunction(**testargs) File "/usr/lib/python3/dist-packages/pytest_asyncio/plugin.py", line 478, in inner _loop.run_until_complete(task) File "/build/reproducible-path/aiorwlock-1.0.0/tests/test_rwlock.py", line 241, in test_writer_then_reader_recursion await Bunch(f, N).wait_for_finished() File "/build/reproducible-path/aiorwlock-1.0.0/tests/test_rwlock.py", line 37, in __init__ t = asyncio.Task(task()) task: .task() running at /build/reproducible-path/aiorwlock-1.0.0/tests/test_rwlock.py:30> wait_for= cb=[gather.._done_callback() at /usr/lib/python3.11/asyncio/tasks.py:764] created at /build/reproducible-path/aiorwlock-1.0.0/tests/test_rwlock.py:37> ERROR asyncio:conftest.py:44 Task was destroyed but it is pending! source_traceback: Object created at (most recent call last): File "", line 198, in _run_module_as_main File "", line 88, in _run_code File "/usr/lib/python3/dist-packages/pytest/__main__.py", line 7, in raise SystemExit(pytest.console_main()) File "/usr/lib/python3/dist-packages/_pytest/config/__init__.py", line 206, in console_main code = main() File "/usr/lib/python3/dist-packages/_pytest/config/__init__.py", line 178, in main ret: Union[ExitCode, int] = config.hook.pytest_cmdline_main( File "/usr/lib/python3/dist-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3/dist-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3/dist-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3/dist-packages/_pytest/main.py", line 332, in pytest_cmdline_main return wrap_session(config, _main) File "/usr/lib/python3/dist-packages/_pytest/main.py", line 285, in wrap_session session.exitstatus = doit(config, session) or 0 File "/usr/lib/python3/dist-packages/_pytest/main.py", line 339, in _main config.hook.pytest_runtestloop(session=session) File "/usr/lib/python3/dist-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3/dist-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3/dist-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3/dist-packages/_pytest/main.py", line 364, in pytest_runtestloop item.config.hook.pytest_runtest_protocol(item=item, nextitem=nextitem) File "/usr/lib/python3/dist-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3/dist-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3/dist-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3/dist-packages/_pytest/runner.py", line 116, in pytest_runtest_protocol runtestprotocol(item, nextitem=nextitem) File "/usr/lib/python3/dist-packages/_pytest/runner.py", line 135, in runtestprotocol reports.append(call_and_report(item, "call", log)) File "/usr/lib/python3/dist-packages/_pytest/runner.py", line 240, in call_and_report call = CallInfo.from_call( File "/usr/lib/python3/dist-packages/_pytest/runner.py", line 341, in from_call result: Optional[TResult] = func() File "/usr/lib/python3/dist-packages/_pytest/runner.py", line 241, in lambda: runtest_hook(item=item, **kwds), when=when, reraise=reraise File "/usr/lib/python3/dist-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3/dist-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3/dist-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3/dist-packages/_pytest/runner.py", line 173, in pytest_runtest_call item.runtest() File "/usr/lib/python3/dist-packages/_pytest/python.py", line 1632, in runtest self.ihook.pytest_pyfunc_call(pyfuncitem=self) File "/usr/lib/python3/dist-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3/dist-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3/dist-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3/dist-packages/_pytest/python.py", line 162, in pytest_pyfunc_call result = testfunction(**testargs) File "/usr/lib/python3/dist-packages/pytest_asyncio/plugin.py", line 478, in inner _loop.run_until_complete(task) File "/build/reproducible-path/aiorwlock-1.0.0/tests/test_rwlock.py", line 241, in test_writer_then_reader_recursion await Bunch(f, N).wait_for_finished() File "/build/reproducible-path/aiorwlock-1.0.0/tests/test_rwlock.py", line 37, in __init__ t = asyncio.Task(task()) task: .task() running at /build/reproducible-path/aiorwlock-1.0.0/tests/test_rwlock.py:30> wait_for= cb=[gather.._done_callback() at /usr/lib/python3.11/asyncio/tasks.py:764] created at /build/reproducible-path/aiorwlock-1.0.0/tests/test_rwlock.py:37> ERROR asyncio:conftest.py:44 Task was destroyed but it is pending! source_traceback: Object created at (most recent call last): File "", line 198, in _run_module_as_main File "", line 88, in _run_code File "/usr/lib/python3/dist-packages/pytest/__main__.py", line 7, in raise SystemExit(pytest.console_main()) File "/usr/lib/python3/dist-packages/_pytest/config/__init__.py", line 206, in console_main code = main() File "/usr/lib/python3/dist-packages/_pytest/config/__init__.py", line 178, in main ret: Union[ExitCode, int] = config.hook.pytest_cmdline_main( File "/usr/lib/python3/dist-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3/dist-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3/dist-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3/dist-packages/_pytest/main.py", line 332, in pytest_cmdline_main return wrap_session(config, _main) File "/usr/lib/python3/dist-packages/_pytest/main.py", line 285, in wrap_session session.exitstatus = doit(config, session) or 0 File "/usr/lib/python3/dist-packages/_pytest/main.py", line 339, in _main config.hook.pytest_runtestloop(session=session) File "/usr/lib/python3/dist-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3/dist-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3/dist-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3/dist-packages/_pytest/main.py", line 364, in pytest_runtestloop item.config.hook.pytest_runtest_protocol(item=item, nextitem=nextitem) File "/usr/lib/python3/dist-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3/dist-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3/dist-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3/dist-packages/_pytest/runner.py", line 116, in pytest_runtest_protocol runtestprotocol(item, nextitem=nextitem) File "/usr/lib/python3/dist-packages/_pytest/runner.py", line 135, in runtestprotocol reports.append(call_and_report(item, "call", log)) File "/usr/lib/python3/dist-packages/_pytest/runner.py", line 240, in call_and_report call = CallInfo.from_call( File "/usr/lib/python3/dist-packages/_pytest/runner.py", line 341, in from_call result: Optional[TResult] = func() File "/usr/lib/python3/dist-packages/_pytest/runner.py", line 241, in lambda: runtest_hook(item=item, **kwds), when=when, reraise=reraise File "/usr/lib/python3/dist-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3/dist-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3/dist-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3/dist-packages/_pytest/runner.py", line 173, in pytest_runtest_call item.runtest() File "/usr/lib/python3/dist-packages/_pytest/python.py", line 1632, in runtest self.ihook.pytest_pyfunc_call(pyfuncitem=self) File "/usr/lib/python3/dist-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3/dist-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3/dist-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3/dist-packages/_pytest/python.py", line 162, in pytest_pyfunc_call result = testfunction(**testargs) File "/usr/lib/python3/dist-packages/pytest_asyncio/plugin.py", line 478, in inner _loop.run_until_complete(task) File "/build/reproducible-path/aiorwlock-1.0.0/tests/test_rwlock.py", line 241, in test_writer_then_reader_recursion await Bunch(f, N).wait_for_finished() File "/build/reproducible-path/aiorwlock-1.0.0/tests/test_rwlock.py", line 37, in __init__ t = asyncio.Task(task()) task: .task() running at /build/reproducible-path/aiorwlock-1.0.0/tests/test_rwlock.py:30> wait_for= cb=[gather.._done_callback() at /usr/lib/python3.11/asyncio/tasks.py:764] created at /build/reproducible-path/aiorwlock-1.0.0/tests/test_rwlock.py:37> ERROR asyncio:conftest.py:44 Task was destroyed but it is pending! source_traceback: Object created at (most recent call last): File "", line 198, in _run_module_as_main File "", line 88, in _run_code File "/usr/lib/python3/dist-packages/pytest/__main__.py", line 7, in raise SystemExit(pytest.console_main()) File "/usr/lib/python3/dist-packages/_pytest/config/__init__.py", line 206, in console_main code = main() File "/usr/lib/python3/dist-packages/_pytest/config/__init__.py", line 178, in main ret: Union[ExitCode, int] = config.hook.pytest_cmdline_main( File "/usr/lib/python3/dist-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3/dist-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3/dist-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3/dist-packages/_pytest/main.py", line 332, in pytest_cmdline_main return wrap_session(config, _main) File "/usr/lib/python3/dist-packages/_pytest/main.py", line 285, in wrap_session session.exitstatus = doit(config, session) or 0 File "/usr/lib/python3/dist-packages/_pytest/main.py", line 339, in _main config.hook.pytest_runtestloop(session=session) File "/usr/lib/python3/dist-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3/dist-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3/dist-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3/dist-packages/_pytest/main.py", line 364, in pytest_runtestloop item.config.hook.pytest_runtest_protocol(item=item, nextitem=nextitem) File "/usr/lib/python3/dist-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3/dist-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3/dist-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3/dist-packages/_pytest/runner.py", line 116, in pytest_runtest_protocol runtestprotocol(item, nextitem=nextitem) File "/usr/lib/python3/dist-packages/_pytest/runner.py", line 135, in runtestprotocol reports.append(call_and_report(item, "call", log)) File "/usr/lib/python3/dist-packages/_pytest/runner.py", line 240, in call_and_report call = CallInfo.from_call( File "/usr/lib/python3/dist-packages/_pytest/runner.py", line 341, in from_call result: Optional[TResult] = func() File "/usr/lib/python3/dist-packages/_pytest/runner.py", line 241, in lambda: runtest_hook(item=item, **kwds), when=when, reraise=reraise File "/usr/lib/python3/dist-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3/dist-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3/dist-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3/dist-packages/_pytest/runner.py", line 173, in pytest_runtest_call item.runtest() File "/usr/lib/python3/dist-packages/_pytest/python.py", line 1632, in runtest self.ihook.pytest_pyfunc_call(pyfuncitem=self) File "/usr/lib/python3/dist-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3/dist-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3/dist-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3/dist-packages/_pytest/python.py", line 162, in pytest_pyfunc_call result = testfunction(**testargs) File "/usr/lib/python3/dist-packages/pytest_asyncio/plugin.py", line 478, in inner _loop.run_until_complete(task) File "/build/reproducible-path/aiorwlock-1.0.0/tests/test_rwlock.py", line 241, in test_writer_then_reader_recursion await Bunch(f, N).wait_for_finished() File "/build/reproducible-path/aiorwlock-1.0.0/tests/test_rwlock.py", line 37, in __init__ t = asyncio.Task(task()) task: .task() running at /build/reproducible-path/aiorwlock-1.0.0/tests/test_rwlock.py:30> wait_for= cb=[gather.._done_callback() at /usr/lib/python3.11/asyncio/tasks.py:764] created at /build/reproducible-path/aiorwlock-1.0.0/tests/test_rwlock.py:37> _ ERROR at teardown of test_raise_error_on_with_for_reader_lock[debug:true-slow-uvloop] _ cls = func = . at 0xf6572488> when = 'teardown' reraise = (, ) @classmethod def from_call( cls, func: Callable[[], TResult], when: Literal["collect", "setup", "call", "teardown"], reraise: Optional[ Union[Type[BaseException], Tuple[Type[BaseException], ...]] ] = None, ) -> "CallInfo[TResult]": """Call func, wrapping the result in a CallInfo. :param func: The function to call. Called without arguments. :param when: The phase in which the function is called. :param reraise: Exception or exceptions that shall propagate if raised by the function, instead of being wrapped in the CallInfo. """ excinfo = None start = timing.time() precise_start = timing.perf_counter() try: > result: Optional[TResult] = func() /usr/lib/python3/dist-packages/_pytest/runner.py:341: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/dist-packages/_pytest/runner.py:241: in lambda: runtest_hook(item=item, **kwds), when=when, reraise=reraise /usr/lib/python3/dist-packages/pluggy/_hooks.py:513: in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) /usr/lib/python3/dist-packages/pluggy/_manager.py:120: in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) /usr/lib/python3/dist-packages/_pytest/threadexception.py:92: in pytest_runtest_teardown yield from thread_exception_runtest_hook() /usr/lib/python3/dist-packages/_pytest/threadexception.py:63: in thread_exception_runtest_hook yield /usr/lib/python3/dist-packages/_pytest/unraisableexception.py:95: in pytest_runtest_teardown yield from unraisable_exception_runtest_hook() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ def unraisable_exception_runtest_hook() -> Generator[None, None, None]: with catch_unraisable_exception() as cm: try: yield finally: if cm.unraisable: if cm.unraisable.err_msg is not None: err_msg = cm.unraisable.err_msg else: err_msg = "Exception ignored in" msg = f"{err_msg}: {cm.unraisable.object!r}\n\n" msg += "".join( traceback.format_exception( cm.unraisable.exc_type, cm.unraisable.exc_value, cm.unraisable.exc_traceback, ) ) > warnings.warn(pytest.PytestUnraisableExceptionWarning(msg)) E pytest.PytestUnraisableExceptionWarning: Exception ignored in: E E Traceback (most recent call last): E File "/build/reproducible-path/aiorwlock-1.0.0/tests/conftest.py", line 44, in event_loop E gc.collect() E ResourceWarning: unclosed /usr/lib/python3/dist-packages/_pytest/unraisableexception.py:80: PytestUnraisableExceptionWarning ---------------------------- Captured log teardown ----------------------------- ERROR asyncio:conftest.py:44 Task was destroyed but it is pending! source_traceback: Object created at (most recent call last): File "", line 198, in _run_module_as_main File "", line 88, in _run_code File "/usr/lib/python3/dist-packages/pytest/__main__.py", line 7, in raise SystemExit(pytest.console_main()) File "/usr/lib/python3/dist-packages/_pytest/config/__init__.py", line 206, in console_main code = main() File "/usr/lib/python3/dist-packages/_pytest/config/__init__.py", line 178, in main ret: Union[ExitCode, int] = config.hook.pytest_cmdline_main( File "/usr/lib/python3/dist-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3/dist-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3/dist-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3/dist-packages/_pytest/main.py", line 332, in pytest_cmdline_main return wrap_session(config, _main) File "/usr/lib/python3/dist-packages/_pytest/main.py", line 285, in wrap_session session.exitstatus = doit(config, session) or 0 File "/usr/lib/python3/dist-packages/_pytest/main.py", line 339, in _main config.hook.pytest_runtestloop(session=session) File "/usr/lib/python3/dist-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3/dist-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3/dist-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3/dist-packages/_pytest/main.py", line 364, in pytest_runtestloop item.config.hook.pytest_runtest_protocol(item=item, nextitem=nextitem) File "/usr/lib/python3/dist-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3/dist-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3/dist-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3/dist-packages/_pytest/runner.py", line 116, in pytest_runtest_protocol runtestprotocol(item, nextitem=nextitem) File "/usr/lib/python3/dist-packages/_pytest/runner.py", line 135, in runtestprotocol reports.append(call_and_report(item, "call", log)) File "/usr/lib/python3/dist-packages/_pytest/runner.py", line 240, in call_and_report call = CallInfo.from_call( File "/usr/lib/python3/dist-packages/_pytest/runner.py", line 341, in from_call result: Optional[TResult] = func() File "/usr/lib/python3/dist-packages/_pytest/runner.py", line 241, in lambda: runtest_hook(item=item, **kwds), when=when, reraise=reraise File "/usr/lib/python3/dist-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3/dist-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3/dist-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3/dist-packages/_pytest/runner.py", line 173, in pytest_runtest_call item.runtest() File "/usr/lib/python3/dist-packages/_pytest/python.py", line 1632, in runtest self.ihook.pytest_pyfunc_call(pyfuncitem=self) File "/usr/lib/python3/dist-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3/dist-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3/dist-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3/dist-packages/_pytest/python.py", line 162, in pytest_pyfunc_call result = testfunction(**testargs) File "/usr/lib/python3/dist-packages/pytest_asyncio/plugin.py", line 478, in inner _loop.run_until_complete(task) File "/build/reproducible-path/aiorwlock-1.0.0/tests/test_rwlock.py", line 295, in test_readers_writers b2 = Bunch(w, N) File "/build/reproducible-path/aiorwlock-1.0.0/tests/test_rwlock.py", line 37, in __init__ t = asyncio.Task(task()) task: .task() running at /build/reproducible-path/aiorwlock-1.0.0/tests/test_rwlock.py:30> wait_for= created at /build/reproducible-path/aiorwlock-1.0.0/tests/test_rwlock.py:37> ERROR asyncio:conftest.py:44 Task was destroyed but it is pending! source_traceback: Object created at (most recent call last): File "", line 198, in _run_module_as_main File "", line 88, in _run_code File "/usr/lib/python3/dist-packages/pytest/__main__.py", line 7, in raise SystemExit(pytest.console_main()) File "/usr/lib/python3/dist-packages/_pytest/config/__init__.py", line 206, in console_main code = main() File "/usr/lib/python3/dist-packages/_pytest/config/__init__.py", line 178, in main ret: Union[ExitCode, int] = config.hook.pytest_cmdline_main( File "/usr/lib/python3/dist-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3/dist-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3/dist-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3/dist-packages/_pytest/main.py", line 332, in pytest_cmdline_main return wrap_session(config, _main) File "/usr/lib/python3/dist-packages/_pytest/main.py", line 285, in wrap_session session.exitstatus = doit(config, session) or 0 File "/usr/lib/python3/dist-packages/_pytest/main.py", line 339, in _main config.hook.pytest_runtestloop(session=session) File "/usr/lib/python3/dist-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3/dist-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3/dist-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3/dist-packages/_pytest/main.py", line 364, in pytest_runtestloop item.config.hook.pytest_runtest_protocol(item=item, nextitem=nextitem) File "/usr/lib/python3/dist-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3/dist-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3/dist-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3/dist-packages/_pytest/runner.py", line 116, in pytest_runtest_protocol runtestprotocol(item, nextitem=nextitem) File "/usr/lib/python3/dist-packages/_pytest/runner.py", line 135, in runtestprotocol reports.append(call_and_report(item, "call", log)) File "/usr/lib/python3/dist-packages/_pytest/runner.py", line 240, in call_and_report call = CallInfo.from_call( File "/usr/lib/python3/dist-packages/_pytest/runner.py", line 341, in from_call result: Optional[TResult] = func() File "/usr/lib/python3/dist-packages/_pytest/runner.py", line 241, in lambda: runtest_hook(item=item, **kwds), when=when, reraise=reraise File "/usr/lib/python3/dist-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3/dist-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3/dist-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3/dist-packages/_pytest/runner.py", line 173, in pytest_runtest_call item.runtest() File "/usr/lib/python3/dist-packages/_pytest/python.py", line 1632, in runtest self.ihook.pytest_pyfunc_call(pyfuncitem=self) File "/usr/lib/python3/dist-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3/dist-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3/dist-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3/dist-packages/_pytest/python.py", line 162, in pytest_pyfunc_call result = testfunction(**testargs) File "/usr/lib/python3/dist-packages/pytest_asyncio/plugin.py", line 478, in inner _loop.run_until_complete(task) File "/build/reproducible-path/aiorwlock-1.0.0/tests/test_rwlock.py", line 295, in test_readers_writers b2 = Bunch(w, N) File "/build/reproducible-path/aiorwlock-1.0.0/tests/test_rwlock.py", line 37, in __init__ t = asyncio.Task(task()) task: .task() running at /build/reproducible-path/aiorwlock-1.0.0/tests/test_rwlock.py:30> wait_for= created at /build/reproducible-path/aiorwlock-1.0.0/tests/test_rwlock.py:37> ERROR asyncio:conftest.py:44 Task was destroyed but it is pending! source_traceback: Object created at (most recent call last): File "", line 198, in _run_module_as_main File "", line 88, in _run_code File "/usr/lib/python3/dist-packages/pytest/__main__.py", line 7, in raise SystemExit(pytest.console_main()) File "/usr/lib/python3/dist-packages/_pytest/config/__init__.py", line 206, in console_main code = main() File "/usr/lib/python3/dist-packages/_pytest/config/__init__.py", line 178, in main ret: Union[ExitCode, int] = config.hook.pytest_cmdline_main( File "/usr/lib/python3/dist-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3/dist-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3/dist-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3/dist-packages/_pytest/main.py", line 332, in pytest_cmdline_main return wrap_session(config, _main) File "/usr/lib/python3/dist-packages/_pytest/main.py", line 285, in wrap_session session.exitstatus = doit(config, session) or 0 File "/usr/lib/python3/dist-packages/_pytest/main.py", line 339, in _main config.hook.pytest_runtestloop(session=session) File "/usr/lib/python3/dist-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3/dist-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3/dist-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3/dist-packages/_pytest/main.py", line 364, in pytest_runtestloop item.config.hook.pytest_runtest_protocol(item=item, nextitem=nextitem) File "/usr/lib/python3/dist-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3/dist-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3/dist-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3/dist-packages/_pytest/runner.py", line 116, in pytest_runtest_protocol runtestprotocol(item, nextitem=nextitem) File "/usr/lib/python3/dist-packages/_pytest/runner.py", line 135, in runtestprotocol reports.append(call_and_report(item, "call", log)) File "/usr/lib/python3/dist-packages/_pytest/runner.py", line 240, in call_and_report call = CallInfo.from_call( File "/usr/lib/python3/dist-packages/_pytest/runner.py", line 341, in from_call result: Optional[TResult] = func() File "/usr/lib/python3/dist-packages/_pytest/runner.py", line 241, in lambda: runtest_hook(item=item, **kwds), when=when, reraise=reraise File "/usr/lib/python3/dist-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3/dist-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3/dist-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3/dist-packages/_pytest/runner.py", line 173, in pytest_runtest_call item.runtest() File "/usr/lib/python3/dist-packages/_pytest/python.py", line 1632, in runtest self.ihook.pytest_pyfunc_call(pyfuncitem=self) File "/usr/lib/python3/dist-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3/dist-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3/dist-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3/dist-packages/_pytest/python.py", line 162, in pytest_pyfunc_call result = testfunction(**testargs) File "/usr/lib/python3/dist-packages/pytest_asyncio/plugin.py", line 478, in inner _loop.run_until_complete(task) File "/build/reproducible-path/aiorwlock-1.0.0/tests/test_rwlock.py", line 295, in test_readers_writers b2 = Bunch(w, N) File "/build/reproducible-path/aiorwlock-1.0.0/tests/test_rwlock.py", line 37, in __init__ t = asyncio.Task(task()) task: .task() running at /build/reproducible-path/aiorwlock-1.0.0/tests/test_rwlock.py:30> wait_for= created at /build/reproducible-path/aiorwlock-1.0.0/tests/test_rwlock.py:37> ERROR asyncio:conftest.py:44 Task was destroyed but it is pending! source_traceback: Object created at (most recent call last): File "", line 198, in _run_module_as_main File "", line 88, in _run_code File "/usr/lib/python3/dist-packages/pytest/__main__.py", line 7, in raise SystemExit(pytest.console_main()) File "/usr/lib/python3/dist-packages/_pytest/config/__init__.py", line 206, in console_main code = main() File "/usr/lib/python3/dist-packages/_pytest/config/__init__.py", line 178, in main ret: Union[ExitCode, int] = config.hook.pytest_cmdline_main( File "/usr/lib/python3/dist-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3/dist-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3/dist-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3/dist-packages/_pytest/main.py", line 332, in pytest_cmdline_main return wrap_session(config, _main) File "/usr/lib/python3/dist-packages/_pytest/main.py", line 285, in wrap_session session.exitstatus = doit(config, session) or 0 File "/usr/lib/python3/dist-packages/_pytest/main.py", line 339, in _main config.hook.pytest_runtestloop(session=session) File "/usr/lib/python3/dist-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3/dist-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3/dist-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3/dist-packages/_pytest/main.py", line 364, in pytest_runtestloop item.config.hook.pytest_runtest_protocol(item=item, nextitem=nextitem) File "/usr/lib/python3/dist-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3/dist-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3/dist-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3/dist-packages/_pytest/runner.py", line 116, in pytest_runtest_protocol runtestprotocol(item, nextitem=nextitem) File "/usr/lib/python3/dist-packages/_pytest/runner.py", line 135, in runtestprotocol reports.append(call_and_report(item, "call", log)) File "/usr/lib/python3/dist-packages/_pytest/runner.py", line 240, in call_and_report call = CallInfo.from_call( File "/usr/lib/python3/dist-packages/_pytest/runner.py", line 341, in from_call result: Optional[TResult] = func() File "/usr/lib/python3/dist-packages/_pytest/runner.py", line 241, in lambda: runtest_hook(item=item, **kwds), when=when, reraise=reraise File "/usr/lib/python3/dist-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3/dist-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3/dist-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3/dist-packages/_pytest/runner.py", line 173, in pytest_runtest_call item.runtest() File "/usr/lib/python3/dist-packages/_pytest/python.py", line 1632, in runtest self.ihook.pytest_pyfunc_call(pyfuncitem=self) File "/usr/lib/python3/dist-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3/dist-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3/dist-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3/dist-packages/_pytest/python.py", line 162, in pytest_pyfunc_call result = testfunction(**testargs) File "/usr/lib/python3/dist-packages/pytest_asyncio/plugin.py", line 478, in inner _loop.run_until_complete(task) File "/build/reproducible-path/aiorwlock-1.0.0/tests/test_rwlock.py", line 295, in test_readers_writers b2 = Bunch(w, N) File "/build/reproducible-path/aiorwlock-1.0.0/tests/test_rwlock.py", line 37, in __init__ t = asyncio.Task(task()) task: .task() running at /build/reproducible-path/aiorwlock-1.0.0/tests/test_rwlock.py:30> wait_for= created at /build/reproducible-path/aiorwlock-1.0.0/tests/test_rwlock.py:37> ERROR asyncio:conftest.py:44 Task was destroyed but it is pending! source_traceback: Object created at (most recent call last): File "", line 198, in _run_module_as_main File "", line 88, in _run_code File "/usr/lib/python3/dist-packages/pytest/__main__.py", line 7, in raise SystemExit(pytest.console_main()) File "/usr/lib/python3/dist-packages/_pytest/config/__init__.py", line 206, in console_main code = main() File "/usr/lib/python3/dist-packages/_pytest/config/__init__.py", line 178, in main ret: Union[ExitCode, int] = config.hook.pytest_cmdline_main( File "/usr/lib/python3/dist-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3/dist-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3/dist-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3/dist-packages/_pytest/main.py", line 332, in pytest_cmdline_main return wrap_session(config, _main) File "/usr/lib/python3/dist-packages/_pytest/main.py", line 285, in wrap_session session.exitstatus = doit(config, session) or 0 File "/usr/lib/python3/dist-packages/_pytest/main.py", line 339, in _main config.hook.pytest_runtestloop(session=session) File "/usr/lib/python3/dist-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3/dist-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3/dist-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3/dist-packages/_pytest/main.py", line 364, in pytest_runtestloop item.config.hook.pytest_runtest_protocol(item=item, nextitem=nextitem) File "/usr/lib/python3/dist-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3/dist-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3/dist-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3/dist-packages/_pytest/runner.py", line 116, in pytest_runtest_protocol runtestprotocol(item, nextitem=nextitem) File "/usr/lib/python3/dist-packages/_pytest/runner.py", line 135, in runtestprotocol reports.append(call_and_report(item, "call", log)) File "/usr/lib/python3/dist-packages/_pytest/runner.py", line 240, in call_and_report call = CallInfo.from_call( File "/usr/lib/python3/dist-packages/_pytest/runner.py", line 341, in from_call result: Optional[TResult] = func() File "/usr/lib/python3/dist-packages/_pytest/runner.py", line 241, in lambda: runtest_hook(item=item, **kwds), when=when, reraise=reraise File "/usr/lib/python3/dist-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3/dist-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3/dist-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3/dist-packages/_pytest/runner.py", line 173, in pytest_runtest_call item.runtest() File "/usr/lib/python3/dist-packages/_pytest/python.py", line 1632, in runtest self.ihook.pytest_pyfunc_call(pyfuncitem=self) File "/usr/lib/python3/dist-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3/dist-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3/dist-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3/dist-packages/_pytest/python.py", line 162, in pytest_pyfunc_call result = testfunction(**testargs) File "/usr/lib/python3/dist-packages/pytest_asyncio/plugin.py", line 478, in inner _loop.run_until_complete(task) File "/build/reproducible-path/aiorwlock-1.0.0/tests/test_rwlock.py", line 295, in test_readers_writers b2 = Bunch(w, N) File "/build/reproducible-path/aiorwlock-1.0.0/tests/test_rwlock.py", line 37, in __init__ t = asyncio.Task(task()) task: .task() running at /build/reproducible-path/aiorwlock-1.0.0/tests/test_rwlock.py:30> wait_for= created at /build/reproducible-path/aiorwlock-1.0.0/tests/test_rwlock.py:37> _ ERROR at teardown of test_raise_error_on_with_for_writer_lock[debug:true-slow-uvloop] _ cls = func = . at 0xf655fd48> when = 'teardown' reraise = (, ) @classmethod def from_call( cls, func: Callable[[], TResult], when: Literal["collect", "setup", "call", "teardown"], reraise: Optional[ Union[Type[BaseException], Tuple[Type[BaseException], ...]] ] = None, ) -> "CallInfo[TResult]": """Call func, wrapping the result in a CallInfo. :param func: The function to call. Called without arguments. :param when: The phase in which the function is called. :param reraise: Exception or exceptions that shall propagate if raised by the function, instead of being wrapped in the CallInfo. """ excinfo = None start = timing.time() precise_start = timing.perf_counter() try: > result: Optional[TResult] = func() /usr/lib/python3/dist-packages/_pytest/runner.py:341: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/dist-packages/_pytest/runner.py:241: in lambda: runtest_hook(item=item, **kwds), when=when, reraise=reraise /usr/lib/python3/dist-packages/pluggy/_hooks.py:513: in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) /usr/lib/python3/dist-packages/pluggy/_manager.py:120: in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) /usr/lib/python3/dist-packages/_pytest/threadexception.py:92: in pytest_runtest_teardown yield from thread_exception_runtest_hook() /usr/lib/python3/dist-packages/_pytest/threadexception.py:63: in thread_exception_runtest_hook yield /usr/lib/python3/dist-packages/_pytest/unraisableexception.py:95: in pytest_runtest_teardown yield from unraisable_exception_runtest_hook() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ def unraisable_exception_runtest_hook() -> Generator[None, None, None]: with catch_unraisable_exception() as cm: try: yield finally: if cm.unraisable: if cm.unraisable.err_msg is not None: err_msg = cm.unraisable.err_msg else: err_msg = "Exception ignored in" msg = f"{err_msg}: {cm.unraisable.object!r}\n\n" msg += "".join( traceback.format_exception( cm.unraisable.exc_type, cm.unraisable.exc_value, cm.unraisable.exc_traceback, ) ) > warnings.warn(pytest.PytestUnraisableExceptionWarning(msg)) E pytest.PytestUnraisableExceptionWarning: Exception ignored in: E E Traceback (most recent call last): E File "/build/reproducible-path/aiorwlock-1.0.0/tests/conftest.py", line 44, in event_loop E gc.collect() E ResourceWarning: unclosed /usr/lib/python3/dist-packages/_pytest/unraisableexception.py:80: PytestUnraisableExceptionWarning ________ ERROR at teardown of test_read_locked[debug:true-slow-uvloop] _________ cls = func = . at 0xf658b578> when = 'teardown' reraise = (, ) @classmethod def from_call( cls, func: Callable[[], TResult], when: Literal["collect", "setup", "call", "teardown"], reraise: Optional[ Union[Type[BaseException], Tuple[Type[BaseException], ...]] ] = None, ) -> "CallInfo[TResult]": """Call func, wrapping the result in a CallInfo. :param func: The function to call. Called without arguments. :param when: The phase in which the function is called. :param reraise: Exception or exceptions that shall propagate if raised by the function, instead of being wrapped in the CallInfo. """ excinfo = None start = timing.time() precise_start = timing.perf_counter() try: > result: Optional[TResult] = func() /usr/lib/python3/dist-packages/_pytest/runner.py:341: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/dist-packages/_pytest/runner.py:241: in lambda: runtest_hook(item=item, **kwds), when=when, reraise=reraise /usr/lib/python3/dist-packages/pluggy/_hooks.py:513: in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) /usr/lib/python3/dist-packages/pluggy/_manager.py:120: in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) /usr/lib/python3/dist-packages/_pytest/threadexception.py:92: in pytest_runtest_teardown yield from thread_exception_runtest_hook() /usr/lib/python3/dist-packages/_pytest/threadexception.py:63: in thread_exception_runtest_hook yield /usr/lib/python3/dist-packages/_pytest/unraisableexception.py:95: in pytest_runtest_teardown yield from unraisable_exception_runtest_hook() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ def unraisable_exception_runtest_hook() -> Generator[None, None, None]: with catch_unraisable_exception() as cm: try: yield finally: if cm.unraisable: if cm.unraisable.err_msg is not None: err_msg = cm.unraisable.err_msg else: err_msg = "Exception ignored in" msg = f"{err_msg}: {cm.unraisable.object!r}\n\n" msg += "".join( traceback.format_exception( cm.unraisable.exc_type, cm.unraisable.exc_value, cm.unraisable.exc_traceback, ) ) > warnings.warn(pytest.PytestUnraisableExceptionWarning(msg)) E pytest.PytestUnraisableExceptionWarning: Exception ignored in: E E Traceback (most recent call last): E File "/build/reproducible-path/aiorwlock-1.0.0/tests/conftest.py", line 44, in event_loop E gc.collect() E ResourceWarning: unclosed /usr/lib/python3/dist-packages/_pytest/unraisableexception.py:80: PytestUnraisableExceptionWarning ________ ERROR at teardown of test_write_locked[debug:true-slow-uvloop] ________ cls = func = . at 0xf658b9d8> when = 'teardown' reraise = (, ) @classmethod def from_call( cls, func: Callable[[], TResult], when: Literal["collect", "setup", "call", "teardown"], reraise: Optional[ Union[Type[BaseException], Tuple[Type[BaseException], ...]] ] = None, ) -> "CallInfo[TResult]": """Call func, wrapping the result in a CallInfo. :param func: The function to call. Called without arguments. :param when: The phase in which the function is called. :param reraise: Exception or exceptions that shall propagate if raised by the function, instead of being wrapped in the CallInfo. """ excinfo = None start = timing.time() precise_start = timing.perf_counter() try: > result: Optional[TResult] = func() /usr/lib/python3/dist-packages/_pytest/runner.py:341: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/dist-packages/_pytest/runner.py:241: in lambda: runtest_hook(item=item, **kwds), when=when, reraise=reraise /usr/lib/python3/dist-packages/pluggy/_hooks.py:513: in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) /usr/lib/python3/dist-packages/pluggy/_manager.py:120: in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) /usr/lib/python3/dist-packages/_pytest/threadexception.py:92: in pytest_runtest_teardown yield from thread_exception_runtest_hook() /usr/lib/python3/dist-packages/_pytest/threadexception.py:63: in thread_exception_runtest_hook yield /usr/lib/python3/dist-packages/_pytest/unraisableexception.py:95: in pytest_runtest_teardown yield from unraisable_exception_runtest_hook() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ def unraisable_exception_runtest_hook() -> Generator[None, None, None]: with catch_unraisable_exception() as cm: try: yield finally: if cm.unraisable: if cm.unraisable.err_msg is not None: err_msg = cm.unraisable.err_msg else: err_msg = "Exception ignored in" msg = f"{err_msg}: {cm.unraisable.object!r}\n\n" msg += "".join( traceback.format_exception( cm.unraisable.exc_type, cm.unraisable.exc_value, cm.unraisable.exc_traceback, ) ) > warnings.warn(pytest.PytestUnraisableExceptionWarning(msg)) E pytest.PytestUnraisableExceptionWarning: Exception ignored in: E E Traceback (most recent call last): E File "/build/reproducible-path/aiorwlock-1.0.0/tests/conftest.py", line 44, in event_loop E gc.collect() E ResourceWarning: unclosed /usr/lib/python3/dist-packages/_pytest/unraisableexception.py:80: PytestUnraisableExceptionWarning _ ERROR at teardown of test_write_read_lock_multiple_tasks[debug:true-slow-uvloop] _ cls = func = . at 0xf658b438> when = 'teardown' reraise = (, ) @classmethod def from_call( cls, func: Callable[[], TResult], when: Literal["collect", "setup", "call", "teardown"], reraise: Optional[ Union[Type[BaseException], Tuple[Type[BaseException], ...]] ] = None, ) -> "CallInfo[TResult]": """Call func, wrapping the result in a CallInfo. :param func: The function to call. Called without arguments. :param when: The phase in which the function is called. :param reraise: Exception or exceptions that shall propagate if raised by the function, instead of being wrapped in the CallInfo. """ excinfo = None start = timing.time() precise_start = timing.perf_counter() try: > result: Optional[TResult] = func() /usr/lib/python3/dist-packages/_pytest/runner.py:341: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/dist-packages/_pytest/runner.py:241: in lambda: runtest_hook(item=item, **kwds), when=when, reraise=reraise /usr/lib/python3/dist-packages/pluggy/_hooks.py:513: in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) /usr/lib/python3/dist-packages/pluggy/_manager.py:120: in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) /usr/lib/python3/dist-packages/_pytest/threadexception.py:92: in pytest_runtest_teardown yield from thread_exception_runtest_hook() /usr/lib/python3/dist-packages/_pytest/threadexception.py:63: in thread_exception_runtest_hook yield /usr/lib/python3/dist-packages/_pytest/unraisableexception.py:95: in pytest_runtest_teardown yield from unraisable_exception_runtest_hook() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ def unraisable_exception_runtest_hook() -> Generator[None, None, None]: with catch_unraisable_exception() as cm: try: yield finally: if cm.unraisable: if cm.unraisable.err_msg is not None: err_msg = cm.unraisable.err_msg else: err_msg = "Exception ignored in" msg = f"{err_msg}: {cm.unraisable.object!r}\n\n" msg += "".join( traceback.format_exception( cm.unraisable.exc_type, cm.unraisable.exc_value, cm.unraisable.exc_traceback, ) ) > warnings.warn(pytest.PytestUnraisableExceptionWarning(msg)) E pytest.PytestUnraisableExceptionWarning: Exception ignored in: E E Traceback (most recent call last): E File "/build/reproducible-path/aiorwlock-1.0.0/tests/conftest.py", line 44, in event_loop E gc.collect() E ResourceWarning: unclosed /usr/lib/python3/dist-packages/_pytest/unraisableexception.py:80: PytestUnraisableExceptionWarning ____ ERROR at teardown of test_read_context_manager[debug:true-slow-uvloop] ____ cls = func = . at 0xf65d4ac8> when = 'teardown' reraise = (, ) @classmethod def from_call( cls, func: Callable[[], TResult], when: Literal["collect", "setup", "call", "teardown"], reraise: Optional[ Union[Type[BaseException], Tuple[Type[BaseException], ...]] ] = None, ) -> "CallInfo[TResult]": """Call func, wrapping the result in a CallInfo. :param func: The function to call. Called without arguments. :param when: The phase in which the function is called. :param reraise: Exception or exceptions that shall propagate if raised by the function, instead of being wrapped in the CallInfo. """ excinfo = None start = timing.time() precise_start = timing.perf_counter() try: > result: Optional[TResult] = func() /usr/lib/python3/dist-packages/_pytest/runner.py:341: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/dist-packages/_pytest/runner.py:241: in lambda: runtest_hook(item=item, **kwds), when=when, reraise=reraise /usr/lib/python3/dist-packages/pluggy/_hooks.py:513: in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) /usr/lib/python3/dist-packages/pluggy/_manager.py:120: in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) /usr/lib/python3/dist-packages/_pytest/threadexception.py:92: in pytest_runtest_teardown yield from thread_exception_runtest_hook() /usr/lib/python3/dist-packages/_pytest/threadexception.py:63: in thread_exception_runtest_hook yield /usr/lib/python3/dist-packages/_pytest/unraisableexception.py:95: in pytest_runtest_teardown yield from unraisable_exception_runtest_hook() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ def unraisable_exception_runtest_hook() -> Generator[None, None, None]: with catch_unraisable_exception() as cm: try: yield finally: if cm.unraisable: if cm.unraisable.err_msg is not None: err_msg = cm.unraisable.err_msg else: err_msg = "Exception ignored in" msg = f"{err_msg}: {cm.unraisable.object!r}\n\n" msg += "".join( traceback.format_exception( cm.unraisable.exc_type, cm.unraisable.exc_value, cm.unraisable.exc_traceback, ) ) > warnings.warn(pytest.PytestUnraisableExceptionWarning(msg)) E pytest.PytestUnraisableExceptionWarning: Exception ignored in: E E Traceback (most recent call last): E File "/build/reproducible-path/aiorwlock-1.0.0/tests/conftest.py", line 44, in event_loop E gc.collect() E ResourceWarning: unclosed /usr/lib/python3/dist-packages/_pytest/unraisableexception.py:80: PytestUnraisableExceptionWarning ___ ERROR at teardown of test_write_context_manager[debug:true-slow-uvloop] ____ cls = func = . at 0xf658b8e8> when = 'teardown' reraise = (, ) @classmethod def from_call( cls, func: Callable[[], TResult], when: Literal["collect", "setup", "call", "teardown"], reraise: Optional[ Union[Type[BaseException], Tuple[Type[BaseException], ...]] ] = None, ) -> "CallInfo[TResult]": """Call func, wrapping the result in a CallInfo. :param func: The function to call. Called without arguments. :param when: The phase in which the function is called. :param reraise: Exception or exceptions that shall propagate if raised by the function, instead of being wrapped in the CallInfo. """ excinfo = None start = timing.time() precise_start = timing.perf_counter() try: > result: Optional[TResult] = func() /usr/lib/python3/dist-packages/_pytest/runner.py:341: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/dist-packages/_pytest/runner.py:241: in lambda: runtest_hook(item=item, **kwds), when=when, reraise=reraise /usr/lib/python3/dist-packages/pluggy/_hooks.py:513: in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) /usr/lib/python3/dist-packages/pluggy/_manager.py:120: in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) /usr/lib/python3/dist-packages/_pytest/threadexception.py:92: in pytest_runtest_teardown yield from thread_exception_runtest_hook() /usr/lib/python3/dist-packages/_pytest/threadexception.py:63: in thread_exception_runtest_hook yield /usr/lib/python3/dist-packages/_pytest/unraisableexception.py:95: in pytest_runtest_teardown yield from unraisable_exception_runtest_hook() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ def unraisable_exception_runtest_hook() -> Generator[None, None, None]: with catch_unraisable_exception() as cm: try: yield finally: if cm.unraisable: if cm.unraisable.err_msg is not None: err_msg = cm.unraisable.err_msg else: err_msg = "Exception ignored in" msg = f"{err_msg}: {cm.unraisable.object!r}\n\n" msg += "".join( traceback.format_exception( cm.unraisable.exc_type, cm.unraisable.exc_value, cm.unraisable.exc_traceback, ) ) > warnings.warn(pytest.PytestUnraisableExceptionWarning(msg)) E pytest.PytestUnraisableExceptionWarning: Exception ignored in: E E Traceback (most recent call last): E File "/build/reproducible-path/aiorwlock-1.0.0/tests/conftest.py", line 44, in event_loop E gc.collect() E ResourceWarning: unclosed /usr/lib/python3/dist-packages/_pytest/unraisableexception.py:80: PytestUnraisableExceptionWarning ______ ERROR at teardown of test_await_read_lock[debug:true-slow-uvloop] _______ cls = func = . at 0xf65d48e8> when = 'teardown' reraise = (, ) @classmethod def from_call( cls, func: Callable[[], TResult], when: Literal["collect", "setup", "call", "teardown"], reraise: Optional[ Union[Type[BaseException], Tuple[Type[BaseException], ...]] ] = None, ) -> "CallInfo[TResult]": """Call func, wrapping the result in a CallInfo. :param func: The function to call. Called without arguments. :param when: The phase in which the function is called. :param reraise: Exception or exceptions that shall propagate if raised by the function, instead of being wrapped in the CallInfo. """ excinfo = None start = timing.time() precise_start = timing.perf_counter() try: > result: Optional[TResult] = func() /usr/lib/python3/dist-packages/_pytest/runner.py:341: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/dist-packages/_pytest/runner.py:241: in lambda: runtest_hook(item=item, **kwds), when=when, reraise=reraise /usr/lib/python3/dist-packages/pluggy/_hooks.py:513: in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) /usr/lib/python3/dist-packages/pluggy/_manager.py:120: in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) /usr/lib/python3/dist-packages/_pytest/threadexception.py:92: in pytest_runtest_teardown yield from thread_exception_runtest_hook() /usr/lib/python3/dist-packages/_pytest/threadexception.py:63: in thread_exception_runtest_hook yield /usr/lib/python3/dist-packages/_pytest/unraisableexception.py:95: in pytest_runtest_teardown yield from unraisable_exception_runtest_hook() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ def unraisable_exception_runtest_hook() -> Generator[None, None, None]: with catch_unraisable_exception() as cm: try: yield finally: if cm.unraisable: if cm.unraisable.err_msg is not None: err_msg = cm.unraisable.err_msg else: err_msg = "Exception ignored in" msg = f"{err_msg}: {cm.unraisable.object!r}\n\n" msg += "".join( traceback.format_exception( cm.unraisable.exc_type, cm.unraisable.exc_value, cm.unraisable.exc_traceback, ) ) > warnings.warn(pytest.PytestUnraisableExceptionWarning(msg)) E pytest.PytestUnraisableExceptionWarning: Exception ignored in: E E Traceback (most recent call last): E File "/build/reproducible-path/aiorwlock-1.0.0/tests/conftest.py", line 44, in event_loop E gc.collect() E ResourceWarning: unclosed /usr/lib/python3/dist-packages/_pytest/unraisableexception.py:80: PytestUnraisableExceptionWarning ______ ERROR at teardown of test_await_write_lock[debug:true-slow-uvloop] ______ cls = func = . at 0xf65bb988> when = 'teardown' reraise = (, ) @classmethod def from_call( cls, func: Callable[[], TResult], when: Literal["collect", "setup", "call", "teardown"], reraise: Optional[ Union[Type[BaseException], Tuple[Type[BaseException], ...]] ] = None, ) -> "CallInfo[TResult]": """Call func, wrapping the result in a CallInfo. :param func: The function to call. Called without arguments. :param when: The phase in which the function is called. :param reraise: Exception or exceptions that shall propagate if raised by the function, instead of being wrapped in the CallInfo. """ excinfo = None start = timing.time() precise_start = timing.perf_counter() try: > result: Optional[TResult] = func() /usr/lib/python3/dist-packages/_pytest/runner.py:341: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/dist-packages/_pytest/runner.py:241: in lambda: runtest_hook(item=item, **kwds), when=when, reraise=reraise /usr/lib/python3/dist-packages/pluggy/_hooks.py:513: in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) /usr/lib/python3/dist-packages/pluggy/_manager.py:120: in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) /usr/lib/python3/dist-packages/_pytest/threadexception.py:92: in pytest_runtest_teardown yield from thread_exception_runtest_hook() /usr/lib/python3/dist-packages/_pytest/threadexception.py:63: in thread_exception_runtest_hook yield /usr/lib/python3/dist-packages/_pytest/unraisableexception.py:95: in pytest_runtest_teardown yield from unraisable_exception_runtest_hook() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ def unraisable_exception_runtest_hook() -> Generator[None, None, None]: with catch_unraisable_exception() as cm: try: yield finally: if cm.unraisable: if cm.unraisable.err_msg is not None: err_msg = cm.unraisable.err_msg else: err_msg = "Exception ignored in" msg = f"{err_msg}: {cm.unraisable.object!r}\n\n" msg += "".join( traceback.format_exception( cm.unraisable.exc_type, cm.unraisable.exc_value, cm.unraisable.exc_traceback, ) ) > warnings.warn(pytest.PytestUnraisableExceptionWarning(msg)) E pytest.PytestUnraisableExceptionWarning: Exception ignored in: E E Traceback (most recent call last): E File "/build/reproducible-path/aiorwlock-1.0.0/tests/conftest.py", line 44, in event_loop E gc.collect() E ResourceWarning: unclosed /usr/lib/python3/dist-packages/_pytest/unraisableexception.py:80: PytestUnraisableExceptionWarning _ ERROR at teardown of test_raise_error_on_with_for_reader_lock[debug:true-slow-pyloop] _ cls = func = . at 0xf65b6668> when = 'teardown' reraise = (, ) @classmethod def from_call( cls, func: Callable[[], TResult], when: Literal["collect", "setup", "call", "teardown"], reraise: Optional[ Union[Type[BaseException], Tuple[Type[BaseException], ...]] ] = None, ) -> "CallInfo[TResult]": """Call func, wrapping the result in a CallInfo. :param func: The function to call. Called without arguments. :param when: The phase in which the function is called. :param reraise: Exception or exceptions that shall propagate if raised by the function, instead of being wrapped in the CallInfo. """ excinfo = None start = timing.time() precise_start = timing.perf_counter() try: > result: Optional[TResult] = func() /usr/lib/python3/dist-packages/_pytest/runner.py:341: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/dist-packages/_pytest/runner.py:241: in lambda: runtest_hook(item=item, **kwds), when=when, reraise=reraise /usr/lib/python3/dist-packages/pluggy/_hooks.py:513: in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) /usr/lib/python3/dist-packages/pluggy/_manager.py:120: in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) /usr/lib/python3/dist-packages/_pytest/threadexception.py:92: in pytest_runtest_teardown yield from thread_exception_runtest_hook() /usr/lib/python3/dist-packages/_pytest/threadexception.py:63: in thread_exception_runtest_hook yield /usr/lib/python3/dist-packages/_pytest/unraisableexception.py:95: in pytest_runtest_teardown yield from unraisable_exception_runtest_hook() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ def unraisable_exception_runtest_hook() -> Generator[None, None, None]: with catch_unraisable_exception() as cm: try: yield finally: if cm.unraisable: if cm.unraisable.err_msg is not None: err_msg = cm.unraisable.err_msg else: err_msg = "Exception ignored in" msg = f"{err_msg}: {cm.unraisable.object!r}\n\n" msg += "".join( traceback.format_exception( cm.unraisable.exc_type, cm.unraisable.exc_value, cm.unraisable.exc_traceback, ) ) > warnings.warn(pytest.PytestUnraisableExceptionWarning(msg)) E pytest.PytestUnraisableExceptionWarning: Exception ignored in: E E Traceback (most recent call last): E File "/build/reproducible-path/aiorwlock-1.0.0/tests/conftest.py", line 44, in event_loop E gc.collect() E ResourceWarning: unclosed /usr/lib/python3/dist-packages/_pytest/unraisableexception.py:80: PytestUnraisableExceptionWarning ---------------------------- Captured log teardown ----------------------------- ERROR asyncio:base_events.py:1785 Task was destroyed but it is pending! source_traceback: Object created at (most recent call last): File "", line 198, in _run_module_as_main File "", line 88, in _run_code File "/usr/lib/python3/dist-packages/pytest/__main__.py", line 7, in raise SystemExit(pytest.console_main()) File "/usr/lib/python3/dist-packages/_pytest/config/__init__.py", line 206, in console_main code = main() File "/usr/lib/python3/dist-packages/_pytest/config/__init__.py", line 178, in main ret: Union[ExitCode, int] = config.hook.pytest_cmdline_main( File "/usr/lib/python3/dist-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3/dist-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3/dist-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3/dist-packages/_pytest/main.py", line 332, in pytest_cmdline_main return wrap_session(config, _main) File "/usr/lib/python3/dist-packages/_pytest/main.py", line 285, in wrap_session session.exitstatus = doit(config, session) or 0 File "/usr/lib/python3/dist-packages/_pytest/main.py", line 339, in _main config.hook.pytest_runtestloop(session=session) File "/usr/lib/python3/dist-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3/dist-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3/dist-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3/dist-packages/_pytest/main.py", line 364, in pytest_runtestloop item.config.hook.pytest_runtest_protocol(item=item, nextitem=nextitem) File "/usr/lib/python3/dist-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3/dist-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3/dist-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3/dist-packages/_pytest/runner.py", line 116, in pytest_runtest_protocol runtestprotocol(item, nextitem=nextitem) File "/usr/lib/python3/dist-packages/_pytest/runner.py", line 135, in runtestprotocol reports.append(call_and_report(item, "call", log)) File "/usr/lib/python3/dist-packages/_pytest/runner.py", line 240, in call_and_report call = CallInfo.from_call( File "/usr/lib/python3/dist-packages/_pytest/runner.py", line 341, in from_call result: Optional[TResult] = func() File "/usr/lib/python3/dist-packages/_pytest/runner.py", line 241, in lambda: runtest_hook(item=item, **kwds), when=when, reraise=reraise File "/usr/lib/python3/dist-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3/dist-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3/dist-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3/dist-packages/_pytest/runner.py", line 173, in pytest_runtest_call item.runtest() File "/usr/lib/python3/dist-packages/_pytest/python.py", line 1632, in runtest self.ihook.pytest_pyfunc_call(pyfuncitem=self) File "/usr/lib/python3/dist-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3/dist-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3/dist-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3/dist-packages/_pytest/python.py", line 162, in pytest_pyfunc_call result = testfunction(**testargs) File "/usr/lib/python3/dist-packages/pytest_asyncio/plugin.py", line 478, in inner _loop.run_until_complete(task) File "/usr/lib/python3.11/asyncio/base_events.py", line 641, in run_until_complete self.run_forever() File "/usr/lib/python3.11/asyncio/base_events.py", line 608, in run_forever self._run_once() File "/usr/lib/python3.11/asyncio/base_events.py", line 1928, in _run_once handle._run() File "/usr/lib/python3.11/asyncio/events.py", line 84, in _run self._context.run(self._callback, *self._args) File "/build/reproducible-path/aiorwlock-1.0.0/tests/test_rwlock.py", line 295, in test_readers_writers b2 = Bunch(w, N) File "/build/reproducible-path/aiorwlock-1.0.0/tests/test_rwlock.py", line 37, in __init__ t = asyncio.Task(task()) task: .task() running at /build/reproducible-path/aiorwlock-1.0.0/tests/test_rwlock.py:30> wait_for= created at /build/reproducible-path/aiorwlock-1.0.0/tests/test_rwlock.py:37> ERROR asyncio:base_events.py:1785 Task was destroyed but it is pending! source_traceback: Object created at (most recent call last): File "", line 198, in _run_module_as_main File "", line 88, in _run_code File "/usr/lib/python3/dist-packages/pytest/__main__.py", line 7, in raise SystemExit(pytest.console_main()) File "/usr/lib/python3/dist-packages/_pytest/config/__init__.py", line 206, in console_main code = main() File "/usr/lib/python3/dist-packages/_pytest/config/__init__.py", line 178, in main ret: Union[ExitCode, int] = config.hook.pytest_cmdline_main( File "/usr/lib/python3/dist-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3/dist-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3/dist-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3/dist-packages/_pytest/main.py", line 332, in pytest_cmdline_main return wrap_session(config, _main) File "/usr/lib/python3/dist-packages/_pytest/main.py", line 285, in wrap_session session.exitstatus = doit(config, session) or 0 File "/usr/lib/python3/dist-packages/_pytest/main.py", line 339, in _main config.hook.pytest_runtestloop(session=session) File "/usr/lib/python3/dist-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3/dist-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3/dist-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3/dist-packages/_pytest/main.py", line 364, in pytest_runtestloop item.config.hook.pytest_runtest_protocol(item=item, nextitem=nextitem) File "/usr/lib/python3/dist-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3/dist-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3/dist-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3/dist-packages/_pytest/runner.py", line 116, in pytest_runtest_protocol runtestprotocol(item, nextitem=nextitem) File "/usr/lib/python3/dist-packages/_pytest/runner.py", line 135, in runtestprotocol reports.append(call_and_report(item, "call", log)) File "/usr/lib/python3/dist-packages/_pytest/runner.py", line 240, in call_and_report call = CallInfo.from_call( File "/usr/lib/python3/dist-packages/_pytest/runner.py", line 341, in from_call result: Optional[TResult] = func() File "/usr/lib/python3/dist-packages/_pytest/runner.py", line 241, in lambda: runtest_hook(item=item, **kwds), when=when, reraise=reraise File "/usr/lib/python3/dist-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3/dist-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3/dist-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3/dist-packages/_pytest/runner.py", line 173, in pytest_runtest_call item.runtest() File "/usr/lib/python3/dist-packages/_pytest/python.py", line 1632, in runtest self.ihook.pytest_pyfunc_call(pyfuncitem=self) File "/usr/lib/python3/dist-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3/dist-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3/dist-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3/dist-packages/_pytest/python.py", line 162, in pytest_pyfunc_call result = testfunction(**testargs) File "/usr/lib/python3/dist-packages/pytest_asyncio/plugin.py", line 478, in inner _loop.run_until_complete(task) File "/usr/lib/python3.11/asyncio/base_events.py", line 641, in run_until_complete self.run_forever() File "/usr/lib/python3.11/asyncio/base_events.py", line 608, in run_forever self._run_once() File "/usr/lib/python3.11/asyncio/base_events.py", line 1928, in _run_once handle._run() File "/usr/lib/python3.11/asyncio/events.py", line 84, in _run self._context.run(self._callback, *self._args) File "/build/reproducible-path/aiorwlock-1.0.0/tests/test_rwlock.py", line 295, in test_readers_writers b2 = Bunch(w, N) File "/build/reproducible-path/aiorwlock-1.0.0/tests/test_rwlock.py", line 37, in __init__ t = asyncio.Task(task()) task: .task() running at /build/reproducible-path/aiorwlock-1.0.0/tests/test_rwlock.py:30> wait_for= created at /build/reproducible-path/aiorwlock-1.0.0/tests/test_rwlock.py:37> ERROR asyncio:base_events.py:1785 Task was destroyed but it is pending! source_traceback: Object created at (most recent call last): File "", line 198, in _run_module_as_main File "", line 88, in _run_code File "/usr/lib/python3/dist-packages/pytest/__main__.py", line 7, in raise SystemExit(pytest.console_main()) File "/usr/lib/python3/dist-packages/_pytest/config/__init__.py", line 206, in console_main code = main() File "/usr/lib/python3/dist-packages/_pytest/config/__init__.py", line 178, in main ret: Union[ExitCode, int] = config.hook.pytest_cmdline_main( File "/usr/lib/python3/dist-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3/dist-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3/dist-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3/dist-packages/_pytest/main.py", line 332, in pytest_cmdline_main return wrap_session(config, _main) File "/usr/lib/python3/dist-packages/_pytest/main.py", line 285, in wrap_session session.exitstatus = doit(config, session) or 0 File "/usr/lib/python3/dist-packages/_pytest/main.py", line 339, in _main config.hook.pytest_runtestloop(session=session) File "/usr/lib/python3/dist-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3/dist-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3/dist-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3/dist-packages/_pytest/main.py", line 364, in pytest_runtestloop item.config.hook.pytest_runtest_protocol(item=item, nextitem=nextitem) File "/usr/lib/python3/dist-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3/dist-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3/dist-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3/dist-packages/_pytest/runner.py", line 116, in pytest_runtest_protocol runtestprotocol(item, nextitem=nextitem) File "/usr/lib/python3/dist-packages/_pytest/runner.py", line 135, in runtestprotocol reports.append(call_and_report(item, "call", log)) File "/usr/lib/python3/dist-packages/_pytest/runner.py", line 240, in call_and_report call = CallInfo.from_call( File "/usr/lib/python3/dist-packages/_pytest/runner.py", line 341, in from_call result: Optional[TResult] = func() File "/usr/lib/python3/dist-packages/_pytest/runner.py", line 241, in lambda: runtest_hook(item=item, **kwds), when=when, reraise=reraise File "/usr/lib/python3/dist-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3/dist-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3/dist-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3/dist-packages/_pytest/runner.py", line 173, in pytest_runtest_call item.runtest() File "/usr/lib/python3/dist-packages/_pytest/python.py", line 1632, in runtest self.ihook.pytest_pyfunc_call(pyfuncitem=self) File "/usr/lib/python3/dist-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3/dist-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3/dist-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3/dist-packages/_pytest/python.py", line 162, in pytest_pyfunc_call result = testfunction(**testargs) File "/usr/lib/python3/dist-packages/pytest_asyncio/plugin.py", line 478, in inner _loop.run_until_complete(task) File "/usr/lib/python3.11/asyncio/base_events.py", line 641, in run_until_complete self.run_forever() File "/usr/lib/python3.11/asyncio/base_events.py", line 608, in run_forever self._run_once() File "/usr/lib/python3.11/asyncio/base_events.py", line 1928, in _run_once handle._run() File "/usr/lib/python3.11/asyncio/events.py", line 84, in _run self._context.run(self._callback, *self._args) File "/build/reproducible-path/aiorwlock-1.0.0/tests/test_rwlock.py", line 295, in test_readers_writers b2 = Bunch(w, N) File "/build/reproducible-path/aiorwlock-1.0.0/tests/test_rwlock.py", line 37, in __init__ t = asyncio.Task(task()) task: .task() running at /build/reproducible-path/aiorwlock-1.0.0/tests/test_rwlock.py:30> wait_for= created at /build/reproducible-path/aiorwlock-1.0.0/tests/test_rwlock.py:37> ERROR asyncio:base_events.py:1785 Task was destroyed but it is pending! source_traceback: Object created at (most recent call last): File "", line 198, in _run_module_as_main File "", line 88, in _run_code File "/usr/lib/python3/dist-packages/pytest/__main__.py", line 7, in raise SystemExit(pytest.console_main()) File "/usr/lib/python3/dist-packages/_pytest/config/__init__.py", line 206, in console_main code = main() File "/usr/lib/python3/dist-packages/_pytest/config/__init__.py", line 178, in main ret: Union[ExitCode, int] = config.hook.pytest_cmdline_main( File "/usr/lib/python3/dist-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3/dist-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3/dist-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3/dist-packages/_pytest/main.py", line 332, in pytest_cmdline_main return wrap_session(config, _main) File "/usr/lib/python3/dist-packages/_pytest/main.py", line 285, in wrap_session session.exitstatus = doit(config, session) or 0 File "/usr/lib/python3/dist-packages/_pytest/main.py", line 339, in _main config.hook.pytest_runtestloop(session=session) File "/usr/lib/python3/dist-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3/dist-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3/dist-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3/dist-packages/_pytest/main.py", line 364, in pytest_runtestloop item.config.hook.pytest_runtest_protocol(item=item, nextitem=nextitem) File "/usr/lib/python3/dist-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3/dist-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3/dist-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3/dist-packages/_pytest/runner.py", line 116, in pytest_runtest_protocol runtestprotocol(item, nextitem=nextitem) File "/usr/lib/python3/dist-packages/_pytest/runner.py", line 135, in runtestprotocol reports.append(call_and_report(item, "call", log)) File "/usr/lib/python3/dist-packages/_pytest/runner.py", line 240, in call_and_report call = CallInfo.from_call( File "/usr/lib/python3/dist-packages/_pytest/runner.py", line 341, in from_call result: Optional[TResult] = func() File "/usr/lib/python3/dist-packages/_pytest/runner.py", line 241, in lambda: runtest_hook(item=item, **kwds), when=when, reraise=reraise File "/usr/lib/python3/dist-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3/dist-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3/dist-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3/dist-packages/_pytest/runner.py", line 173, in pytest_runtest_call item.runtest() File "/usr/lib/python3/dist-packages/_pytest/python.py", line 1632, in runtest self.ihook.pytest_pyfunc_call(pyfuncitem=self) File "/usr/lib/python3/dist-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3/dist-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3/dist-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3/dist-packages/_pytest/python.py", line 162, in pytest_pyfunc_call result = testfunction(**testargs) File "/usr/lib/python3/dist-packages/pytest_asyncio/plugin.py", line 478, in inner _loop.run_until_complete(task) File "/usr/lib/python3.11/asyncio/base_events.py", line 641, in run_until_complete self.run_forever() File "/usr/lib/python3.11/asyncio/base_events.py", line 608, in run_forever self._run_once() File "/usr/lib/python3.11/asyncio/base_events.py", line 1928, in _run_once handle._run() File "/usr/lib/python3.11/asyncio/events.py", line 84, in _run self._context.run(self._callback, *self._args) File "/build/reproducible-path/aiorwlock-1.0.0/tests/test_rwlock.py", line 295, in test_readers_writers b2 = Bunch(w, N) File "/build/reproducible-path/aiorwlock-1.0.0/tests/test_rwlock.py", line 37, in __init__ t = asyncio.Task(task()) task: .task() running at /build/reproducible-path/aiorwlock-1.0.0/tests/test_rwlock.py:30> wait_for= created at /build/reproducible-path/aiorwlock-1.0.0/tests/test_rwlock.py:37> ERROR asyncio:base_events.py:1785 Task was destroyed but it is pending! source_traceback: Object created at (most recent call last): File "", line 198, in _run_module_as_main File "", line 88, in _run_code File "/usr/lib/python3/dist-packages/pytest/__main__.py", line 7, in raise SystemExit(pytest.console_main()) File "/usr/lib/python3/dist-packages/_pytest/config/__init__.py", line 206, in console_main code = main() File "/usr/lib/python3/dist-packages/_pytest/config/__init__.py", line 178, in main ret: Union[ExitCode, int] = config.hook.pytest_cmdline_main( File "/usr/lib/python3/dist-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3/dist-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3/dist-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3/dist-packages/_pytest/main.py", line 332, in pytest_cmdline_main return wrap_session(config, _main) File "/usr/lib/python3/dist-packages/_pytest/main.py", line 285, in wrap_session session.exitstatus = doit(config, session) or 0 File "/usr/lib/python3/dist-packages/_pytest/main.py", line 339, in _main config.hook.pytest_runtestloop(session=session) File "/usr/lib/python3/dist-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3/dist-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3/dist-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3/dist-packages/_pytest/main.py", line 364, in pytest_runtestloop item.config.hook.pytest_runtest_protocol(item=item, nextitem=nextitem) File "/usr/lib/python3/dist-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3/dist-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3/dist-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3/dist-packages/_pytest/runner.py", line 116, in pytest_runtest_protocol runtestprotocol(item, nextitem=nextitem) File "/usr/lib/python3/dist-packages/_pytest/runner.py", line 135, in runtestprotocol reports.append(call_and_report(item, "call", log)) File "/usr/lib/python3/dist-packages/_pytest/runner.py", line 240, in call_and_report call = CallInfo.from_call( File "/usr/lib/python3/dist-packages/_pytest/runner.py", line 341, in from_call result: Optional[TResult] = func() File "/usr/lib/python3/dist-packages/_pytest/runner.py", line 241, in lambda: runtest_hook(item=item, **kwds), when=when, reraise=reraise File "/usr/lib/python3/dist-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3/dist-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3/dist-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3/dist-packages/_pytest/runner.py", line 173, in pytest_runtest_call item.runtest() File "/usr/lib/python3/dist-packages/_pytest/python.py", line 1632, in runtest self.ihook.pytest_pyfunc_call(pyfuncitem=self) File "/usr/lib/python3/dist-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3/dist-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3/dist-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3/dist-packages/_pytest/python.py", line 162, in pytest_pyfunc_call result = testfunction(**testargs) File "/usr/lib/python3/dist-packages/pytest_asyncio/plugin.py", line 478, in inner _loop.run_until_complete(task) File "/usr/lib/python3.11/asyncio/base_events.py", line 641, in run_until_complete self.run_forever() File "/usr/lib/python3.11/asyncio/base_events.py", line 608, in run_forever self._run_once() File "/usr/lib/python3.11/asyncio/base_events.py", line 1928, in _run_once handle._run() File "/usr/lib/python3.11/asyncio/events.py", line 84, in _run self._context.run(self._callback, *self._args) File "/build/reproducible-path/aiorwlock-1.0.0/tests/test_rwlock.py", line 295, in test_readers_writers b2 = Bunch(w, N) File "/build/reproducible-path/aiorwlock-1.0.0/tests/test_rwlock.py", line 37, in __init__ t = asyncio.Task(task()) task: .task() running at /build/reproducible-path/aiorwlock-1.0.0/tests/test_rwlock.py:30> wait_for= created at /build/reproducible-path/aiorwlock-1.0.0/tests/test_rwlock.py:37> _ ERROR at teardown of test_raise_error_on_with_for_writer_lock[debug:true-slow-pyloop] _ cls = func = . at 0xf65b6618> when = 'teardown' reraise = (, ) @classmethod def from_call( cls, func: Callable[[], TResult], when: Literal["collect", "setup", "call", "teardown"], reraise: Optional[ Union[Type[BaseException], Tuple[Type[BaseException], ...]] ] = None, ) -> "CallInfo[TResult]": """Call func, wrapping the result in a CallInfo. :param func: The function to call. Called without arguments. :param when: The phase in which the function is called. :param reraise: Exception or exceptions that shall propagate if raised by the function, instead of being wrapped in the CallInfo. """ excinfo = None start = timing.time() precise_start = timing.perf_counter() try: > result: Optional[TResult] = func() /usr/lib/python3/dist-packages/_pytest/runner.py:341: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/dist-packages/_pytest/runner.py:241: in lambda: runtest_hook(item=item, **kwds), when=when, reraise=reraise /usr/lib/python3/dist-packages/pluggy/_hooks.py:513: in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) /usr/lib/python3/dist-packages/pluggy/_manager.py:120: in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) /usr/lib/python3/dist-packages/_pytest/threadexception.py:92: in pytest_runtest_teardown yield from thread_exception_runtest_hook() /usr/lib/python3/dist-packages/_pytest/threadexception.py:63: in thread_exception_runtest_hook yield /usr/lib/python3/dist-packages/_pytest/unraisableexception.py:95: in pytest_runtest_teardown yield from unraisable_exception_runtest_hook() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ def unraisable_exception_runtest_hook() -> Generator[None, None, None]: with catch_unraisable_exception() as cm: try: yield finally: if cm.unraisable: if cm.unraisable.err_msg is not None: err_msg = cm.unraisable.err_msg else: err_msg = "Exception ignored in" msg = f"{err_msg}: {cm.unraisable.object!r}\n\n" msg += "".join( traceback.format_exception( cm.unraisable.exc_type, cm.unraisable.exc_value, cm.unraisable.exc_traceback, ) ) > warnings.warn(pytest.PytestUnraisableExceptionWarning(msg)) E pytest.PytestUnraisableExceptionWarning: Exception ignored in: E E Traceback (most recent call last): E File "/build/reproducible-path/aiorwlock-1.0.0/tests/conftest.py", line 44, in event_loop E gc.collect() E ResourceWarning: unclosed /usr/lib/python3/dist-packages/_pytest/unraisableexception.py:80: PytestUnraisableExceptionWarning ________ ERROR at teardown of test_read_locked[debug:true-slow-pyloop] _________ cls = func = . at 0xf6130208> when = 'teardown' reraise = (, ) @classmethod def from_call( cls, func: Callable[[], TResult], when: Literal["collect", "setup", "call", "teardown"], reraise: Optional[ Union[Type[BaseException], Tuple[Type[BaseException], ...]] ] = None, ) -> "CallInfo[TResult]": """Call func, wrapping the result in a CallInfo. :param func: The function to call. Called without arguments. :param when: The phase in which the function is called. :param reraise: Exception or exceptions that shall propagate if raised by the function, instead of being wrapped in the CallInfo. """ excinfo = None start = timing.time() precise_start = timing.perf_counter() try: > result: Optional[TResult] = func() /usr/lib/python3/dist-packages/_pytest/runner.py:341: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/dist-packages/_pytest/runner.py:241: in lambda: runtest_hook(item=item, **kwds), when=when, reraise=reraise /usr/lib/python3/dist-packages/pluggy/_hooks.py:513: in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) /usr/lib/python3/dist-packages/pluggy/_manager.py:120: in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) /usr/lib/python3/dist-packages/_pytest/threadexception.py:92: in pytest_runtest_teardown yield from thread_exception_runtest_hook() /usr/lib/python3/dist-packages/_pytest/threadexception.py:63: in thread_exception_runtest_hook yield /usr/lib/python3/dist-packages/_pytest/unraisableexception.py:95: in pytest_runtest_teardown yield from unraisable_exception_runtest_hook() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ def unraisable_exception_runtest_hook() -> Generator[None, None, None]: with catch_unraisable_exception() as cm: try: yield finally: if cm.unraisable: if cm.unraisable.err_msg is not None: err_msg = cm.unraisable.err_msg else: err_msg = "Exception ignored in" msg = f"{err_msg}: {cm.unraisable.object!r}\n\n" msg += "".join( traceback.format_exception( cm.unraisable.exc_type, cm.unraisable.exc_value, cm.unraisable.exc_traceback, ) ) > warnings.warn(pytest.PytestUnraisableExceptionWarning(msg)) E pytest.PytestUnraisableExceptionWarning: Exception ignored in: E E Traceback (most recent call last): E File "/build/reproducible-path/aiorwlock-1.0.0/tests/conftest.py", line 44, in event_loop E gc.collect() E ResourceWarning: unclosed /usr/lib/python3/dist-packages/_pytest/unraisableexception.py:80: PytestUnraisableExceptionWarning ________ ERROR at teardown of test_write_locked[debug:true-slow-pyloop] ________ cls = func = . at 0xf613fa28> when = 'teardown' reraise = (, ) @classmethod def from_call( cls, func: Callable[[], TResult], when: Literal["collect", "setup", "call", "teardown"], reraise: Optional[ Union[Type[BaseException], Tuple[Type[BaseException], ...]] ] = None, ) -> "CallInfo[TResult]": """Call func, wrapping the result in a CallInfo. :param func: The function to call. Called without arguments. :param when: The phase in which the function is called. :param reraise: Exception or exceptions that shall propagate if raised by the function, instead of being wrapped in the CallInfo. """ excinfo = None start = timing.time() precise_start = timing.perf_counter() try: > result: Optional[TResult] = func() /usr/lib/python3/dist-packages/_pytest/runner.py:341: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/dist-packages/_pytest/runner.py:241: in lambda: runtest_hook(item=item, **kwds), when=when, reraise=reraise /usr/lib/python3/dist-packages/pluggy/_hooks.py:513: in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) /usr/lib/python3/dist-packages/pluggy/_manager.py:120: in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) /usr/lib/python3/dist-packages/_pytest/threadexception.py:92: in pytest_runtest_teardown yield from thread_exception_runtest_hook() /usr/lib/python3/dist-packages/_pytest/threadexception.py:63: in thread_exception_runtest_hook yield /usr/lib/python3/dist-packages/_pytest/unraisableexception.py:95: in pytest_runtest_teardown yield from unraisable_exception_runtest_hook() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ def unraisable_exception_runtest_hook() -> Generator[None, None, None]: with catch_unraisable_exception() as cm: try: yield finally: if cm.unraisable: if cm.unraisable.err_msg is not None: err_msg = cm.unraisable.err_msg else: err_msg = "Exception ignored in" msg = f"{err_msg}: {cm.unraisable.object!r}\n\n" msg += "".join( traceback.format_exception( cm.unraisable.exc_type, cm.unraisable.exc_value, cm.unraisable.exc_traceback, ) ) > warnings.warn(pytest.PytestUnraisableExceptionWarning(msg)) E pytest.PytestUnraisableExceptionWarning: Exception ignored in: E E Traceback (most recent call last): E File "/build/reproducible-path/aiorwlock-1.0.0/tests/conftest.py", line 44, in event_loop E gc.collect() E ResourceWarning: unclosed /usr/lib/python3/dist-packages/_pytest/unraisableexception.py:80: PytestUnraisableExceptionWarning _ ERROR at teardown of test_write_read_lock_multiple_tasks[debug:true-slow-pyloop] _ cls = func = . at 0xf6130b68> when = 'teardown' reraise = (, ) @classmethod def from_call( cls, func: Callable[[], TResult], when: Literal["collect", "setup", "call", "teardown"], reraise: Optional[ Union[Type[BaseException], Tuple[Type[BaseException], ...]] ] = None, ) -> "CallInfo[TResult]": """Call func, wrapping the result in a CallInfo. :param func: The function to call. Called without arguments. :param when: The phase in which the function is called. :param reraise: Exception or exceptions that shall propagate if raised by the function, instead of being wrapped in the CallInfo. """ excinfo = None start = timing.time() precise_start = timing.perf_counter() try: > result: Optional[TResult] = func() /usr/lib/python3/dist-packages/_pytest/runner.py:341: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/dist-packages/_pytest/runner.py:241: in lambda: runtest_hook(item=item, **kwds), when=when, reraise=reraise /usr/lib/python3/dist-packages/pluggy/_hooks.py:513: in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) /usr/lib/python3/dist-packages/pluggy/_manager.py:120: in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) /usr/lib/python3/dist-packages/_pytest/threadexception.py:92: in pytest_runtest_teardown yield from thread_exception_runtest_hook() /usr/lib/python3/dist-packages/_pytest/threadexception.py:63: in thread_exception_runtest_hook yield /usr/lib/python3/dist-packages/_pytest/unraisableexception.py:95: in pytest_runtest_teardown yield from unraisable_exception_runtest_hook() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ def unraisable_exception_runtest_hook() -> Generator[None, None, None]: with catch_unraisable_exception() as cm: try: yield finally: if cm.unraisable: if cm.unraisable.err_msg is not None: err_msg = cm.unraisable.err_msg else: err_msg = "Exception ignored in" msg = f"{err_msg}: {cm.unraisable.object!r}\n\n" msg += "".join( traceback.format_exception( cm.unraisable.exc_type, cm.unraisable.exc_value, cm.unraisable.exc_traceback, ) ) > warnings.warn(pytest.PytestUnraisableExceptionWarning(msg)) E pytest.PytestUnraisableExceptionWarning: Exception ignored in: E E Traceback (most recent call last): E File "/build/reproducible-path/aiorwlock-1.0.0/tests/conftest.py", line 44, in event_loop E gc.collect() E ResourceWarning: unclosed /usr/lib/python3/dist-packages/_pytest/unraisableexception.py:80: PytestUnraisableExceptionWarning ____ ERROR at teardown of test_read_context_manager[debug:true-slow-pyloop] ____ cls = func = . at 0xf613f938> when = 'teardown' reraise = (, ) @classmethod def from_call( cls, func: Callable[[], TResult], when: Literal["collect", "setup", "call", "teardown"], reraise: Optional[ Union[Type[BaseException], Tuple[Type[BaseException], ...]] ] = None, ) -> "CallInfo[TResult]": """Call func, wrapping the result in a CallInfo. :param func: The function to call. Called without arguments. :param when: The phase in which the function is called. :param reraise: Exception or exceptions that shall propagate if raised by the function, instead of being wrapped in the CallInfo. """ excinfo = None start = timing.time() precise_start = timing.perf_counter() try: > result: Optional[TResult] = func() /usr/lib/python3/dist-packages/_pytest/runner.py:341: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/dist-packages/_pytest/runner.py:241: in lambda: runtest_hook(item=item, **kwds), when=when, reraise=reraise /usr/lib/python3/dist-packages/pluggy/_hooks.py:513: in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) /usr/lib/python3/dist-packages/pluggy/_manager.py:120: in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) /usr/lib/python3/dist-packages/_pytest/threadexception.py:92: in pytest_runtest_teardown yield from thread_exception_runtest_hook() /usr/lib/python3/dist-packages/_pytest/threadexception.py:63: in thread_exception_runtest_hook yield /usr/lib/python3/dist-packages/_pytest/unraisableexception.py:95: in pytest_runtest_teardown yield from unraisable_exception_runtest_hook() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ def unraisable_exception_runtest_hook() -> Generator[None, None, None]: with catch_unraisable_exception() as cm: try: yield finally: if cm.unraisable: if cm.unraisable.err_msg is not None: err_msg = cm.unraisable.err_msg else: err_msg = "Exception ignored in" msg = f"{err_msg}: {cm.unraisable.object!r}\n\n" msg += "".join( traceback.format_exception( cm.unraisable.exc_type, cm.unraisable.exc_value, cm.unraisable.exc_traceback, ) ) > warnings.warn(pytest.PytestUnraisableExceptionWarning(msg)) E pytest.PytestUnraisableExceptionWarning: Exception ignored in: E E Traceback (most recent call last): E File "/build/reproducible-path/aiorwlock-1.0.0/tests/conftest.py", line 44, in event_loop E gc.collect() E ResourceWarning: unclosed /usr/lib/python3/dist-packages/_pytest/unraisableexception.py:80: PytestUnraisableExceptionWarning ___ ERROR at teardown of test_write_context_manager[debug:true-slow-pyloop] ____ cls = func = . at 0xf613fd48> when = 'teardown' reraise = (, ) @classmethod def from_call( cls, func: Callable[[], TResult], when: Literal["collect", "setup", "call", "teardown"], reraise: Optional[ Union[Type[BaseException], Tuple[Type[BaseException], ...]] ] = None, ) -> "CallInfo[TResult]": """Call func, wrapping the result in a CallInfo. :param func: The function to call. Called without arguments. :param when: The phase in which the function is called. :param reraise: Exception or exceptions that shall propagate if raised by the function, instead of being wrapped in the CallInfo. """ excinfo = None start = timing.time() precise_start = timing.perf_counter() try: > result: Optional[TResult] = func() /usr/lib/python3/dist-packages/_pytest/runner.py:341: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/dist-packages/_pytest/runner.py:241: in lambda: runtest_hook(item=item, **kwds), when=when, reraise=reraise /usr/lib/python3/dist-packages/pluggy/_hooks.py:513: in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) /usr/lib/python3/dist-packages/pluggy/_manager.py:120: in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) /usr/lib/python3/dist-packages/_pytest/threadexception.py:92: in pytest_runtest_teardown yield from thread_exception_runtest_hook() /usr/lib/python3/dist-packages/_pytest/threadexception.py:63: in thread_exception_runtest_hook yield /usr/lib/python3/dist-packages/_pytest/unraisableexception.py:95: in pytest_runtest_teardown yield from unraisable_exception_runtest_hook() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ def unraisable_exception_runtest_hook() -> Generator[None, None, None]: with catch_unraisable_exception() as cm: try: yield finally: if cm.unraisable: if cm.unraisable.err_msg is not None: err_msg = cm.unraisable.err_msg else: err_msg = "Exception ignored in" msg = f"{err_msg}: {cm.unraisable.object!r}\n\n" msg += "".join( traceback.format_exception( cm.unraisable.exc_type, cm.unraisable.exc_value, cm.unraisable.exc_traceback, ) ) > warnings.warn(pytest.PytestUnraisableExceptionWarning(msg)) E pytest.PytestUnraisableExceptionWarning: Exception ignored in: E E Traceback (most recent call last): E File "/build/reproducible-path/aiorwlock-1.0.0/tests/conftest.py", line 44, in event_loop E gc.collect() E ResourceWarning: unclosed /usr/lib/python3/dist-packages/_pytest/unraisableexception.py:80: PytestUnraisableExceptionWarning ______ ERROR at teardown of test_await_read_lock[debug:true-slow-pyloop] _______ cls = func = . at 0xf616ac08> when = 'teardown' reraise = (, ) @classmethod def from_call( cls, func: Callable[[], TResult], when: Literal["collect", "setup", "call", "teardown"], reraise: Optional[ Union[Type[BaseException], Tuple[Type[BaseException], ...]] ] = None, ) -> "CallInfo[TResult]": """Call func, wrapping the result in a CallInfo. :param func: The function to call. Called without arguments. :param when: The phase in which the function is called. :param reraise: Exception or exceptions that shall propagate if raised by the function, instead of being wrapped in the CallInfo. """ excinfo = None start = timing.time() precise_start = timing.perf_counter() try: > result: Optional[TResult] = func() /usr/lib/python3/dist-packages/_pytest/runner.py:341: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/dist-packages/_pytest/runner.py:241: in lambda: runtest_hook(item=item, **kwds), when=when, reraise=reraise /usr/lib/python3/dist-packages/pluggy/_hooks.py:513: in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) /usr/lib/python3/dist-packages/pluggy/_manager.py:120: in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) /usr/lib/python3/dist-packages/_pytest/threadexception.py:92: in pytest_runtest_teardown yield from thread_exception_runtest_hook() /usr/lib/python3/dist-packages/_pytest/threadexception.py:63: in thread_exception_runtest_hook yield /usr/lib/python3/dist-packages/_pytest/unraisableexception.py:95: in pytest_runtest_teardown yield from unraisable_exception_runtest_hook() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ def unraisable_exception_runtest_hook() -> Generator[None, None, None]: with catch_unraisable_exception() as cm: try: yield finally: if cm.unraisable: if cm.unraisable.err_msg is not None: err_msg = cm.unraisable.err_msg else: err_msg = "Exception ignored in" msg = f"{err_msg}: {cm.unraisable.object!r}\n\n" msg += "".join( traceback.format_exception( cm.unraisable.exc_type, cm.unraisable.exc_value, cm.unraisable.exc_traceback, ) ) > warnings.warn(pytest.PytestUnraisableExceptionWarning(msg)) E pytest.PytestUnraisableExceptionWarning: Exception ignored in: E E Traceback (most recent call last): E File "/build/reproducible-path/aiorwlock-1.0.0/tests/conftest.py", line 44, in event_loop E gc.collect() E ResourceWarning: unclosed /usr/lib/python3/dist-packages/_pytest/unraisableexception.py:80: PytestUnraisableExceptionWarning ______ ERROR at teardown of test_await_write_lock[debug:true-slow-pyloop] ______ cls = func = . at 0xf616a708> when = 'teardown' reraise = (, ) @classmethod def from_call( cls, func: Callable[[], TResult], when: Literal["collect", "setup", "call", "teardown"], reraise: Optional[ Union[Type[BaseException], Tuple[Type[BaseException], ...]] ] = None, ) -> "CallInfo[TResult]": """Call func, wrapping the result in a CallInfo. :param func: The function to call. Called without arguments. :param when: The phase in which the function is called. :param reraise: Exception or exceptions that shall propagate if raised by the function, instead of being wrapped in the CallInfo. """ excinfo = None start = timing.time() precise_start = timing.perf_counter() try: > result: Optional[TResult] = func() /usr/lib/python3/dist-packages/_pytest/runner.py:341: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/dist-packages/_pytest/runner.py:241: in lambda: runtest_hook(item=item, **kwds), when=when, reraise=reraise /usr/lib/python3/dist-packages/pluggy/_hooks.py:513: in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) /usr/lib/python3/dist-packages/pluggy/_manager.py:120: in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) /usr/lib/python3/dist-packages/_pytest/threadexception.py:92: in pytest_runtest_teardown yield from thread_exception_runtest_hook() /usr/lib/python3/dist-packages/_pytest/threadexception.py:63: in thread_exception_runtest_hook yield /usr/lib/python3/dist-packages/_pytest/unraisableexception.py:95: in pytest_runtest_teardown yield from unraisable_exception_runtest_hook() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ def unraisable_exception_runtest_hook() -> Generator[None, None, None]: with catch_unraisable_exception() as cm: try: yield finally: if cm.unraisable: if cm.unraisable.err_msg is not None: err_msg = cm.unraisable.err_msg else: err_msg = "Exception ignored in" msg = f"{err_msg}: {cm.unraisable.object!r}\n\n" msg += "".join( traceback.format_exception( cm.unraisable.exc_type, cm.unraisable.exc_value, cm.unraisable.exc_traceback, ) ) > warnings.warn(pytest.PytestUnraisableExceptionWarning(msg)) E pytest.PytestUnraisableExceptionWarning: Exception ignored in: E E Traceback (most recent call last): E File "/build/reproducible-path/aiorwlock-1.0.0/tests/conftest.py", line 44, in event_loop E gc.collect() E ResourceWarning: unclosed /usr/lib/python3/dist-packages/_pytest/unraisableexception.py:80: PytestUnraisableExceptionWarning __________ ERROR at teardown of test_current_task[debug:true-uvloop] ___________ cls = func = . at 0xf65f5b18> when = 'teardown' reraise = (, ) @classmethod def from_call( cls, func: Callable[[], TResult], when: Literal["collect", "setup", "call", "teardown"], reraise: Optional[ Union[Type[BaseException], Tuple[Type[BaseException], ...]] ] = None, ) -> "CallInfo[TResult]": """Call func, wrapping the result in a CallInfo. :param func: The function to call. Called without arguments. :param when: The phase in which the function is called. :param reraise: Exception or exceptions that shall propagate if raised by the function, instead of being wrapped in the CallInfo. """ excinfo = None start = timing.time() precise_start = timing.perf_counter() try: > result: Optional[TResult] = func() /usr/lib/python3/dist-packages/_pytest/runner.py:341: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/dist-packages/_pytest/runner.py:241: in lambda: runtest_hook(item=item, **kwds), when=when, reraise=reraise /usr/lib/python3/dist-packages/pluggy/_hooks.py:513: in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) /usr/lib/python3/dist-packages/pluggy/_manager.py:120: in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) /usr/lib/python3/dist-packages/_pytest/threadexception.py:92: in pytest_runtest_teardown yield from thread_exception_runtest_hook() /usr/lib/python3/dist-packages/_pytest/threadexception.py:63: in thread_exception_runtest_hook yield /usr/lib/python3/dist-packages/_pytest/unraisableexception.py:95: in pytest_runtest_teardown yield from unraisable_exception_runtest_hook() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ def unraisable_exception_runtest_hook() -> Generator[None, None, None]: with catch_unraisable_exception() as cm: try: yield finally: if cm.unraisable: if cm.unraisable.err_msg is not None: err_msg = cm.unraisable.err_msg else: err_msg = "Exception ignored in" msg = f"{err_msg}: {cm.unraisable.object!r}\n\n" msg += "".join( traceback.format_exception( cm.unraisable.exc_type, cm.unraisable.exc_value, cm.unraisable.exc_traceback, ) ) > warnings.warn(pytest.PytestUnraisableExceptionWarning(msg)) E pytest.PytestUnraisableExceptionWarning: Exception ignored in: E E Traceback (most recent call last): E File "/build/reproducible-path/aiorwlock-1.0.0/tests/conftest.py", line 44, in event_loop E gc.collect() E ResourceWarning: unclosed /usr/lib/python3/dist-packages/_pytest/unraisableexception.py:80: PytestUnraisableExceptionWarning ---------------------------- Captured log teardown ----------------------------- ERROR asyncio:conftest.py:44 Task was destroyed but it is pending! source_traceback: Object created at (most recent call last): File "", line 198, in _run_module_as_main File "", line 88, in _run_code File "/usr/lib/python3/dist-packages/pytest/__main__.py", line 7, in raise SystemExit(pytest.console_main()) File "/usr/lib/python3/dist-packages/_pytest/config/__init__.py", line 206, in console_main code = main() File "/usr/lib/python3/dist-packages/_pytest/config/__init__.py", line 178, in main ret: Union[ExitCode, int] = config.hook.pytest_cmdline_main( File "/usr/lib/python3/dist-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3/dist-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3/dist-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3/dist-packages/_pytest/main.py", line 332, in pytest_cmdline_main return wrap_session(config, _main) File "/usr/lib/python3/dist-packages/_pytest/main.py", line 285, in wrap_session session.exitstatus = doit(config, session) or 0 File "/usr/lib/python3/dist-packages/_pytest/main.py", line 339, in _main config.hook.pytest_runtestloop(session=session) File "/usr/lib/python3/dist-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3/dist-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3/dist-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3/dist-packages/_pytest/main.py", line 364, in pytest_runtestloop item.config.hook.pytest_runtest_protocol(item=item, nextitem=nextitem) File "/usr/lib/python3/dist-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3/dist-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3/dist-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3/dist-packages/_pytest/runner.py", line 116, in pytest_runtest_protocol runtestprotocol(item, nextitem=nextitem) File "/usr/lib/python3/dist-packages/_pytest/runner.py", line 135, in runtestprotocol reports.append(call_and_report(item, "call", log)) File "/usr/lib/python3/dist-packages/_pytest/runner.py", line 240, in call_and_report call = CallInfo.from_call( File "/usr/lib/python3/dist-packages/_pytest/runner.py", line 341, in from_call result: Optional[TResult] = func() File "/usr/lib/python3/dist-packages/_pytest/runner.py", line 241, in lambda: runtest_hook(item=item, **kwds), when=when, reraise=reraise File "/usr/lib/python3/dist-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3/dist-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3/dist-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3/dist-packages/_pytest/runner.py", line 173, in pytest_runtest_call item.runtest() File "/usr/lib/python3/dist-packages/_pytest/python.py", line 1632, in runtest self.ihook.pytest_pyfunc_call(pyfuncitem=self) File "/usr/lib/python3/dist-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3/dist-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3/dist-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3/dist-packages/_pytest/python.py", line 162, in pytest_pyfunc_call result = testfunction(**testargs) File "/usr/lib/python3/dist-packages/pytest_asyncio/plugin.py", line 478, in inner _loop.run_until_complete(task) File "/build/reproducible-path/aiorwlock-1.0.0/tests/test_rwlock.py", line 440, in test_writer_success_with_statement b2 = Bunch(w, 1) File "/build/reproducible-path/aiorwlock-1.0.0/tests/test_rwlock.py", line 37, in __init__ t = asyncio.Task(task()) task: .task() running at /build/reproducible-path/aiorwlock-1.0.0/tests/test_rwlock.py:30> wait_for= created at /build/reproducible-path/aiorwlock-1.0.0/tests/test_rwlock.py:37> __________ ERROR at teardown of test_current_task[debug:true-pyloop] ___________ cls = func = . at 0xf65e37a8> when = 'teardown' reraise = (, ) @classmethod def from_call( cls, func: Callable[[], TResult], when: Literal["collect", "setup", "call", "teardown"], reraise: Optional[ Union[Type[BaseException], Tuple[Type[BaseException], ...]] ] = None, ) -> "CallInfo[TResult]": """Call func, wrapping the result in a CallInfo. :param func: The function to call. Called without arguments. :param when: The phase in which the function is called. :param reraise: Exception or exceptions that shall propagate if raised by the function, instead of being wrapped in the CallInfo. """ excinfo = None start = timing.time() precise_start = timing.perf_counter() try: > result: Optional[TResult] = func() /usr/lib/python3/dist-packages/_pytest/runner.py:341: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/dist-packages/_pytest/runner.py:241: in lambda: runtest_hook(item=item, **kwds), when=when, reraise=reraise /usr/lib/python3/dist-packages/pluggy/_hooks.py:513: in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) /usr/lib/python3/dist-packages/pluggy/_manager.py:120: in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) /usr/lib/python3/dist-packages/_pytest/threadexception.py:92: in pytest_runtest_teardown yield from thread_exception_runtest_hook() /usr/lib/python3/dist-packages/_pytest/threadexception.py:63: in thread_exception_runtest_hook yield /usr/lib/python3/dist-packages/_pytest/unraisableexception.py:95: in pytest_runtest_teardown yield from unraisable_exception_runtest_hook() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ def unraisable_exception_runtest_hook() -> Generator[None, None, None]: with catch_unraisable_exception() as cm: try: yield finally: if cm.unraisable: if cm.unraisable.err_msg is not None: err_msg = cm.unraisable.err_msg else: err_msg = "Exception ignored in" msg = f"{err_msg}: {cm.unraisable.object!r}\n\n" msg += "".join( traceback.format_exception( cm.unraisable.exc_type, cm.unraisable.exc_value, cm.unraisable.exc_traceback, ) ) > warnings.warn(pytest.PytestUnraisableExceptionWarning(msg)) E pytest.PytestUnraisableExceptionWarning: Exception ignored in: E E Traceback (most recent call last): E File "/build/reproducible-path/aiorwlock-1.0.0/tests/conftest.py", line 44, in event_loop E gc.collect() E ResourceWarning: unclosed /usr/lib/python3/dist-packages/_pytest/unraisableexception.py:80: PytestUnraisableExceptionWarning ---------------------------- Captured log teardown ----------------------------- ERROR asyncio:base_events.py:1785 Task was destroyed but it is pending! source_traceback: Object created at (most recent call last): File "", line 198, in _run_module_as_main File "", line 88, in _run_code File "/usr/lib/python3/dist-packages/pytest/__main__.py", line 7, in raise SystemExit(pytest.console_main()) File "/usr/lib/python3/dist-packages/_pytest/config/__init__.py", line 206, in console_main code = main() File "/usr/lib/python3/dist-packages/_pytest/config/__init__.py", line 178, in main ret: Union[ExitCode, int] = config.hook.pytest_cmdline_main( File "/usr/lib/python3/dist-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3/dist-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3/dist-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3/dist-packages/_pytest/main.py", line 332, in pytest_cmdline_main return wrap_session(config, _main) File "/usr/lib/python3/dist-packages/_pytest/main.py", line 285, in wrap_session session.exitstatus = doit(config, session) or 0 File "/usr/lib/python3/dist-packages/_pytest/main.py", line 339, in _main config.hook.pytest_runtestloop(session=session) File "/usr/lib/python3/dist-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3/dist-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3/dist-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3/dist-packages/_pytest/main.py", line 364, in pytest_runtestloop item.config.hook.pytest_runtest_protocol(item=item, nextitem=nextitem) File "/usr/lib/python3/dist-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3/dist-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3/dist-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3/dist-packages/_pytest/runner.py", line 116, in pytest_runtest_protocol runtestprotocol(item, nextitem=nextitem) File "/usr/lib/python3/dist-packages/_pytest/runner.py", line 135, in runtestprotocol reports.append(call_and_report(item, "call", log)) File "/usr/lib/python3/dist-packages/_pytest/runner.py", line 240, in call_and_report call = CallInfo.from_call( File "/usr/lib/python3/dist-packages/_pytest/runner.py", line 341, in from_call result: Optional[TResult] = func() File "/usr/lib/python3/dist-packages/_pytest/runner.py", line 241, in lambda: runtest_hook(item=item, **kwds), when=when, reraise=reraise File "/usr/lib/python3/dist-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3/dist-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3/dist-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3/dist-packages/_pytest/runner.py", line 173, in pytest_runtest_call item.runtest() File "/usr/lib/python3/dist-packages/_pytest/python.py", line 1632, in runtest self.ihook.pytest_pyfunc_call(pyfuncitem=self) File "/usr/lib/python3/dist-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3/dist-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3/dist-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3/dist-packages/_pytest/python.py", line 162, in pytest_pyfunc_call result = testfunction(**testargs) File "/usr/lib/python3/dist-packages/pytest_asyncio/plugin.py", line 478, in inner _loop.run_until_complete(task) File "/usr/lib/python3.11/asyncio/base_events.py", line 641, in run_until_complete self.run_forever() File "/usr/lib/python3.11/asyncio/base_events.py", line 608, in run_forever self._run_once() File "/usr/lib/python3.11/asyncio/base_events.py", line 1928, in _run_once handle._run() File "/usr/lib/python3.11/asyncio/events.py", line 84, in _run self._context.run(self._callback, *self._args) File "/build/reproducible-path/aiorwlock-1.0.0/tests/test_rwlock.py", line 440, in test_writer_success_with_statement b2 = Bunch(w, 1) File "/build/reproducible-path/aiorwlock-1.0.0/tests/test_rwlock.py", line 37, in __init__ t = asyncio.Task(task()) task: .task() running at /build/reproducible-path/aiorwlock-1.0.0/tests/test_rwlock.py:30> wait_for= created at /build/reproducible-path/aiorwlock-1.0.0/tests/test_rwlock.py:37> _ ERROR at teardown of test_ctor_deprecated_implicit_not_running[debug:false-pyloop] _ cls = func = . at 0xf616ab18> when = 'teardown' reraise = (, ) @classmethod def from_call( cls, func: Callable[[], TResult], when: Literal["collect", "setup", "call", "teardown"], reraise: Optional[ Union[Type[BaseException], Tuple[Type[BaseException], ...]] ] = None, ) -> "CallInfo[TResult]": """Call func, wrapping the result in a CallInfo. :param func: The function to call. Called without arguments. :param when: The phase in which the function is called. :param reraise: Exception or exceptions that shall propagate if raised by the function, instead of being wrapped in the CallInfo. """ excinfo = None start = timing.time() precise_start = timing.perf_counter() try: > result: Optional[TResult] = func() /usr/lib/python3/dist-packages/_pytest/runner.py:341: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/dist-packages/_pytest/runner.py:241: in lambda: runtest_hook(item=item, **kwds), when=when, reraise=reraise /usr/lib/python3/dist-packages/pluggy/_hooks.py:513: in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) /usr/lib/python3/dist-packages/pluggy/_manager.py:120: in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) /usr/lib/python3/dist-packages/_pytest/threadexception.py:92: in pytest_runtest_teardown yield from thread_exception_runtest_hook() /usr/lib/python3/dist-packages/_pytest/threadexception.py:63: in thread_exception_runtest_hook yield /usr/lib/python3/dist-packages/_pytest/unraisableexception.py:95: in pytest_runtest_teardown yield from unraisable_exception_runtest_hook() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ def unraisable_exception_runtest_hook() -> Generator[None, None, None]: with catch_unraisable_exception() as cm: try: yield finally: if cm.unraisable: if cm.unraisable.err_msg is not None: err_msg = cm.unraisable.err_msg else: err_msg = "Exception ignored in" msg = f"{err_msg}: {cm.unraisable.object!r}\n\n" msg += "".join( traceback.format_exception( cm.unraisable.exc_type, cm.unraisable.exc_value, cm.unraisable.exc_traceback, ) ) > warnings.warn(pytest.PytestUnraisableExceptionWarning(msg)) E pytest.PytestUnraisableExceptionWarning: Exception ignored in: E E Traceback (most recent call last): E File "/build/reproducible-path/aiorwlock-1.0.0/tests/conftest.py", line 44, in event_loop E gc.collect() E ResourceWarning: unclosed /usr/lib/python3/dist-packages/_pytest/unraisableexception.py:80: PytestUnraisableExceptionWarning _ ERROR at teardown of test_ctor_deprecated_explicit_non_running[debug:false-pyloop] _ cls = func = . at 0xf65ec2a8> when = 'teardown' reraise = (, ) @classmethod def from_call( cls, func: Callable[[], TResult], when: Literal["collect", "setup", "call", "teardown"], reraise: Optional[ Union[Type[BaseException], Tuple[Type[BaseException], ...]] ] = None, ) -> "CallInfo[TResult]": """Call func, wrapping the result in a CallInfo. :param func: The function to call. Called without arguments. :param when: The phase in which the function is called. :param reraise: Exception or exceptions that shall propagate if raised by the function, instead of being wrapped in the CallInfo. """ excinfo = None start = timing.time() precise_start = timing.perf_counter() try: > result: Optional[TResult] = func() /usr/lib/python3/dist-packages/_pytest/runner.py:341: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/dist-packages/_pytest/runner.py:241: in lambda: runtest_hook(item=item, **kwds), when=when, reraise=reraise /usr/lib/python3/dist-packages/pluggy/_hooks.py:513: in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) /usr/lib/python3/dist-packages/pluggy/_manager.py:120: in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) /usr/lib/python3/dist-packages/_pytest/threadexception.py:92: in pytest_runtest_teardown yield from thread_exception_runtest_hook() /usr/lib/python3/dist-packages/_pytest/threadexception.py:63: in thread_exception_runtest_hook yield /usr/lib/python3/dist-packages/_pytest/unraisableexception.py:95: in pytest_runtest_teardown yield from unraisable_exception_runtest_hook() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ def unraisable_exception_runtest_hook() -> Generator[None, None, None]: with catch_unraisable_exception() as cm: try: yield finally: if cm.unraisable: if cm.unraisable.err_msg is not None: err_msg = cm.unraisable.err_msg else: err_msg = "Exception ignored in" msg = f"{err_msg}: {cm.unraisable.object!r}\n\n" msg += "".join( traceback.format_exception( cm.unraisable.exc_type, cm.unraisable.exc_value, cm.unraisable.exc_traceback, ) ) > warnings.warn(pytest.PytestUnraisableExceptionWarning(msg)) E pytest.PytestUnraisableExceptionWarning: Exception ignored in: E E Traceback (most recent call last): E File "/build/reproducible-path/aiorwlock-1.0.0/tests/conftest.py", line 44, in event_loop E gc.collect() E ResourceWarning: unclosed /usr/lib/python3/dist-packages/_pytest/unraisableexception.py:80: PytestUnraisableExceptionWarning ____ ERROR at teardown of test_ctor_loop_deprecated_arg[debug:false-pyloop] ____ cls = func = . at 0xf65ece88> when = 'teardown' reraise = (, ) @classmethod def from_call( cls, func: Callable[[], TResult], when: Literal["collect", "setup", "call", "teardown"], reraise: Optional[ Union[Type[BaseException], Tuple[Type[BaseException], ...]] ] = None, ) -> "CallInfo[TResult]": """Call func, wrapping the result in a CallInfo. :param func: The function to call. Called without arguments. :param when: The phase in which the function is called. :param reraise: Exception or exceptions that shall propagate if raised by the function, instead of being wrapped in the CallInfo. """ excinfo = None start = timing.time() precise_start = timing.perf_counter() try: > result: Optional[TResult] = func() /usr/lib/python3/dist-packages/_pytest/runner.py:341: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/dist-packages/_pytest/runner.py:241: in lambda: runtest_hook(item=item, **kwds), when=when, reraise=reraise /usr/lib/python3/dist-packages/pluggy/_hooks.py:513: in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) /usr/lib/python3/dist-packages/pluggy/_manager.py:120: in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) /usr/lib/python3/dist-packages/_pytest/threadexception.py:92: in pytest_runtest_teardown yield from thread_exception_runtest_hook() /usr/lib/python3/dist-packages/_pytest/threadexception.py:63: in thread_exception_runtest_hook yield /usr/lib/python3/dist-packages/_pytest/unraisableexception.py:95: in pytest_runtest_teardown yield from unraisable_exception_runtest_hook() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ def unraisable_exception_runtest_hook() -> Generator[None, None, None]: with catch_unraisable_exception() as cm: try: yield finally: if cm.unraisable: if cm.unraisable.err_msg is not None: err_msg = cm.unraisable.err_msg else: err_msg = "Exception ignored in" msg = f"{err_msg}: {cm.unraisable.object!r}\n\n" msg += "".join( traceback.format_exception( cm.unraisable.exc_type, cm.unraisable.exc_value, cm.unraisable.exc_traceback, ) ) > warnings.warn(pytest.PytestUnraisableExceptionWarning(msg)) E pytest.PytestUnraisableExceptionWarning: Exception ignored in: E E Traceback (most recent call last): E File "/build/reproducible-path/aiorwlock-1.0.0/tests/conftest.py", line 44, in event_loop E gc.collect() E ResourceWarning: unclosed /usr/lib/python3/dist-packages/_pytest/unraisableexception.py:80: PytestUnraisableExceptionWarning ________ ERROR at teardown of test_ctor_loop_reader[debug:false-pyloop] ________ cls = func = . at 0xf65ec2a8> when = 'teardown' reraise = (, ) @classmethod def from_call( cls, func: Callable[[], TResult], when: Literal["collect", "setup", "call", "teardown"], reraise: Optional[ Union[Type[BaseException], Tuple[Type[BaseException], ...]] ] = None, ) -> "CallInfo[TResult]": """Call func, wrapping the result in a CallInfo. :param func: The function to call. Called without arguments. :param when: The phase in which the function is called. :param reraise: Exception or exceptions that shall propagate if raised by the function, instead of being wrapped in the CallInfo. """ excinfo = None start = timing.time() precise_start = timing.perf_counter() try: > result: Optional[TResult] = func() /usr/lib/python3/dist-packages/_pytest/runner.py:341: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/dist-packages/_pytest/runner.py:241: in lambda: runtest_hook(item=item, **kwds), when=when, reraise=reraise /usr/lib/python3/dist-packages/pluggy/_hooks.py:513: in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) /usr/lib/python3/dist-packages/pluggy/_manager.py:120: in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) /usr/lib/python3/dist-packages/_pytest/threadexception.py:92: in pytest_runtest_teardown yield from thread_exception_runtest_hook() /usr/lib/python3/dist-packages/_pytest/threadexception.py:63: in thread_exception_runtest_hook yield /usr/lib/python3/dist-packages/_pytest/unraisableexception.py:95: in pytest_runtest_teardown yield from unraisable_exception_runtest_hook() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ def unraisable_exception_runtest_hook() -> Generator[None, None, None]: with catch_unraisable_exception() as cm: try: yield finally: if cm.unraisable: if cm.unraisable.err_msg is not None: err_msg = cm.unraisable.err_msg else: err_msg = "Exception ignored in" msg = f"{err_msg}: {cm.unraisable.object!r}\n\n" msg += "".join( traceback.format_exception( cm.unraisable.exc_type, cm.unraisable.exc_value, cm.unraisable.exc_traceback, ) ) > warnings.warn(pytest.PytestUnraisableExceptionWarning(msg)) E pytest.PytestUnraisableExceptionWarning: Exception ignored in: E E Traceback (most recent call last): E File "/build/reproducible-path/aiorwlock-1.0.0/tests/conftest.py", line 44, in event_loop E gc.collect() E ResourceWarning: unclosed /usr/lib/python3/dist-packages/_pytest/unraisableexception.py:80: PytestUnraisableExceptionWarning _______ ERROR at teardown of test_ctor_noloop_reader[debug:false-pyloop] _______ cls = func = . at 0xf65ece88> when = 'teardown' reraise = (, ) @classmethod def from_call( cls, func: Callable[[], TResult], when: Literal["collect", "setup", "call", "teardown"], reraise: Optional[ Union[Type[BaseException], Tuple[Type[BaseException], ...]] ] = None, ) -> "CallInfo[TResult]": """Call func, wrapping the result in a CallInfo. :param func: The function to call. Called without arguments. :param when: The phase in which the function is called. :param reraise: Exception or exceptions that shall propagate if raised by the function, instead of being wrapped in the CallInfo. """ excinfo = None start = timing.time() precise_start = timing.perf_counter() try: > result: Optional[TResult] = func() /usr/lib/python3/dist-packages/_pytest/runner.py:341: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/dist-packages/_pytest/runner.py:241: in lambda: runtest_hook(item=item, **kwds), when=when, reraise=reraise /usr/lib/python3/dist-packages/pluggy/_hooks.py:513: in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) /usr/lib/python3/dist-packages/pluggy/_manager.py:120: in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) /usr/lib/python3/dist-packages/_pytest/threadexception.py:92: in pytest_runtest_teardown yield from thread_exception_runtest_hook() /usr/lib/python3/dist-packages/_pytest/threadexception.py:63: in thread_exception_runtest_hook yield /usr/lib/python3/dist-packages/_pytest/unraisableexception.py:95: in pytest_runtest_teardown yield from unraisable_exception_runtest_hook() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ def unraisable_exception_runtest_hook() -> Generator[None, None, None]: with catch_unraisable_exception() as cm: try: yield finally: if cm.unraisable: if cm.unraisable.err_msg is not None: err_msg = cm.unraisable.err_msg else: err_msg = "Exception ignored in" msg = f"{err_msg}: {cm.unraisable.object!r}\n\n" msg += "".join( traceback.format_exception( cm.unraisable.exc_type, cm.unraisable.exc_value, cm.unraisable.exc_traceback, ) ) > warnings.warn(pytest.PytestUnraisableExceptionWarning(msg)) E pytest.PytestUnraisableExceptionWarning: Exception ignored in: E E Traceback (most recent call last): E File "/build/reproducible-path/aiorwlock-1.0.0/tests/conftest.py", line 44, in event_loop E gc.collect() E ResourceWarning: unclosed /usr/lib/python3/dist-packages/_pytest/unraisableexception.py:80: PytestUnraisableExceptionWarning ________ ERROR at teardown of test_ctor_loop_writer[debug:false-pyloop] ________ cls = func = . at 0xf65ec2a8> when = 'teardown' reraise = (, ) @classmethod def from_call( cls, func: Callable[[], TResult], when: Literal["collect", "setup", "call", "teardown"], reraise: Optional[ Union[Type[BaseException], Tuple[Type[BaseException], ...]] ] = None, ) -> "CallInfo[TResult]": """Call func, wrapping the result in a CallInfo. :param func: The function to call. Called without arguments. :param when: The phase in which the function is called. :param reraise: Exception or exceptions that shall propagate if raised by the function, instead of being wrapped in the CallInfo. """ excinfo = None start = timing.time() precise_start = timing.perf_counter() try: > result: Optional[TResult] = func() /usr/lib/python3/dist-packages/_pytest/runner.py:341: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/dist-packages/_pytest/runner.py:241: in lambda: runtest_hook(item=item, **kwds), when=when, reraise=reraise /usr/lib/python3/dist-packages/pluggy/_hooks.py:513: in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) /usr/lib/python3/dist-packages/pluggy/_manager.py:120: in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) /usr/lib/python3/dist-packages/_pytest/threadexception.py:92: in pytest_runtest_teardown yield from thread_exception_runtest_hook() /usr/lib/python3/dist-packages/_pytest/threadexception.py:63: in thread_exception_runtest_hook yield /usr/lib/python3/dist-packages/_pytest/unraisableexception.py:95: in pytest_runtest_teardown yield from unraisable_exception_runtest_hook() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ def unraisable_exception_runtest_hook() -> Generator[None, None, None]: with catch_unraisable_exception() as cm: try: yield finally: if cm.unraisable: if cm.unraisable.err_msg is not None: err_msg = cm.unraisable.err_msg else: err_msg = "Exception ignored in" msg = f"{err_msg}: {cm.unraisable.object!r}\n\n" msg += "".join( traceback.format_exception( cm.unraisable.exc_type, cm.unraisable.exc_value, cm.unraisable.exc_traceback, ) ) > warnings.warn(pytest.PytestUnraisableExceptionWarning(msg)) E pytest.PytestUnraisableExceptionWarning: Exception ignored in: E E Traceback (most recent call last): E File "/build/reproducible-path/aiorwlock-1.0.0/tests/conftest.py", line 44, in event_loop E gc.collect() E ResourceWarning: unclosed /usr/lib/python3/dist-packages/_pytest/unraisableexception.py:80: PytestUnraisableExceptionWarning _______ ERROR at teardown of test_ctor_noloop_writer[debug:false-pyloop] _______ cls = func = . at 0xf65ece88> when = 'teardown' reraise = (, ) @classmethod def from_call( cls, func: Callable[[], TResult], when: Literal["collect", "setup", "call", "teardown"], reraise: Optional[ Union[Type[BaseException], Tuple[Type[BaseException], ...]] ] = None, ) -> "CallInfo[TResult]": """Call func, wrapping the result in a CallInfo. :param func: The function to call. Called without arguments. :param when: The phase in which the function is called. :param reraise: Exception or exceptions that shall propagate if raised by the function, instead of being wrapped in the CallInfo. """ excinfo = None start = timing.time() precise_start = timing.perf_counter() try: > result: Optional[TResult] = func() /usr/lib/python3/dist-packages/_pytest/runner.py:341: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/dist-packages/_pytest/runner.py:241: in lambda: runtest_hook(item=item, **kwds), when=when, reraise=reraise /usr/lib/python3/dist-packages/pluggy/_hooks.py:513: in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) /usr/lib/python3/dist-packages/pluggy/_manager.py:120: in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) /usr/lib/python3/dist-packages/_pytest/threadexception.py:92: in pytest_runtest_teardown yield from thread_exception_runtest_hook() /usr/lib/python3/dist-packages/_pytest/threadexception.py:63: in thread_exception_runtest_hook yield /usr/lib/python3/dist-packages/_pytest/unraisableexception.py:95: in pytest_runtest_teardown yield from unraisable_exception_runtest_hook() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ def unraisable_exception_runtest_hook() -> Generator[None, None, None]: with catch_unraisable_exception() as cm: try: yield finally: if cm.unraisable: if cm.unraisable.err_msg is not None: err_msg = cm.unraisable.err_msg else: err_msg = "Exception ignored in" msg = f"{err_msg}: {cm.unraisable.object!r}\n\n" msg += "".join( traceback.format_exception( cm.unraisable.exc_type, cm.unraisable.exc_value, cm.unraisable.exc_traceback, ) ) > warnings.warn(pytest.PytestUnraisableExceptionWarning(msg)) E pytest.PytestUnraisableExceptionWarning: Exception ignored in: E E Traceback (most recent call last): E File "/build/reproducible-path/aiorwlock-1.0.0/tests/conftest.py", line 44, in event_loop E gc.collect() E ResourceWarning: unclosed /usr/lib/python3/dist-packages/_pytest/unraisableexception.py:80: PytestUnraisableExceptionWarning ______________ ERROR at teardown of test_repr[debug:false-pyloop] ______________ cls = func = . at 0xf64ee758> when = 'teardown' reraise = (, ) @classmethod def from_call( cls, func: Callable[[], TResult], when: Literal["collect", "setup", "call", "teardown"], reraise: Optional[ Union[Type[BaseException], Tuple[Type[BaseException], ...]] ] = None, ) -> "CallInfo[TResult]": """Call func, wrapping the result in a CallInfo. :param func: The function to call. Called without arguments. :param when: The phase in which the function is called. :param reraise: Exception or exceptions that shall propagate if raised by the function, instead of being wrapped in the CallInfo. """ excinfo = None start = timing.time() precise_start = timing.perf_counter() try: > result: Optional[TResult] = func() /usr/lib/python3/dist-packages/_pytest/runner.py:341: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/dist-packages/_pytest/runner.py:241: in lambda: runtest_hook(item=item, **kwds), when=when, reraise=reraise /usr/lib/python3/dist-packages/pluggy/_hooks.py:513: in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) /usr/lib/python3/dist-packages/pluggy/_manager.py:120: in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) /usr/lib/python3/dist-packages/_pytest/threadexception.py:92: in pytest_runtest_teardown yield from thread_exception_runtest_hook() /usr/lib/python3/dist-packages/_pytest/threadexception.py:63: in thread_exception_runtest_hook yield /usr/lib/python3/dist-packages/_pytest/unraisableexception.py:95: in pytest_runtest_teardown yield from unraisable_exception_runtest_hook() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ def unraisable_exception_runtest_hook() -> Generator[None, None, None]: with catch_unraisable_exception() as cm: try: yield finally: if cm.unraisable: if cm.unraisable.err_msg is not None: err_msg = cm.unraisable.err_msg else: err_msg = "Exception ignored in" msg = f"{err_msg}: {cm.unraisable.object!r}\n\n" msg += "".join( traceback.format_exception( cm.unraisable.exc_type, cm.unraisable.exc_value, cm.unraisable.exc_traceback, ) ) > warnings.warn(pytest.PytestUnraisableExceptionWarning(msg)) E pytest.PytestUnraisableExceptionWarning: Exception ignored in: E E Traceback (most recent call last): E File "/build/reproducible-path/aiorwlock-1.0.0/tests/conftest.py", line 44, in event_loop E gc.collect() E ResourceWarning: unclosed /usr/lib/python3/dist-packages/_pytest/unraisableexception.py:80: PytestUnraisableExceptionWarning ________ ERROR at teardown of test_release_unlocked[debug:false-pyloop] ________ cls = func = . at 0xf65ece88> when = 'teardown' reraise = (, ) @classmethod def from_call( cls, func: Callable[[], TResult], when: Literal["collect", "setup", "call", "teardown"], reraise: Optional[ Union[Type[BaseException], Tuple[Type[BaseException], ...]] ] = None, ) -> "CallInfo[TResult]": """Call func, wrapping the result in a CallInfo. :param func: The function to call. Called without arguments. :param when: The phase in which the function is called. :param reraise: Exception or exceptions that shall propagate if raised by the function, instead of being wrapped in the CallInfo. """ excinfo = None start = timing.time() precise_start = timing.perf_counter() try: > result: Optional[TResult] = func() /usr/lib/python3/dist-packages/_pytest/runner.py:341: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/dist-packages/_pytest/runner.py:241: in lambda: runtest_hook(item=item, **kwds), when=when, reraise=reraise /usr/lib/python3/dist-packages/pluggy/_hooks.py:513: in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) /usr/lib/python3/dist-packages/pluggy/_manager.py:120: in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) /usr/lib/python3/dist-packages/_pytest/threadexception.py:92: in pytest_runtest_teardown yield from thread_exception_runtest_hook() /usr/lib/python3/dist-packages/_pytest/threadexception.py:63: in thread_exception_runtest_hook yield /usr/lib/python3/dist-packages/_pytest/unraisableexception.py:95: in pytest_runtest_teardown yield from unraisable_exception_runtest_hook() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ def unraisable_exception_runtest_hook() -> Generator[None, None, None]: with catch_unraisable_exception() as cm: try: yield finally: if cm.unraisable: if cm.unraisable.err_msg is not None: err_msg = cm.unraisable.err_msg else: err_msg = "Exception ignored in" msg = f"{err_msg}: {cm.unraisable.object!r}\n\n" msg += "".join( traceback.format_exception( cm.unraisable.exc_type, cm.unraisable.exc_value, cm.unraisable.exc_traceback, ) ) > warnings.warn(pytest.PytestUnraisableExceptionWarning(msg)) E pytest.PytestUnraisableExceptionWarning: Exception ignored in: E E Traceback (most recent call last): E File "/build/reproducible-path/aiorwlock-1.0.0/tests/conftest.py", line 44, in event_loop E gc.collect() E ResourceWarning: unclosed /usr/lib/python3/dist-packages/_pytest/unraisableexception.py:80: PytestUnraisableExceptionWarning _______ ERROR at teardown of test_many_readers[debug:false-fast-pyloop] ________ cls = func = . at 0xf65ec2a8> when = 'teardown' reraise = (, ) @classmethod def from_call( cls, func: Callable[[], TResult], when: Literal["collect", "setup", "call", "teardown"], reraise: Optional[ Union[Type[BaseException], Tuple[Type[BaseException], ...]] ] = None, ) -> "CallInfo[TResult]": """Call func, wrapping the result in a CallInfo. :param func: The function to call. Called without arguments. :param when: The phase in which the function is called. :param reraise: Exception or exceptions that shall propagate if raised by the function, instead of being wrapped in the CallInfo. """ excinfo = None start = timing.time() precise_start = timing.perf_counter() try: > result: Optional[TResult] = func() /usr/lib/python3/dist-packages/_pytest/runner.py:341: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/dist-packages/_pytest/runner.py:241: in lambda: runtest_hook(item=item, **kwds), when=when, reraise=reraise /usr/lib/python3/dist-packages/pluggy/_hooks.py:513: in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) /usr/lib/python3/dist-packages/pluggy/_manager.py:120: in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) /usr/lib/python3/dist-packages/_pytest/threadexception.py:92: in pytest_runtest_teardown yield from thread_exception_runtest_hook() /usr/lib/python3/dist-packages/_pytest/threadexception.py:63: in thread_exception_runtest_hook yield /usr/lib/python3/dist-packages/_pytest/unraisableexception.py:95: in pytest_runtest_teardown yield from unraisable_exception_runtest_hook() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ def unraisable_exception_runtest_hook() -> Generator[None, None, None]: with catch_unraisable_exception() as cm: try: yield finally: if cm.unraisable: if cm.unraisable.err_msg is not None: err_msg = cm.unraisable.err_msg else: err_msg = "Exception ignored in" msg = f"{err_msg}: {cm.unraisable.object!r}\n\n" msg += "".join( traceback.format_exception( cm.unraisable.exc_type, cm.unraisable.exc_value, cm.unraisable.exc_traceback, ) ) > warnings.warn(pytest.PytestUnraisableExceptionWarning(msg)) E pytest.PytestUnraisableExceptionWarning: Exception ignored in: E E Traceback (most recent call last): E File "/build/reproducible-path/aiorwlock-1.0.0/tests/conftest.py", line 44, in event_loop E gc.collect() E ResourceWarning: unclosed /usr/lib/python3/dist-packages/_pytest/unraisableexception.py:80: PytestUnraisableExceptionWarning _____ ERROR at teardown of test_reader_recursion[debug:false-fast-pyloop] ______ cls = func = . at 0xf64ee7f8> when = 'teardown' reraise = (, ) @classmethod def from_call( cls, func: Callable[[], TResult], when: Literal["collect", "setup", "call", "teardown"], reraise: Optional[ Union[Type[BaseException], Tuple[Type[BaseException], ...]] ] = None, ) -> "CallInfo[TResult]": """Call func, wrapping the result in a CallInfo. :param func: The function to call. Called without arguments. :param when: The phase in which the function is called. :param reraise: Exception or exceptions that shall propagate if raised by the function, instead of being wrapped in the CallInfo. """ excinfo = None start = timing.time() precise_start = timing.perf_counter() try: > result: Optional[TResult] = func() /usr/lib/python3/dist-packages/_pytest/runner.py:341: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/dist-packages/_pytest/runner.py:241: in lambda: runtest_hook(item=item, **kwds), when=when, reraise=reraise /usr/lib/python3/dist-packages/pluggy/_hooks.py:513: in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) /usr/lib/python3/dist-packages/pluggy/_manager.py:120: in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) /usr/lib/python3/dist-packages/_pytest/threadexception.py:92: in pytest_runtest_teardown yield from thread_exception_runtest_hook() /usr/lib/python3/dist-packages/_pytest/threadexception.py:63: in thread_exception_runtest_hook yield /usr/lib/python3/dist-packages/_pytest/unraisableexception.py:95: in pytest_runtest_teardown yield from unraisable_exception_runtest_hook() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ def unraisable_exception_runtest_hook() -> Generator[None, None, None]: with catch_unraisable_exception() as cm: try: yield finally: if cm.unraisable: if cm.unraisable.err_msg is not None: err_msg = cm.unraisable.err_msg else: err_msg = "Exception ignored in" msg = f"{err_msg}: {cm.unraisable.object!r}\n\n" msg += "".join( traceback.format_exception( cm.unraisable.exc_type, cm.unraisable.exc_value, cm.unraisable.exc_traceback, ) ) > warnings.warn(pytest.PytestUnraisableExceptionWarning(msg)) E pytest.PytestUnraisableExceptionWarning: Exception ignored in: E E Traceback (most recent call last): E File "/build/reproducible-path/aiorwlock-1.0.0/tests/conftest.py", line 44, in event_loop E gc.collect() E ResourceWarning: unclosed /usr/lib/python3/dist-packages/_pytest/unraisableexception.py:80: PytestUnraisableExceptionWarning _____ ERROR at teardown of test_writer_recursion[debug:false-fast-pyloop] ______ cls = func = . at 0xf65ec2a8> when = 'teardown' reraise = (, ) @classmethod def from_call( cls, func: Callable[[], TResult], when: Literal["collect", "setup", "call", "teardown"], reraise: Optional[ Union[Type[BaseException], Tuple[Type[BaseException], ...]] ] = None, ) -> "CallInfo[TResult]": """Call func, wrapping the result in a CallInfo. :param func: The function to call. Called without arguments. :param when: The phase in which the function is called. :param reraise: Exception or exceptions that shall propagate if raised by the function, instead of being wrapped in the CallInfo. """ excinfo = None start = timing.time() precise_start = timing.perf_counter() try: > result: Optional[TResult] = func() /usr/lib/python3/dist-packages/_pytest/runner.py:341: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/dist-packages/_pytest/runner.py:241: in lambda: runtest_hook(item=item, **kwds), when=when, reraise=reraise /usr/lib/python3/dist-packages/pluggy/_hooks.py:513: in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) /usr/lib/python3/dist-packages/pluggy/_manager.py:120: in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) /usr/lib/python3/dist-packages/_pytest/threadexception.py:92: in pytest_runtest_teardown yield from thread_exception_runtest_hook() /usr/lib/python3/dist-packages/_pytest/threadexception.py:63: in thread_exception_runtest_hook yield /usr/lib/python3/dist-packages/_pytest/unraisableexception.py:95: in pytest_runtest_teardown yield from unraisable_exception_runtest_hook() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ def unraisable_exception_runtest_hook() -> Generator[None, None, None]: with catch_unraisable_exception() as cm: try: yield finally: if cm.unraisable: if cm.unraisable.err_msg is not None: err_msg = cm.unraisable.err_msg else: err_msg = "Exception ignored in" msg = f"{err_msg}: {cm.unraisable.object!r}\n\n" msg += "".join( traceback.format_exception( cm.unraisable.exc_type, cm.unraisable.exc_value, cm.unraisable.exc_traceback, ) ) > warnings.warn(pytest.PytestUnraisableExceptionWarning(msg)) E pytest.PytestUnraisableExceptionWarning: Exception ignored in: E E Traceback (most recent call last): E File "/build/reproducible-path/aiorwlock-1.0.0/tests/conftest.py", line 44, in event_loop E gc.collect() E ResourceWarning: unclosed /usr/lib/python3/dist-packages/_pytest/unraisableexception.py:80: PytestUnraisableExceptionWarning _ ERROR at teardown of test_writer_then_reader_recursion[debug:false-fast-pyloop] _ cls = func = . at 0xf64ee7f8> when = 'teardown' reraise = (, ) @classmethod def from_call( cls, func: Callable[[], TResult], when: Literal["collect", "setup", "call", "teardown"], reraise: Optional[ Union[Type[BaseException], Tuple[Type[BaseException], ...]] ] = None, ) -> "CallInfo[TResult]": """Call func, wrapping the result in a CallInfo. :param func: The function to call. Called without arguments. :param when: The phase in which the function is called. :param reraise: Exception or exceptions that shall propagate if raised by the function, instead of being wrapped in the CallInfo. """ excinfo = None start = timing.time() precise_start = timing.perf_counter() try: > result: Optional[TResult] = func() /usr/lib/python3/dist-packages/_pytest/runner.py:341: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/dist-packages/_pytest/runner.py:241: in lambda: runtest_hook(item=item, **kwds), when=when, reraise=reraise /usr/lib/python3/dist-packages/pluggy/_hooks.py:513: in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) /usr/lib/python3/dist-packages/pluggy/_manager.py:120: in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) /usr/lib/python3/dist-packages/_pytest/threadexception.py:92: in pytest_runtest_teardown yield from thread_exception_runtest_hook() /usr/lib/python3/dist-packages/_pytest/threadexception.py:63: in thread_exception_runtest_hook yield /usr/lib/python3/dist-packages/_pytest/unraisableexception.py:95: in pytest_runtest_teardown yield from unraisable_exception_runtest_hook() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ def unraisable_exception_runtest_hook() -> Generator[None, None, None]: with catch_unraisable_exception() as cm: try: yield finally: if cm.unraisable: if cm.unraisable.err_msg is not None: err_msg = cm.unraisable.err_msg else: err_msg = "Exception ignored in" msg = f"{err_msg}: {cm.unraisable.object!r}\n\n" msg += "".join( traceback.format_exception( cm.unraisable.exc_type, cm.unraisable.exc_value, cm.unraisable.exc_traceback, ) ) > warnings.warn(pytest.PytestUnraisableExceptionWarning(msg)) E pytest.PytestUnraisableExceptionWarning: Exception ignored in: E E Traceback (most recent call last): E File "/build/reproducible-path/aiorwlock-1.0.0/tests/conftest.py", line 44, in event_loop E gc.collect() E ResourceWarning: unclosed /usr/lib/python3/dist-packages/_pytest/unraisableexception.py:80: PytestUnraisableExceptionWarning ______ ERROR at teardown of test_readers_writers[debug:false-fast-pyloop] ______ cls = func = . at 0xf64ffca8> when = 'teardown' reraise = (, ) @classmethod def from_call( cls, func: Callable[[], TResult], when: Literal["collect", "setup", "call", "teardown"], reraise: Optional[ Union[Type[BaseException], Tuple[Type[BaseException], ...]] ] = None, ) -> "CallInfo[TResult]": """Call func, wrapping the result in a CallInfo. :param func: The function to call. Called without arguments. :param when: The phase in which the function is called. :param reraise: Exception or exceptions that shall propagate if raised by the function, instead of being wrapped in the CallInfo. """ excinfo = None start = timing.time() precise_start = timing.perf_counter() try: > result: Optional[TResult] = func() /usr/lib/python3/dist-packages/_pytest/runner.py:341: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/dist-packages/_pytest/runner.py:241: in lambda: runtest_hook(item=item, **kwds), when=when, reraise=reraise /usr/lib/python3/dist-packages/pluggy/_hooks.py:513: in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) /usr/lib/python3/dist-packages/pluggy/_manager.py:120: in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) /usr/lib/python3/dist-packages/_pytest/threadexception.py:92: in pytest_runtest_teardown yield from thread_exception_runtest_hook() /usr/lib/python3/dist-packages/_pytest/threadexception.py:63: in thread_exception_runtest_hook yield /usr/lib/python3/dist-packages/_pytest/unraisableexception.py:95: in pytest_runtest_teardown yield from unraisable_exception_runtest_hook() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ def unraisable_exception_runtest_hook() -> Generator[None, None, None]: with catch_unraisable_exception() as cm: try: yield finally: if cm.unraisable: if cm.unraisable.err_msg is not None: err_msg = cm.unraisable.err_msg else: err_msg = "Exception ignored in" msg = f"{err_msg}: {cm.unraisable.object!r}\n\n" msg += "".join( traceback.format_exception( cm.unraisable.exc_type, cm.unraisable.exc_value, cm.unraisable.exc_traceback, ) ) > warnings.warn(pytest.PytestUnraisableExceptionWarning(msg)) E pytest.PytestUnraisableExceptionWarning: Exception ignored in: E E Traceback (most recent call last): E File "/build/reproducible-path/aiorwlock-1.0.0/tests/conftest.py", line 44, in event_loop E gc.collect() E ResourceWarning: unclosed /usr/lib/python3/dist-packages/_pytest/unraisableexception.py:80: PytestUnraisableExceptionWarning _ ERROR at teardown of test_raise_error_on_with_for_reader_lock[debug:false-fast-pyloop] _ cls = func = . at 0xf64e7c58> when = 'teardown' reraise = (, ) @classmethod def from_call( cls, func: Callable[[], TResult], when: Literal["collect", "setup", "call", "teardown"], reraise: Optional[ Union[Type[BaseException], Tuple[Type[BaseException], ...]] ] = None, ) -> "CallInfo[TResult]": """Call func, wrapping the result in a CallInfo. :param func: The function to call. Called without arguments. :param when: The phase in which the function is called. :param reraise: Exception or exceptions that shall propagate if raised by the function, instead of being wrapped in the CallInfo. """ excinfo = None start = timing.time() precise_start = timing.perf_counter() try: > result: Optional[TResult] = func() /usr/lib/python3/dist-packages/_pytest/runner.py:341: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/dist-packages/_pytest/runner.py:241: in lambda: runtest_hook(item=item, **kwds), when=when, reraise=reraise /usr/lib/python3/dist-packages/pluggy/_hooks.py:513: in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) /usr/lib/python3/dist-packages/pluggy/_manager.py:120: in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) /usr/lib/python3/dist-packages/_pytest/threadexception.py:92: in pytest_runtest_teardown yield from thread_exception_runtest_hook() /usr/lib/python3/dist-packages/_pytest/threadexception.py:63: in thread_exception_runtest_hook yield /usr/lib/python3/dist-packages/_pytest/unraisableexception.py:95: in pytest_runtest_teardown yield from unraisable_exception_runtest_hook() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ def unraisable_exception_runtest_hook() -> Generator[None, None, None]: with catch_unraisable_exception() as cm: try: yield finally: if cm.unraisable: if cm.unraisable.err_msg is not None: err_msg = cm.unraisable.err_msg else: err_msg = "Exception ignored in" msg = f"{err_msg}: {cm.unraisable.object!r}\n\n" msg += "".join( traceback.format_exception( cm.unraisable.exc_type, cm.unraisable.exc_value, cm.unraisable.exc_traceback, ) ) > warnings.warn(pytest.PytestUnraisableExceptionWarning(msg)) E pytest.PytestUnraisableExceptionWarning: Exception ignored in: E E Traceback (most recent call last): E File "/build/reproducible-path/aiorwlock-1.0.0/tests/conftest.py", line 44, in event_loop E gc.collect() E ResourceWarning: unclosed /usr/lib/python3/dist-packages/_pytest/unraisableexception.py:80: PytestUnraisableExceptionWarning _ ERROR at teardown of test_raise_error_on_with_for_writer_lock[debug:false-fast-pyloop] _ cls = func = . at 0xf64ffca8> when = 'teardown' reraise = (, ) @classmethod def from_call( cls, func: Callable[[], TResult], when: Literal["collect", "setup", "call", "teardown"], reraise: Optional[ Union[Type[BaseException], Tuple[Type[BaseException], ...]] ] = None, ) -> "CallInfo[TResult]": """Call func, wrapping the result in a CallInfo. :param func: The function to call. Called without arguments. :param when: The phase in which the function is called. :param reraise: Exception or exceptions that shall propagate if raised by the function, instead of being wrapped in the CallInfo. """ excinfo = None start = timing.time() precise_start = timing.perf_counter() try: > result: Optional[TResult] = func() /usr/lib/python3/dist-packages/_pytest/runner.py:341: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/dist-packages/_pytest/runner.py:241: in lambda: runtest_hook(item=item, **kwds), when=when, reraise=reraise /usr/lib/python3/dist-packages/pluggy/_hooks.py:513: in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) /usr/lib/python3/dist-packages/pluggy/_manager.py:120: in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) /usr/lib/python3/dist-packages/_pytest/threadexception.py:92: in pytest_runtest_teardown yield from thread_exception_runtest_hook() /usr/lib/python3/dist-packages/_pytest/threadexception.py:63: in thread_exception_runtest_hook yield /usr/lib/python3/dist-packages/_pytest/unraisableexception.py:95: in pytest_runtest_teardown yield from unraisable_exception_runtest_hook() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ def unraisable_exception_runtest_hook() -> Generator[None, None, None]: with catch_unraisable_exception() as cm: try: yield finally: if cm.unraisable: if cm.unraisable.err_msg is not None: err_msg = cm.unraisable.err_msg else: err_msg = "Exception ignored in" msg = f"{err_msg}: {cm.unraisable.object!r}\n\n" msg += "".join( traceback.format_exception( cm.unraisable.exc_type, cm.unraisable.exc_value, cm.unraisable.exc_traceback, ) ) > warnings.warn(pytest.PytestUnraisableExceptionWarning(msg)) E pytest.PytestUnraisableExceptionWarning: Exception ignored in: E E Traceback (most recent call last): E File "/build/reproducible-path/aiorwlock-1.0.0/tests/conftest.py", line 44, in event_loop E gc.collect() E ResourceWarning: unclosed /usr/lib/python3/dist-packages/_pytest/unraisableexception.py:80: PytestUnraisableExceptionWarning ________ ERROR at teardown of test_read_locked[debug:false-fast-pyloop] ________ cls = func = . at 0xf64e7c58> when = 'teardown' reraise = (, ) @classmethod def from_call( cls, func: Callable[[], TResult], when: Literal["collect", "setup", "call", "teardown"], reraise: Optional[ Union[Type[BaseException], Tuple[Type[BaseException], ...]] ] = None, ) -> "CallInfo[TResult]": """Call func, wrapping the result in a CallInfo. :param func: The function to call. Called without arguments. :param when: The phase in which the function is called. :param reraise: Exception or exceptions that shall propagate if raised by the function, instead of being wrapped in the CallInfo. """ excinfo = None start = timing.time() precise_start = timing.perf_counter() try: > result: Optional[TResult] = func() /usr/lib/python3/dist-packages/_pytest/runner.py:341: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/dist-packages/_pytest/runner.py:241: in lambda: runtest_hook(item=item, **kwds), when=when, reraise=reraise /usr/lib/python3/dist-packages/pluggy/_hooks.py:513: in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) /usr/lib/python3/dist-packages/pluggy/_manager.py:120: in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) /usr/lib/python3/dist-packages/_pytest/threadexception.py:92: in pytest_runtest_teardown yield from thread_exception_runtest_hook() /usr/lib/python3/dist-packages/_pytest/threadexception.py:63: in thread_exception_runtest_hook yield /usr/lib/python3/dist-packages/_pytest/unraisableexception.py:95: in pytest_runtest_teardown yield from unraisable_exception_runtest_hook() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ def unraisable_exception_runtest_hook() -> Generator[None, None, None]: with catch_unraisable_exception() as cm: try: yield finally: if cm.unraisable: if cm.unraisable.err_msg is not None: err_msg = cm.unraisable.err_msg else: err_msg = "Exception ignored in" msg = f"{err_msg}: {cm.unraisable.object!r}\n\n" msg += "".join( traceback.format_exception( cm.unraisable.exc_type, cm.unraisable.exc_value, cm.unraisable.exc_traceback, ) ) > warnings.warn(pytest.PytestUnraisableExceptionWarning(msg)) E pytest.PytestUnraisableExceptionWarning: Exception ignored in: E E Traceback (most recent call last): E File "/build/reproducible-path/aiorwlock-1.0.0/tests/conftest.py", line 44, in event_loop E gc.collect() E ResourceWarning: unclosed /usr/lib/python3/dist-packages/_pytest/unraisableexception.py:80: PytestUnraisableExceptionWarning _______ ERROR at teardown of test_write_locked[debug:false-fast-pyloop] ________ cls = func = . at 0xf64e49d8> when = 'teardown' reraise = (, ) @classmethod def from_call( cls, func: Callable[[], TResult], when: Literal["collect", "setup", "call", "teardown"], reraise: Optional[ Union[Type[BaseException], Tuple[Type[BaseException], ...]] ] = None, ) -> "CallInfo[TResult]": """Call func, wrapping the result in a CallInfo. :param func: The function to call. Called without arguments. :param when: The phase in which the function is called. :param reraise: Exception or exceptions that shall propagate if raised by the function, instead of being wrapped in the CallInfo. """ excinfo = None start = timing.time() precise_start = timing.perf_counter() try: > result: Optional[TResult] = func() /usr/lib/python3/dist-packages/_pytest/runner.py:341: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/dist-packages/_pytest/runner.py:241: in lambda: runtest_hook(item=item, **kwds), when=when, reraise=reraise /usr/lib/python3/dist-packages/pluggy/_hooks.py:513: in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) /usr/lib/python3/dist-packages/pluggy/_manager.py:120: in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) /usr/lib/python3/dist-packages/_pytest/threadexception.py:92: in pytest_runtest_teardown yield from thread_exception_runtest_hook() /usr/lib/python3/dist-packages/_pytest/threadexception.py:63: in thread_exception_runtest_hook yield /usr/lib/python3/dist-packages/_pytest/unraisableexception.py:95: in pytest_runtest_teardown yield from unraisable_exception_runtest_hook() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ def unraisable_exception_runtest_hook() -> Generator[None, None, None]: with catch_unraisable_exception() as cm: try: yield finally: if cm.unraisable: if cm.unraisable.err_msg is not None: err_msg = cm.unraisable.err_msg else: err_msg = "Exception ignored in" msg = f"{err_msg}: {cm.unraisable.object!r}\n\n" msg += "".join( traceback.format_exception( cm.unraisable.exc_type, cm.unraisable.exc_value, cm.unraisable.exc_traceback, ) ) > warnings.warn(pytest.PytestUnraisableExceptionWarning(msg)) E pytest.PytestUnraisableExceptionWarning: Exception ignored in: E E Traceback (most recent call last): E File "/build/reproducible-path/aiorwlock-1.0.0/tests/conftest.py", line 44, in event_loop E gc.collect() E ResourceWarning: unclosed /usr/lib/python3/dist-packages/_pytest/unraisableexception.py:80: PytestUnraisableExceptionWarning _ ERROR at teardown of test_write_read_lock_multiple_tasks[debug:false-fast-pyloop] _ cls = func = . at 0xf64e7c58> when = 'teardown' reraise = (, ) @classmethod def from_call( cls, func: Callable[[], TResult], when: Literal["collect", "setup", "call", "teardown"], reraise: Optional[ Union[Type[BaseException], Tuple[Type[BaseException], ...]] ] = None, ) -> "CallInfo[TResult]": """Call func, wrapping the result in a CallInfo. :param func: The function to call. Called without arguments. :param when: The phase in which the function is called. :param reraise: Exception or exceptions that shall propagate if raised by the function, instead of being wrapped in the CallInfo. """ excinfo = None start = timing.time() precise_start = timing.perf_counter() try: > result: Optional[TResult] = func() /usr/lib/python3/dist-packages/_pytest/runner.py:341: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/dist-packages/_pytest/runner.py:241: in lambda: runtest_hook(item=item, **kwds), when=when, reraise=reraise /usr/lib/python3/dist-packages/pluggy/_hooks.py:513: in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) /usr/lib/python3/dist-packages/pluggy/_manager.py:120: in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) /usr/lib/python3/dist-packages/_pytest/threadexception.py:92: in pytest_runtest_teardown yield from thread_exception_runtest_hook() /usr/lib/python3/dist-packages/_pytest/threadexception.py:63: in thread_exception_runtest_hook yield /usr/lib/python3/dist-packages/_pytest/unraisableexception.py:95: in pytest_runtest_teardown yield from unraisable_exception_runtest_hook() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ def unraisable_exception_runtest_hook() -> Generator[None, None, None]: with catch_unraisable_exception() as cm: try: yield finally: if cm.unraisable: if cm.unraisable.err_msg is not None: err_msg = cm.unraisable.err_msg else: err_msg = "Exception ignored in" msg = f"{err_msg}: {cm.unraisable.object!r}\n\n" msg += "".join( traceback.format_exception( cm.unraisable.exc_type, cm.unraisable.exc_value, cm.unraisable.exc_traceback, ) ) > warnings.warn(pytest.PytestUnraisableExceptionWarning(msg)) E pytest.PytestUnraisableExceptionWarning: Exception ignored in: E E Traceback (most recent call last): E File "/build/reproducible-path/aiorwlock-1.0.0/tests/conftest.py", line 44, in event_loop E gc.collect() E ResourceWarning: unclosed /usr/lib/python3/dist-packages/_pytest/unraisableexception.py:80: PytestUnraisableExceptionWarning ___ ERROR at teardown of test_read_context_manager[debug:false-fast-pyloop] ____ cls = func = . at 0xf64e49d8> when = 'teardown' reraise = (, ) @classmethod def from_call( cls, func: Callable[[], TResult], when: Literal["collect", "setup", "call", "teardown"], reraise: Optional[ Union[Type[BaseException], Tuple[Type[BaseException], ...]] ] = None, ) -> "CallInfo[TResult]": """Call func, wrapping the result in a CallInfo. :param func: The function to call. Called without arguments. :param when: The phase in which the function is called. :param reraise: Exception or exceptions that shall propagate if raised by the function, instead of being wrapped in the CallInfo. """ excinfo = None start = timing.time() precise_start = timing.perf_counter() try: > result: Optional[TResult] = func() /usr/lib/python3/dist-packages/_pytest/runner.py:341: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/dist-packages/_pytest/runner.py:241: in lambda: runtest_hook(item=item, **kwds), when=when, reraise=reraise /usr/lib/python3/dist-packages/pluggy/_hooks.py:513: in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) /usr/lib/python3/dist-packages/pluggy/_manager.py:120: in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) /usr/lib/python3/dist-packages/_pytest/threadexception.py:92: in pytest_runtest_teardown yield from thread_exception_runtest_hook() /usr/lib/python3/dist-packages/_pytest/threadexception.py:63: in thread_exception_runtest_hook yield /usr/lib/python3/dist-packages/_pytest/unraisableexception.py:95: in pytest_runtest_teardown yield from unraisable_exception_runtest_hook() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ def unraisable_exception_runtest_hook() -> Generator[None, None, None]: with catch_unraisable_exception() as cm: try: yield finally: if cm.unraisable: if cm.unraisable.err_msg is not None: err_msg = cm.unraisable.err_msg else: err_msg = "Exception ignored in" msg = f"{err_msg}: {cm.unraisable.object!r}\n\n" msg += "".join( traceback.format_exception( cm.unraisable.exc_type, cm.unraisable.exc_value, cm.unraisable.exc_traceback, ) ) > warnings.warn(pytest.PytestUnraisableExceptionWarning(msg)) E pytest.PytestUnraisableExceptionWarning: Exception ignored in: E E Traceback (most recent call last): E File "/build/reproducible-path/aiorwlock-1.0.0/tests/conftest.py", line 44, in event_loop E gc.collect() E ResourceWarning: unclosed /usr/lib/python3/dist-packages/_pytest/unraisableexception.py:80: PytestUnraisableExceptionWarning ___ ERROR at teardown of test_write_context_manager[debug:false-fast-pyloop] ___ cls = func = . at 0xf64e7c58> when = 'teardown' reraise = (, ) @classmethod def from_call( cls, func: Callable[[], TResult], when: Literal["collect", "setup", "call", "teardown"], reraise: Optional[ Union[Type[BaseException], Tuple[Type[BaseException], ...]] ] = None, ) -> "CallInfo[TResult]": """Call func, wrapping the result in a CallInfo. :param func: The function to call. Called without arguments. :param when: The phase in which the function is called. :param reraise: Exception or exceptions that shall propagate if raised by the function, instead of being wrapped in the CallInfo. """ excinfo = None start = timing.time() precise_start = timing.perf_counter() try: > result: Optional[TResult] = func() /usr/lib/python3/dist-packages/_pytest/runner.py:341: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/dist-packages/_pytest/runner.py:241: in lambda: runtest_hook(item=item, **kwds), when=when, reraise=reraise /usr/lib/python3/dist-packages/pluggy/_hooks.py:513: in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) /usr/lib/python3/dist-packages/pluggy/_manager.py:120: in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) /usr/lib/python3/dist-packages/_pytest/threadexception.py:92: in pytest_runtest_teardown yield from thread_exception_runtest_hook() /usr/lib/python3/dist-packages/_pytest/threadexception.py:63: in thread_exception_runtest_hook yield /usr/lib/python3/dist-packages/_pytest/unraisableexception.py:95: in pytest_runtest_teardown yield from unraisable_exception_runtest_hook() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ def unraisable_exception_runtest_hook() -> Generator[None, None, None]: with catch_unraisable_exception() as cm: try: yield finally: if cm.unraisable: if cm.unraisable.err_msg is not None: err_msg = cm.unraisable.err_msg else: err_msg = "Exception ignored in" msg = f"{err_msg}: {cm.unraisable.object!r}\n\n" msg += "".join( traceback.format_exception( cm.unraisable.exc_type, cm.unraisable.exc_value, cm.unraisable.exc_traceback, ) ) > warnings.warn(pytest.PytestUnraisableExceptionWarning(msg)) E pytest.PytestUnraisableExceptionWarning: Exception ignored in: E E Traceback (most recent call last): E File "/build/reproducible-path/aiorwlock-1.0.0/tests/conftest.py", line 44, in event_loop E gc.collect() E ResourceWarning: unclosed /usr/lib/python3/dist-packages/_pytest/unraisableexception.py:80: PytestUnraisableExceptionWarning ______ ERROR at teardown of test_await_read_lock[debug:false-fast-pyloop] ______ cls = func = . at 0xf64e49d8> when = 'teardown' reraise = (, ) @classmethod def from_call( cls, func: Callable[[], TResult], when: Literal["collect", "setup", "call", "teardown"], reraise: Optional[ Union[Type[BaseException], Tuple[Type[BaseException], ...]] ] = None, ) -> "CallInfo[TResult]": """Call func, wrapping the result in a CallInfo. :param func: The function to call. Called without arguments. :param when: The phase in which the function is called. :param reraise: Exception or exceptions that shall propagate if raised by the function, instead of being wrapped in the CallInfo. """ excinfo = None start = timing.time() precise_start = timing.perf_counter() try: > result: Optional[TResult] = func() /usr/lib/python3/dist-packages/_pytest/runner.py:341: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/dist-packages/_pytest/runner.py:241: in lambda: runtest_hook(item=item, **kwds), when=when, reraise=reraise /usr/lib/python3/dist-packages/pluggy/_hooks.py:513: in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) /usr/lib/python3/dist-packages/pluggy/_manager.py:120: in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) /usr/lib/python3/dist-packages/_pytest/threadexception.py:92: in pytest_runtest_teardown yield from thread_exception_runtest_hook() /usr/lib/python3/dist-packages/_pytest/threadexception.py:63: in thread_exception_runtest_hook yield /usr/lib/python3/dist-packages/_pytest/unraisableexception.py:95: in pytest_runtest_teardown yield from unraisable_exception_runtest_hook() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ def unraisable_exception_runtest_hook() -> Generator[None, None, None]: with catch_unraisable_exception() as cm: try: yield finally: if cm.unraisable: if cm.unraisable.err_msg is not None: err_msg = cm.unraisable.err_msg else: err_msg = "Exception ignored in" msg = f"{err_msg}: {cm.unraisable.object!r}\n\n" msg += "".join( traceback.format_exception( cm.unraisable.exc_type, cm.unraisable.exc_value, cm.unraisable.exc_traceback, ) ) > warnings.warn(pytest.PytestUnraisableExceptionWarning(msg)) E pytest.PytestUnraisableExceptionWarning: Exception ignored in: E E Traceback (most recent call last): E File "/build/reproducible-path/aiorwlock-1.0.0/tests/conftest.py", line 44, in event_loop E gc.collect() E ResourceWarning: unclosed /usr/lib/python3/dist-packages/_pytest/unraisableexception.py:80: PytestUnraisableExceptionWarning _____ ERROR at teardown of test_await_write_lock[debug:false-fast-pyloop] ______ cls = func = . at 0xf64e7c58> when = 'teardown' reraise = (, ) @classmethod def from_call( cls, func: Callable[[], TResult], when: Literal["collect", "setup", "call", "teardown"], reraise: Optional[ Union[Type[BaseException], Tuple[Type[BaseException], ...]] ] = None, ) -> "CallInfo[TResult]": """Call func, wrapping the result in a CallInfo. :param func: The function to call. Called without arguments. :param when: The phase in which the function is called. :param reraise: Exception or exceptions that shall propagate if raised by the function, instead of being wrapped in the CallInfo. """ excinfo = None start = timing.time() precise_start = timing.perf_counter() try: > result: Optional[TResult] = func() /usr/lib/python3/dist-packages/_pytest/runner.py:341: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/dist-packages/_pytest/runner.py:241: in lambda: runtest_hook(item=item, **kwds), when=when, reraise=reraise /usr/lib/python3/dist-packages/pluggy/_hooks.py:513: in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) /usr/lib/python3/dist-packages/pluggy/_manager.py:120: in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) /usr/lib/python3/dist-packages/_pytest/threadexception.py:92: in pytest_runtest_teardown yield from thread_exception_runtest_hook() /usr/lib/python3/dist-packages/_pytest/threadexception.py:63: in thread_exception_runtest_hook yield /usr/lib/python3/dist-packages/_pytest/unraisableexception.py:95: in pytest_runtest_teardown yield from unraisable_exception_runtest_hook() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ def unraisable_exception_runtest_hook() -> Generator[None, None, None]: with catch_unraisable_exception() as cm: try: yield finally: if cm.unraisable: if cm.unraisable.err_msg is not None: err_msg = cm.unraisable.err_msg else: err_msg = "Exception ignored in" msg = f"{err_msg}: {cm.unraisable.object!r}\n\n" msg += "".join( traceback.format_exception( cm.unraisable.exc_type, cm.unraisable.exc_value, cm.unraisable.exc_traceback, ) ) > warnings.warn(pytest.PytestUnraisableExceptionWarning(msg)) E pytest.PytestUnraisableExceptionWarning: Exception ignored in: E E Traceback (most recent call last): E File "/build/reproducible-path/aiorwlock-1.0.0/tests/conftest.py", line 44, in event_loop E gc.collect() E ResourceWarning: unclosed /usr/lib/python3/dist-packages/_pytest/unraisableexception.py:80: PytestUnraisableExceptionWarning _______ ERROR at teardown of test_many_readers[debug:false-fast-uvloop] ________ cls = func = . at 0xf64e49d8> when = 'teardown' reraise = (, ) @classmethod def from_call( cls, func: Callable[[], TResult], when: Literal["collect", "setup", "call", "teardown"], reraise: Optional[ Union[Type[BaseException], Tuple[Type[BaseException], ...]] ] = None, ) -> "CallInfo[TResult]": """Call func, wrapping the result in a CallInfo. :param func: The function to call. Called without arguments. :param when: The phase in which the function is called. :param reraise: Exception or exceptions that shall propagate if raised by the function, instead of being wrapped in the CallInfo. """ excinfo = None start = timing.time() precise_start = timing.perf_counter() try: > result: Optional[TResult] = func() /usr/lib/python3/dist-packages/_pytest/runner.py:341: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/dist-packages/_pytest/runner.py:241: in lambda: runtest_hook(item=item, **kwds), when=when, reraise=reraise /usr/lib/python3/dist-packages/pluggy/_hooks.py:513: in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) /usr/lib/python3/dist-packages/pluggy/_manager.py:120: in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) /usr/lib/python3/dist-packages/_pytest/threadexception.py:92: in pytest_runtest_teardown yield from thread_exception_runtest_hook() /usr/lib/python3/dist-packages/_pytest/threadexception.py:63: in thread_exception_runtest_hook yield /usr/lib/python3/dist-packages/_pytest/unraisableexception.py:95: in pytest_runtest_teardown yield from unraisable_exception_runtest_hook() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ def unraisable_exception_runtest_hook() -> Generator[None, None, None]: with catch_unraisable_exception() as cm: try: yield finally: if cm.unraisable: if cm.unraisable.err_msg is not None: err_msg = cm.unraisable.err_msg else: err_msg = "Exception ignored in" msg = f"{err_msg}: {cm.unraisable.object!r}\n\n" msg += "".join( traceback.format_exception( cm.unraisable.exc_type, cm.unraisable.exc_value, cm.unraisable.exc_traceback, ) ) > warnings.warn(pytest.PytestUnraisableExceptionWarning(msg)) E pytest.PytestUnraisableExceptionWarning: Exception ignored in: E E Traceback (most recent call last): E File "/build/reproducible-path/aiorwlock-1.0.0/tests/conftest.py", line 44, in event_loop E gc.collect() E ResourceWarning: unclosed /usr/lib/python3/dist-packages/_pytest/unraisableexception.py:80: PytestUnraisableExceptionWarning _____ ERROR at teardown of test_reader_recursion[debug:false-fast-uvloop] ______ cls = func = . at 0xf64fea78> when = 'teardown' reraise = (, ) @classmethod def from_call( cls, func: Callable[[], TResult], when: Literal["collect", "setup", "call", "teardown"], reraise: Optional[ Union[Type[BaseException], Tuple[Type[BaseException], ...]] ] = None, ) -> "CallInfo[TResult]": """Call func, wrapping the result in a CallInfo. :param func: The function to call. Called without arguments. :param when: The phase in which the function is called. :param reraise: Exception or exceptions that shall propagate if raised by the function, instead of being wrapped in the CallInfo. """ excinfo = None start = timing.time() precise_start = timing.perf_counter() try: > result: Optional[TResult] = func() /usr/lib/python3/dist-packages/_pytest/runner.py:341: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/dist-packages/_pytest/runner.py:241: in lambda: runtest_hook(item=item, **kwds), when=when, reraise=reraise /usr/lib/python3/dist-packages/pluggy/_hooks.py:513: in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) /usr/lib/python3/dist-packages/pluggy/_manager.py:120: in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) /usr/lib/python3/dist-packages/_pytest/threadexception.py:92: in pytest_runtest_teardown yield from thread_exception_runtest_hook() /usr/lib/python3/dist-packages/_pytest/threadexception.py:63: in thread_exception_runtest_hook yield /usr/lib/python3/dist-packages/_pytest/unraisableexception.py:95: in pytest_runtest_teardown yield from unraisable_exception_runtest_hook() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ def unraisable_exception_runtest_hook() -> Generator[None, None, None]: with catch_unraisable_exception() as cm: try: yield finally: if cm.unraisable: if cm.unraisable.err_msg is not None: err_msg = cm.unraisable.err_msg else: err_msg = "Exception ignored in" msg = f"{err_msg}: {cm.unraisable.object!r}\n\n" msg += "".join( traceback.format_exception( cm.unraisable.exc_type, cm.unraisable.exc_value, cm.unraisable.exc_traceback, ) ) > warnings.warn(pytest.PytestUnraisableExceptionWarning(msg)) E pytest.PytestUnraisableExceptionWarning: Exception ignored in: E E Traceback (most recent call last): E File "/build/reproducible-path/aiorwlock-1.0.0/tests/conftest.py", line 44, in event_loop E gc.collect() E ResourceWarning: unclosed /usr/lib/python3/dist-packages/_pytest/unraisableexception.py:80: PytestUnraisableExceptionWarning _____ ERROR at teardown of test_writer_recursion[debug:false-fast-uvloop] ______ cls = func = . at 0xf64e49d8> when = 'teardown' reraise = (, ) @classmethod def from_call( cls, func: Callable[[], TResult], when: Literal["collect", "setup", "call", "teardown"], reraise: Optional[ Union[Type[BaseException], Tuple[Type[BaseException], ...]] ] = None, ) -> "CallInfo[TResult]": """Call func, wrapping the result in a CallInfo. :param func: The function to call. Called without arguments. :param when: The phase in which the function is called. :param reraise: Exception or exceptions that shall propagate if raised by the function, instead of being wrapped in the CallInfo. """ excinfo = None start = timing.time() precise_start = timing.perf_counter() try: > result: Optional[TResult] = func() /usr/lib/python3/dist-packages/_pytest/runner.py:341: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/dist-packages/_pytest/runner.py:241: in lambda: runtest_hook(item=item, **kwds), when=when, reraise=reraise /usr/lib/python3/dist-packages/pluggy/_hooks.py:513: in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) /usr/lib/python3/dist-packages/pluggy/_manager.py:120: in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) /usr/lib/python3/dist-packages/_pytest/threadexception.py:92: in pytest_runtest_teardown yield from thread_exception_runtest_hook() /usr/lib/python3/dist-packages/_pytest/threadexception.py:63: in thread_exception_runtest_hook yield /usr/lib/python3/dist-packages/_pytest/unraisableexception.py:95: in pytest_runtest_teardown yield from unraisable_exception_runtest_hook() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ def unraisable_exception_runtest_hook() -> Generator[None, None, None]: with catch_unraisable_exception() as cm: try: yield finally: if cm.unraisable: if cm.unraisable.err_msg is not None: err_msg = cm.unraisable.err_msg else: err_msg = "Exception ignored in" msg = f"{err_msg}: {cm.unraisable.object!r}\n\n" msg += "".join( traceback.format_exception( cm.unraisable.exc_type, cm.unraisable.exc_value, cm.unraisable.exc_traceback, ) ) > warnings.warn(pytest.PytestUnraisableExceptionWarning(msg)) E pytest.PytestUnraisableExceptionWarning: Exception ignored in: E E Traceback (most recent call last): E File "/build/reproducible-path/aiorwlock-1.0.0/tests/conftest.py", line 44, in event_loop E gc.collect() E ResourceWarning: unclosed /usr/lib/python3/dist-packages/_pytest/unraisableexception.py:80: PytestUnraisableExceptionWarning _ ERROR at teardown of test_writer_then_reader_recursion[debug:false-fast-uvloop] _ cls = func = . at 0xf64fea78> when = 'teardown' reraise = (, ) @classmethod def from_call( cls, func: Callable[[], TResult], when: Literal["collect", "setup", "call", "teardown"], reraise: Optional[ Union[Type[BaseException], Tuple[Type[BaseException], ...]] ] = None, ) -> "CallInfo[TResult]": """Call func, wrapping the result in a CallInfo. :param func: The function to call. Called without arguments. :param when: The phase in which the function is called. :param reraise: Exception or exceptions that shall propagate if raised by the function, instead of being wrapped in the CallInfo. """ excinfo = None start = timing.time() precise_start = timing.perf_counter() try: > result: Optional[TResult] = func() /usr/lib/python3/dist-packages/_pytest/runner.py:341: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/dist-packages/_pytest/runner.py:241: in lambda: runtest_hook(item=item, **kwds), when=when, reraise=reraise /usr/lib/python3/dist-packages/pluggy/_hooks.py:513: in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) /usr/lib/python3/dist-packages/pluggy/_manager.py:120: in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) /usr/lib/python3/dist-packages/_pytest/threadexception.py:92: in pytest_runtest_teardown yield from thread_exception_runtest_hook() /usr/lib/python3/dist-packages/_pytest/threadexception.py:63: in thread_exception_runtest_hook yield /usr/lib/python3/dist-packages/_pytest/unraisableexception.py:95: in pytest_runtest_teardown yield from unraisable_exception_runtest_hook() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ def unraisable_exception_runtest_hook() -> Generator[None, None, None]: with catch_unraisable_exception() as cm: try: yield finally: if cm.unraisable: if cm.unraisable.err_msg is not None: err_msg = cm.unraisable.err_msg else: err_msg = "Exception ignored in" msg = f"{err_msg}: {cm.unraisable.object!r}\n\n" msg += "".join( traceback.format_exception( cm.unraisable.exc_type, cm.unraisable.exc_value, cm.unraisable.exc_traceback, ) ) > warnings.warn(pytest.PytestUnraisableExceptionWarning(msg)) E pytest.PytestUnraisableExceptionWarning: Exception ignored in: E E Traceback (most recent call last): E File "/build/reproducible-path/aiorwlock-1.0.0/tests/conftest.py", line 44, in event_loop E gc.collect() E ResourceWarning: unclosed /usr/lib/python3/dist-packages/_pytest/unraisableexception.py:80: PytestUnraisableExceptionWarning ______ ERROR at teardown of test_readers_writers[debug:false-fast-uvloop] ______ cls = func = . at 0xf64e49d8> when = 'teardown' reraise = (, ) @classmethod def from_call( cls, func: Callable[[], TResult], when: Literal["collect", "setup", "call", "teardown"], reraise: Optional[ Union[Type[BaseException], Tuple[Type[BaseException], ...]] ] = None, ) -> "CallInfo[TResult]": """Call func, wrapping the result in a CallInfo. :param func: The function to call. Called without arguments. :param when: The phase in which the function is called. :param reraise: Exception or exceptions that shall propagate if raised by the function, instead of being wrapped in the CallInfo. """ excinfo = None start = timing.time() precise_start = timing.perf_counter() try: > result: Optional[TResult] = func() /usr/lib/python3/dist-packages/_pytest/runner.py:341: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/dist-packages/_pytest/runner.py:241: in lambda: runtest_hook(item=item, **kwds), when=when, reraise=reraise /usr/lib/python3/dist-packages/pluggy/_hooks.py:513: in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) /usr/lib/python3/dist-packages/pluggy/_manager.py:120: in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) /usr/lib/python3/dist-packages/_pytest/threadexception.py:92: in pytest_runtest_teardown yield from thread_exception_runtest_hook() /usr/lib/python3/dist-packages/_pytest/threadexception.py:63: in thread_exception_runtest_hook yield /usr/lib/python3/dist-packages/_pytest/unraisableexception.py:95: in pytest_runtest_teardown yield from unraisable_exception_runtest_hook() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ def unraisable_exception_runtest_hook() -> Generator[None, None, None]: with catch_unraisable_exception() as cm: try: yield finally: if cm.unraisable: if cm.unraisable.err_msg is not None: err_msg = cm.unraisable.err_msg else: err_msg = "Exception ignored in" msg = f"{err_msg}: {cm.unraisable.object!r}\n\n" msg += "".join( traceback.format_exception( cm.unraisable.exc_type, cm.unraisable.exc_value, cm.unraisable.exc_traceback, ) ) > warnings.warn(pytest.PytestUnraisableExceptionWarning(msg)) E pytest.PytestUnraisableExceptionWarning: Exception ignored in: E E Traceback (most recent call last): E File "/build/reproducible-path/aiorwlock-1.0.0/tests/conftest.py", line 44, in event_loop E gc.collect() E ResourceWarning: unclosed /usr/lib/python3/dist-packages/_pytest/unraisableexception.py:80: PytestUnraisableExceptionWarning _ ERROR at teardown of test_raise_error_on_with_for_reader_lock[debug:false-fast-uvloop] _ cls = func = . at 0xf60ae0c8> when = 'teardown' reraise = (, ) @classmethod def from_call( cls, func: Callable[[], TResult], when: Literal["collect", "setup", "call", "teardown"], reraise: Optional[ Union[Type[BaseException], Tuple[Type[BaseException], ...]] ] = None, ) -> "CallInfo[TResult]": """Call func, wrapping the result in a CallInfo. :param func: The function to call. Called without arguments. :param when: The phase in which the function is called. :param reraise: Exception or exceptions that shall propagate if raised by the function, instead of being wrapped in the CallInfo. """ excinfo = None start = timing.time() precise_start = timing.perf_counter() try: > result: Optional[TResult] = func() /usr/lib/python3/dist-packages/_pytest/runner.py:341: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/dist-packages/_pytest/runner.py:241: in lambda: runtest_hook(item=item, **kwds), when=when, reraise=reraise /usr/lib/python3/dist-packages/pluggy/_hooks.py:513: in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) /usr/lib/python3/dist-packages/pluggy/_manager.py:120: in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) /usr/lib/python3/dist-packages/_pytest/threadexception.py:92: in pytest_runtest_teardown yield from thread_exception_runtest_hook() /usr/lib/python3/dist-packages/_pytest/threadexception.py:63: in thread_exception_runtest_hook yield /usr/lib/python3/dist-packages/_pytest/unraisableexception.py:95: in pytest_runtest_teardown yield from unraisable_exception_runtest_hook() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ def unraisable_exception_runtest_hook() -> Generator[None, None, None]: with catch_unraisable_exception() as cm: try: yield finally: if cm.unraisable: if cm.unraisable.err_msg is not None: err_msg = cm.unraisable.err_msg else: err_msg = "Exception ignored in" msg = f"{err_msg}: {cm.unraisable.object!r}\n\n" msg += "".join( traceback.format_exception( cm.unraisable.exc_type, cm.unraisable.exc_value, cm.unraisable.exc_traceback, ) ) > warnings.warn(pytest.PytestUnraisableExceptionWarning(msg)) E pytest.PytestUnraisableExceptionWarning: Exception ignored in: E E Traceback (most recent call last): E File "/build/reproducible-path/aiorwlock-1.0.0/tests/conftest.py", line 44, in event_loop E gc.collect() E ResourceWarning: unclosed /usr/lib/python3/dist-packages/_pytest/unraisableexception.py:80: PytestUnraisableExceptionWarning _ ERROR at teardown of test_raise_error_on_with_for_writer_lock[debug:false-fast-uvloop] _ cls = func = . at 0xf64e49d8> when = 'teardown' reraise = (, ) @classmethod def from_call( cls, func: Callable[[], TResult], when: Literal["collect", "setup", "call", "teardown"], reraise: Optional[ Union[Type[BaseException], Tuple[Type[BaseException], ...]] ] = None, ) -> "CallInfo[TResult]": """Call func, wrapping the result in a CallInfo. :param func: The function to call. Called without arguments. :param when: The phase in which the function is called. :param reraise: Exception or exceptions that shall propagate if raised by the function, instead of being wrapped in the CallInfo. """ excinfo = None start = timing.time() precise_start = timing.perf_counter() try: > result: Optional[TResult] = func() /usr/lib/python3/dist-packages/_pytest/runner.py:341: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/dist-packages/_pytest/runner.py:241: in lambda: runtest_hook(item=item, **kwds), when=when, reraise=reraise /usr/lib/python3/dist-packages/pluggy/_hooks.py:513: in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) /usr/lib/python3/dist-packages/pluggy/_manager.py:120: in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) /usr/lib/python3/dist-packages/_pytest/threadexception.py:92: in pytest_runtest_teardown yield from thread_exception_runtest_hook() /usr/lib/python3/dist-packages/_pytest/threadexception.py:63: in thread_exception_runtest_hook yield /usr/lib/python3/dist-packages/_pytest/unraisableexception.py:95: in pytest_runtest_teardown yield from unraisable_exception_runtest_hook() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ def unraisable_exception_runtest_hook() -> Generator[None, None, None]: with catch_unraisable_exception() as cm: try: yield finally: if cm.unraisable: if cm.unraisable.err_msg is not None: err_msg = cm.unraisable.err_msg else: err_msg = "Exception ignored in" msg = f"{err_msg}: {cm.unraisable.object!r}\n\n" msg += "".join( traceback.format_exception( cm.unraisable.exc_type, cm.unraisable.exc_value, cm.unraisable.exc_traceback, ) ) > warnings.warn(pytest.PytestUnraisableExceptionWarning(msg)) E pytest.PytestUnraisableExceptionWarning: Exception ignored in: E E Traceback (most recent call last): E File "/build/reproducible-path/aiorwlock-1.0.0/tests/conftest.py", line 44, in event_loop E gc.collect() E ResourceWarning: unclosed /usr/lib/python3/dist-packages/_pytest/unraisableexception.py:80: PytestUnraisableExceptionWarning ________ ERROR at teardown of test_read_locked[debug:false-fast-uvloop] ________ cls = func = . at 0xf60ae0c8> when = 'teardown' reraise = (, ) @classmethod def from_call( cls, func: Callable[[], TResult], when: Literal["collect", "setup", "call", "teardown"], reraise: Optional[ Union[Type[BaseException], Tuple[Type[BaseException], ...]] ] = None, ) -> "CallInfo[TResult]": """Call func, wrapping the result in a CallInfo. :param func: The function to call. Called without arguments. :param when: The phase in which the function is called. :param reraise: Exception or exceptions that shall propagate if raised by the function, instead of being wrapped in the CallInfo. """ excinfo = None start = timing.time() precise_start = timing.perf_counter() try: > result: Optional[TResult] = func() /usr/lib/python3/dist-packages/_pytest/runner.py:341: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/dist-packages/_pytest/runner.py:241: in lambda: runtest_hook(item=item, **kwds), when=when, reraise=reraise /usr/lib/python3/dist-packages/pluggy/_hooks.py:513: in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) /usr/lib/python3/dist-packages/pluggy/_manager.py:120: in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) /usr/lib/python3/dist-packages/_pytest/threadexception.py:92: in pytest_runtest_teardown yield from thread_exception_runtest_hook() /usr/lib/python3/dist-packages/_pytest/threadexception.py:63: in thread_exception_runtest_hook yield /usr/lib/python3/dist-packages/_pytest/unraisableexception.py:95: in pytest_runtest_teardown yield from unraisable_exception_runtest_hook() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ def unraisable_exception_runtest_hook() -> Generator[None, None, None]: with catch_unraisable_exception() as cm: try: yield finally: if cm.unraisable: if cm.unraisable.err_msg is not None: err_msg = cm.unraisable.err_msg else: err_msg = "Exception ignored in" msg = f"{err_msg}: {cm.unraisable.object!r}\n\n" msg += "".join( traceback.format_exception( cm.unraisable.exc_type, cm.unraisable.exc_value, cm.unraisable.exc_traceback, ) ) > warnings.warn(pytest.PytestUnraisableExceptionWarning(msg)) E pytest.PytestUnraisableExceptionWarning: Exception ignored in: E E Traceback (most recent call last): E File "/build/reproducible-path/aiorwlock-1.0.0/tests/conftest.py", line 44, in event_loop E gc.collect() E ResourceWarning: unclosed /usr/lib/python3/dist-packages/_pytest/unraisableexception.py:80: PytestUnraisableExceptionWarning _______ ERROR at teardown of test_write_locked[debug:false-fast-uvloop] ________ cls = func = . at 0xf64e49d8> when = 'teardown' reraise = (, ) @classmethod def from_call( cls, func: Callable[[], TResult], when: Literal["collect", "setup", "call", "teardown"], reraise: Optional[ Union[Type[BaseException], Tuple[Type[BaseException], ...]] ] = None, ) -> "CallInfo[TResult]": """Call func, wrapping the result in a CallInfo. :param func: The function to call. Called without arguments. :param when: The phase in which the function is called. :param reraise: Exception or exceptions that shall propagate if raised by the function, instead of being wrapped in the CallInfo. """ excinfo = None start = timing.time() precise_start = timing.perf_counter() try: > result: Optional[TResult] = func() /usr/lib/python3/dist-packages/_pytest/runner.py:341: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/dist-packages/_pytest/runner.py:241: in lambda: runtest_hook(item=item, **kwds), when=when, reraise=reraise /usr/lib/python3/dist-packages/pluggy/_hooks.py:513: in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) /usr/lib/python3/dist-packages/pluggy/_manager.py:120: in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) /usr/lib/python3/dist-packages/_pytest/threadexception.py:92: in pytest_runtest_teardown yield from thread_exception_runtest_hook() /usr/lib/python3/dist-packages/_pytest/threadexception.py:63: in thread_exception_runtest_hook yield /usr/lib/python3/dist-packages/_pytest/unraisableexception.py:95: in pytest_runtest_teardown yield from unraisable_exception_runtest_hook() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ def unraisable_exception_runtest_hook() -> Generator[None, None, None]: with catch_unraisable_exception() as cm: try: yield finally: if cm.unraisable: if cm.unraisable.err_msg is not None: err_msg = cm.unraisable.err_msg else: err_msg = "Exception ignored in" msg = f"{err_msg}: {cm.unraisable.object!r}\n\n" msg += "".join( traceback.format_exception( cm.unraisable.exc_type, cm.unraisable.exc_value, cm.unraisable.exc_traceback, ) ) > warnings.warn(pytest.PytestUnraisableExceptionWarning(msg)) E pytest.PytestUnraisableExceptionWarning: Exception ignored in: E E Traceback (most recent call last): E File "/build/reproducible-path/aiorwlock-1.0.0/tests/conftest.py", line 44, in event_loop E gc.collect() E ResourceWarning: unclosed /usr/lib/python3/dist-packages/_pytest/unraisableexception.py:80: PytestUnraisableExceptionWarning _ ERROR at teardown of test_write_read_lock_multiple_tasks[debug:false-fast-uvloop] _ cls = func = . at 0xf60ae0c8> when = 'teardown' reraise = (, ) @classmethod def from_call( cls, func: Callable[[], TResult], when: Literal["collect", "setup", "call", "teardown"], reraise: Optional[ Union[Type[BaseException], Tuple[Type[BaseException], ...]] ] = None, ) -> "CallInfo[TResult]": """Call func, wrapping the result in a CallInfo. :param func: The function to call. Called without arguments. :param when: The phase in which the function is called. :param reraise: Exception or exceptions that shall propagate if raised by the function, instead of being wrapped in the CallInfo. """ excinfo = None start = timing.time() precise_start = timing.perf_counter() try: > result: Optional[TResult] = func() /usr/lib/python3/dist-packages/_pytest/runner.py:341: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/dist-packages/_pytest/runner.py:241: in lambda: runtest_hook(item=item, **kwds), when=when, reraise=reraise /usr/lib/python3/dist-packages/pluggy/_hooks.py:513: in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) /usr/lib/python3/dist-packages/pluggy/_manager.py:120: in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) /usr/lib/python3/dist-packages/_pytest/threadexception.py:92: in pytest_runtest_teardown yield from thread_exception_runtest_hook() /usr/lib/python3/dist-packages/_pytest/threadexception.py:63: in thread_exception_runtest_hook yield /usr/lib/python3/dist-packages/_pytest/unraisableexception.py:95: in pytest_runtest_teardown yield from unraisable_exception_runtest_hook() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ def unraisable_exception_runtest_hook() -> Generator[None, None, None]: with catch_unraisable_exception() as cm: try: yield finally: if cm.unraisable: if cm.unraisable.err_msg is not None: err_msg = cm.unraisable.err_msg else: err_msg = "Exception ignored in" msg = f"{err_msg}: {cm.unraisable.object!r}\n\n" msg += "".join( traceback.format_exception( cm.unraisable.exc_type, cm.unraisable.exc_value, cm.unraisable.exc_traceback, ) ) > warnings.warn(pytest.PytestUnraisableExceptionWarning(msg)) E pytest.PytestUnraisableExceptionWarning: Exception ignored in: E E Traceback (most recent call last): E File "/build/reproducible-path/aiorwlock-1.0.0/tests/conftest.py", line 44, in event_loop E gc.collect() E ResourceWarning: unclosed /usr/lib/python3/dist-packages/_pytest/unraisableexception.py:80: PytestUnraisableExceptionWarning ___ ERROR at teardown of test_read_context_manager[debug:false-fast-uvloop] ____ cls = func = . at 0xf64e49d8> when = 'teardown' reraise = (, ) @classmethod def from_call( cls, func: Callable[[], TResult], when: Literal["collect", "setup", "call", "teardown"], reraise: Optional[ Union[Type[BaseException], Tuple[Type[BaseException], ...]] ] = None, ) -> "CallInfo[TResult]": """Call func, wrapping the result in a CallInfo. :param func: The function to call. Called without arguments. :param when: The phase in which the function is called. :param reraise: Exception or exceptions that shall propagate if raised by the function, instead of being wrapped in the CallInfo. """ excinfo = None start = timing.time() precise_start = timing.perf_counter() try: > result: Optional[TResult] = func() /usr/lib/python3/dist-packages/_pytest/runner.py:341: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/dist-packages/_pytest/runner.py:241: in lambda: runtest_hook(item=item, **kwds), when=when, reraise=reraise /usr/lib/python3/dist-packages/pluggy/_hooks.py:513: in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) /usr/lib/python3/dist-packages/pluggy/_manager.py:120: in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) /usr/lib/python3/dist-packages/_pytest/threadexception.py:92: in pytest_runtest_teardown yield from thread_exception_runtest_hook() /usr/lib/python3/dist-packages/_pytest/threadexception.py:63: in thread_exception_runtest_hook yield /usr/lib/python3/dist-packages/_pytest/unraisableexception.py:95: in pytest_runtest_teardown yield from unraisable_exception_runtest_hook() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ def unraisable_exception_runtest_hook() -> Generator[None, None, None]: with catch_unraisable_exception() as cm: try: yield finally: if cm.unraisable: if cm.unraisable.err_msg is not None: err_msg = cm.unraisable.err_msg else: err_msg = "Exception ignored in" msg = f"{err_msg}: {cm.unraisable.object!r}\n\n" msg += "".join( traceback.format_exception( cm.unraisable.exc_type, cm.unraisable.exc_value, cm.unraisable.exc_traceback, ) ) > warnings.warn(pytest.PytestUnraisableExceptionWarning(msg)) E pytest.PytestUnraisableExceptionWarning: Exception ignored in: E E Traceback (most recent call last): E File "/build/reproducible-path/aiorwlock-1.0.0/tests/conftest.py", line 44, in event_loop E gc.collect() E ResourceWarning: unclosed /usr/lib/python3/dist-packages/_pytest/unraisableexception.py:80: PytestUnraisableExceptionWarning ___ ERROR at teardown of test_write_context_manager[debug:false-fast-uvloop] ___ cls = func = . at 0xf60ae0c8> when = 'teardown' reraise = (, ) @classmethod def from_call( cls, func: Callable[[], TResult], when: Literal["collect", "setup", "call", "teardown"], reraise: Optional[ Union[Type[BaseException], Tuple[Type[BaseException], ...]] ] = None, ) -> "CallInfo[TResult]": """Call func, wrapping the result in a CallInfo. :param func: The function to call. Called without arguments. :param when: The phase in which the function is called. :param reraise: Exception or exceptions that shall propagate if raised by the function, instead of being wrapped in the CallInfo. """ excinfo = None start = timing.time() precise_start = timing.perf_counter() try: > result: Optional[TResult] = func() /usr/lib/python3/dist-packages/_pytest/runner.py:341: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/dist-packages/_pytest/runner.py:241: in lambda: runtest_hook(item=item, **kwds), when=when, reraise=reraise /usr/lib/python3/dist-packages/pluggy/_hooks.py:513: in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) /usr/lib/python3/dist-packages/pluggy/_manager.py:120: in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) /usr/lib/python3/dist-packages/_pytest/threadexception.py:92: in pytest_runtest_teardown yield from thread_exception_runtest_hook() /usr/lib/python3/dist-packages/_pytest/threadexception.py:63: in thread_exception_runtest_hook yield /usr/lib/python3/dist-packages/_pytest/unraisableexception.py:95: in pytest_runtest_teardown yield from unraisable_exception_runtest_hook() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ def unraisable_exception_runtest_hook() -> Generator[None, None, None]: with catch_unraisable_exception() as cm: try: yield finally: if cm.unraisable: if cm.unraisable.err_msg is not None: err_msg = cm.unraisable.err_msg else: err_msg = "Exception ignored in" msg = f"{err_msg}: {cm.unraisable.object!r}\n\n" msg += "".join( traceback.format_exception( cm.unraisable.exc_type, cm.unraisable.exc_value, cm.unraisable.exc_traceback, ) ) > warnings.warn(pytest.PytestUnraisableExceptionWarning(msg)) E pytest.PytestUnraisableExceptionWarning: Exception ignored in: E E Traceback (most recent call last): E File "/build/reproducible-path/aiorwlock-1.0.0/tests/conftest.py", line 44, in event_loop E gc.collect() E ResourceWarning: unclosed /usr/lib/python3/dist-packages/_pytest/unraisableexception.py:80: PytestUnraisableExceptionWarning ______ ERROR at teardown of test_await_read_lock[debug:false-fast-uvloop] ______ cls = func = . at 0xf60cee88> when = 'teardown' reraise = (, ) @classmethod def from_call( cls, func: Callable[[], TResult], when: Literal["collect", "setup", "call", "teardown"], reraise: Optional[ Union[Type[BaseException], Tuple[Type[BaseException], ...]] ] = None, ) -> "CallInfo[TResult]": """Call func, wrapping the result in a CallInfo. :param func: The function to call. Called without arguments. :param when: The phase in which the function is called. :param reraise: Exception or exceptions that shall propagate if raised by the function, instead of being wrapped in the CallInfo. """ excinfo = None start = timing.time() precise_start = timing.perf_counter() try: > result: Optional[TResult] = func() /usr/lib/python3/dist-packages/_pytest/runner.py:341: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/dist-packages/_pytest/runner.py:241: in lambda: runtest_hook(item=item, **kwds), when=when, reraise=reraise /usr/lib/python3/dist-packages/pluggy/_hooks.py:513: in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) /usr/lib/python3/dist-packages/pluggy/_manager.py:120: in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) /usr/lib/python3/dist-packages/_pytest/threadexception.py:92: in pytest_runtest_teardown yield from thread_exception_runtest_hook() /usr/lib/python3/dist-packages/_pytest/threadexception.py:63: in thread_exception_runtest_hook yield /usr/lib/python3/dist-packages/_pytest/unraisableexception.py:95: in pytest_runtest_teardown yield from unraisable_exception_runtest_hook() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ def unraisable_exception_runtest_hook() -> Generator[None, None, None]: with catch_unraisable_exception() as cm: try: yield finally: if cm.unraisable: if cm.unraisable.err_msg is not None: err_msg = cm.unraisable.err_msg else: err_msg = "Exception ignored in" msg = f"{err_msg}: {cm.unraisable.object!r}\n\n" msg += "".join( traceback.format_exception( cm.unraisable.exc_type, cm.unraisable.exc_value, cm.unraisable.exc_traceback, ) ) > warnings.warn(pytest.PytestUnraisableExceptionWarning(msg)) E pytest.PytestUnraisableExceptionWarning: Exception ignored in: E E Traceback (most recent call last): E File "/build/reproducible-path/aiorwlock-1.0.0/tests/conftest.py", line 44, in event_loop E gc.collect() E ResourceWarning: unclosed /usr/lib/python3/dist-packages/_pytest/unraisableexception.py:80: PytestUnraisableExceptionWarning _____ ERROR at teardown of test_await_write_lock[debug:false-fast-uvloop] ______ cls = func = . at 0xf60ae0c8> when = 'teardown' reraise = (, ) @classmethod def from_call( cls, func: Callable[[], TResult], when: Literal["collect", "setup", "call", "teardown"], reraise: Optional[ Union[Type[BaseException], Tuple[Type[BaseException], ...]] ] = None, ) -> "CallInfo[TResult]": """Call func, wrapping the result in a CallInfo. :param func: The function to call. Called without arguments. :param when: The phase in which the function is called. :param reraise: Exception or exceptions that shall propagate if raised by the function, instead of being wrapped in the CallInfo. """ excinfo = None start = timing.time() precise_start = timing.perf_counter() try: > result: Optional[TResult] = func() /usr/lib/python3/dist-packages/_pytest/runner.py:341: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/dist-packages/_pytest/runner.py:241: in lambda: runtest_hook(item=item, **kwds), when=when, reraise=reraise /usr/lib/python3/dist-packages/pluggy/_hooks.py:513: in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) /usr/lib/python3/dist-packages/pluggy/_manager.py:120: in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) /usr/lib/python3/dist-packages/_pytest/threadexception.py:92: in pytest_runtest_teardown yield from thread_exception_runtest_hook() /usr/lib/python3/dist-packages/_pytest/threadexception.py:63: in thread_exception_runtest_hook yield /usr/lib/python3/dist-packages/_pytest/unraisableexception.py:95: in pytest_runtest_teardown yield from unraisable_exception_runtest_hook() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ def unraisable_exception_runtest_hook() -> Generator[None, None, None]: with catch_unraisable_exception() as cm: try: yield finally: if cm.unraisable: if cm.unraisable.err_msg is not None: err_msg = cm.unraisable.err_msg else: err_msg = "Exception ignored in" msg = f"{err_msg}: {cm.unraisable.object!r}\n\n" msg += "".join( traceback.format_exception( cm.unraisable.exc_type, cm.unraisable.exc_value, cm.unraisable.exc_traceback, ) ) > warnings.warn(pytest.PytestUnraisableExceptionWarning(msg)) E pytest.PytestUnraisableExceptionWarning: Exception ignored in: E E Traceback (most recent call last): E File "/build/reproducible-path/aiorwlock-1.0.0/tests/conftest.py", line 44, in event_loop E gc.collect() E ResourceWarning: unclosed /usr/lib/python3/dist-packages/_pytest/unraisableexception.py:80: PytestUnraisableExceptionWarning _ ERROR at teardown of test_ctor_deprecated_implicit_not_running[debug:false-uvloop] _ cls = func = . at 0xf60cee88> when = 'teardown' reraise = (, ) @classmethod def from_call( cls, func: Callable[[], TResult], when: Literal["collect", "setup", "call", "teardown"], reraise: Optional[ Union[Type[BaseException], Tuple[Type[BaseException], ...]] ] = None, ) -> "CallInfo[TResult]": """Call func, wrapping the result in a CallInfo. :param func: The function to call. Called without arguments. :param when: The phase in which the function is called. :param reraise: Exception or exceptions that shall propagate if raised by the function, instead of being wrapped in the CallInfo. """ excinfo = None start = timing.time() precise_start = timing.perf_counter() try: > result: Optional[TResult] = func() /usr/lib/python3/dist-packages/_pytest/runner.py:341: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/dist-packages/_pytest/runner.py:241: in lambda: runtest_hook(item=item, **kwds), when=when, reraise=reraise /usr/lib/python3/dist-packages/pluggy/_hooks.py:513: in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) /usr/lib/python3/dist-packages/pluggy/_manager.py:120: in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) /usr/lib/python3/dist-packages/_pytest/threadexception.py:92: in pytest_runtest_teardown yield from thread_exception_runtest_hook() /usr/lib/python3/dist-packages/_pytest/threadexception.py:63: in thread_exception_runtest_hook yield /usr/lib/python3/dist-packages/_pytest/unraisableexception.py:95: in pytest_runtest_teardown yield from unraisable_exception_runtest_hook() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ def unraisable_exception_runtest_hook() -> Generator[None, None, None]: with catch_unraisable_exception() as cm: try: yield finally: if cm.unraisable: if cm.unraisable.err_msg is not None: err_msg = cm.unraisable.err_msg else: err_msg = "Exception ignored in" msg = f"{err_msg}: {cm.unraisable.object!r}\n\n" msg += "".join( traceback.format_exception( cm.unraisable.exc_type, cm.unraisable.exc_value, cm.unraisable.exc_traceback, ) ) > warnings.warn(pytest.PytestUnraisableExceptionWarning(msg)) E pytest.PytestUnraisableExceptionWarning: Exception ignored in: E E Traceback (most recent call last): E File "/build/reproducible-path/aiorwlock-1.0.0/tests/conftest.py", line 44, in event_loop E gc.collect() E ResourceWarning: unclosed /usr/lib/python3/dist-packages/_pytest/unraisableexception.py:80: PytestUnraisableExceptionWarning _ ERROR at teardown of test_ctor_deprecated_explicit_non_running[debug:false-uvloop] _ cls = func = . at 0xf60ae0c8> when = 'teardown' reraise = (, ) @classmethod def from_call( cls, func: Callable[[], TResult], when: Literal["collect", "setup", "call", "teardown"], reraise: Optional[ Union[Type[BaseException], Tuple[Type[BaseException], ...]] ] = None, ) -> "CallInfo[TResult]": """Call func, wrapping the result in a CallInfo. :param func: The function to call. Called without arguments. :param when: The phase in which the function is called. :param reraise: Exception or exceptions that shall propagate if raised by the function, instead of being wrapped in the CallInfo. """ excinfo = None start = timing.time() precise_start = timing.perf_counter() try: > result: Optional[TResult] = func() /usr/lib/python3/dist-packages/_pytest/runner.py:341: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/dist-packages/_pytest/runner.py:241: in lambda: runtest_hook(item=item, **kwds), when=when, reraise=reraise /usr/lib/python3/dist-packages/pluggy/_hooks.py:513: in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) /usr/lib/python3/dist-packages/pluggy/_manager.py:120: in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) /usr/lib/python3/dist-packages/_pytest/threadexception.py:92: in pytest_runtest_teardown yield from thread_exception_runtest_hook() /usr/lib/python3/dist-packages/_pytest/threadexception.py:63: in thread_exception_runtest_hook yield /usr/lib/python3/dist-packages/_pytest/unraisableexception.py:95: in pytest_runtest_teardown yield from unraisable_exception_runtest_hook() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ def unraisable_exception_runtest_hook() -> Generator[None, None, None]: with catch_unraisable_exception() as cm: try: yield finally: if cm.unraisable: if cm.unraisable.err_msg is not None: err_msg = cm.unraisable.err_msg else: err_msg = "Exception ignored in" msg = f"{err_msg}: {cm.unraisable.object!r}\n\n" msg += "".join( traceback.format_exception( cm.unraisable.exc_type, cm.unraisable.exc_value, cm.unraisable.exc_traceback, ) ) > warnings.warn(pytest.PytestUnraisableExceptionWarning(msg)) E pytest.PytestUnraisableExceptionWarning: Exception ignored in: E E Traceback (most recent call last): E File "/build/reproducible-path/aiorwlock-1.0.0/tests/conftest.py", line 44, in event_loop E gc.collect() E ResourceWarning: unclosed /usr/lib/python3/dist-packages/_pytest/unraisableexception.py:80: PytestUnraisableExceptionWarning ____ ERROR at teardown of test_ctor_loop_deprecated_arg[debug:false-uvloop] ____ cls = func = . at 0xf60d03e8> when = 'teardown' reraise = (, ) @classmethod def from_call( cls, func: Callable[[], TResult], when: Literal["collect", "setup", "call", "teardown"], reraise: Optional[ Union[Type[BaseException], Tuple[Type[BaseException], ...]] ] = None, ) -> "CallInfo[TResult]": """Call func, wrapping the result in a CallInfo. :param func: The function to call. Called without arguments. :param when: The phase in which the function is called. :param reraise: Exception or exceptions that shall propagate if raised by the function, instead of being wrapped in the CallInfo. """ excinfo = None start = timing.time() precise_start = timing.perf_counter() try: > result: Optional[TResult] = func() /usr/lib/python3/dist-packages/_pytest/runner.py:341: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/dist-packages/_pytest/runner.py:241: in lambda: runtest_hook(item=item, **kwds), when=when, reraise=reraise /usr/lib/python3/dist-packages/pluggy/_hooks.py:513: in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) /usr/lib/python3/dist-packages/pluggy/_manager.py:120: in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) /usr/lib/python3/dist-packages/_pytest/threadexception.py:92: in pytest_runtest_teardown yield from thread_exception_runtest_hook() /usr/lib/python3/dist-packages/_pytest/threadexception.py:63: in thread_exception_runtest_hook yield /usr/lib/python3/dist-packages/_pytest/unraisableexception.py:95: in pytest_runtest_teardown yield from unraisable_exception_runtest_hook() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ def unraisable_exception_runtest_hook() -> Generator[None, None, None]: with catch_unraisable_exception() as cm: try: yield finally: if cm.unraisable: if cm.unraisable.err_msg is not None: err_msg = cm.unraisable.err_msg else: err_msg = "Exception ignored in" msg = f"{err_msg}: {cm.unraisable.object!r}\n\n" msg += "".join( traceback.format_exception( cm.unraisable.exc_type, cm.unraisable.exc_value, cm.unraisable.exc_traceback, ) ) > warnings.warn(pytest.PytestUnraisableExceptionWarning(msg)) E pytest.PytestUnraisableExceptionWarning: Exception ignored in: E E Traceback (most recent call last): E File "/build/reproducible-path/aiorwlock-1.0.0/tests/conftest.py", line 44, in event_loop E gc.collect() E ResourceWarning: unclosed /usr/lib/python3/dist-packages/_pytest/unraisableexception.py:80: PytestUnraisableExceptionWarning ________ ERROR at teardown of test_ctor_loop_reader[debug:false-uvloop] ________ cls = func = . at 0xf60ae0c8> when = 'teardown' reraise = (, ) @classmethod def from_call( cls, func: Callable[[], TResult], when: Literal["collect", "setup", "call", "teardown"], reraise: Optional[ Union[Type[BaseException], Tuple[Type[BaseException], ...]] ] = None, ) -> "CallInfo[TResult]": """Call func, wrapping the result in a CallInfo. :param func: The function to call. Called without arguments. :param when: The phase in which the function is called. :param reraise: Exception or exceptions that shall propagate if raised by the function, instead of being wrapped in the CallInfo. """ excinfo = None start = timing.time() precise_start = timing.perf_counter() try: > result: Optional[TResult] = func() /usr/lib/python3/dist-packages/_pytest/runner.py:341: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/dist-packages/_pytest/runner.py:241: in lambda: runtest_hook(item=item, **kwds), when=when, reraise=reraise /usr/lib/python3/dist-packages/pluggy/_hooks.py:513: in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) /usr/lib/python3/dist-packages/pluggy/_manager.py:120: in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) /usr/lib/python3/dist-packages/_pytest/threadexception.py:92: in pytest_runtest_teardown yield from thread_exception_runtest_hook() /usr/lib/python3/dist-packages/_pytest/threadexception.py:63: in thread_exception_runtest_hook yield /usr/lib/python3/dist-packages/_pytest/unraisableexception.py:95: in pytest_runtest_teardown yield from unraisable_exception_runtest_hook() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ def unraisable_exception_runtest_hook() -> Generator[None, None, None]: with catch_unraisable_exception() as cm: try: yield finally: if cm.unraisable: if cm.unraisable.err_msg is not None: err_msg = cm.unraisable.err_msg else: err_msg = "Exception ignored in" msg = f"{err_msg}: {cm.unraisable.object!r}\n\n" msg += "".join( traceback.format_exception( cm.unraisable.exc_type, cm.unraisable.exc_value, cm.unraisable.exc_traceback, ) ) > warnings.warn(pytest.PytestUnraisableExceptionWarning(msg)) E pytest.PytestUnraisableExceptionWarning: Exception ignored in: E E Traceback (most recent call last): E File "/build/reproducible-path/aiorwlock-1.0.0/tests/conftest.py", line 44, in event_loop E gc.collect() E ResourceWarning: unclosed /usr/lib/python3/dist-packages/_pytest/unraisableexception.py:80: PytestUnraisableExceptionWarning _______ ERROR at teardown of test_ctor_noloop_reader[debug:false-uvloop] _______ cls = func = . at 0xf60d03e8> when = 'teardown' reraise = (, ) @classmethod def from_call( cls, func: Callable[[], TResult], when: Literal["collect", "setup", "call", "teardown"], reraise: Optional[ Union[Type[BaseException], Tuple[Type[BaseException], ...]] ] = None, ) -> "CallInfo[TResult]": """Call func, wrapping the result in a CallInfo. :param func: The function to call. Called without arguments. :param when: The phase in which the function is called. :param reraise: Exception or exceptions that shall propagate if raised by the function, instead of being wrapped in the CallInfo. """ excinfo = None start = timing.time() precise_start = timing.perf_counter() try: > result: Optional[TResult] = func() /usr/lib/python3/dist-packages/_pytest/runner.py:341: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/dist-packages/_pytest/runner.py:241: in lambda: runtest_hook(item=item, **kwds), when=when, reraise=reraise /usr/lib/python3/dist-packages/pluggy/_hooks.py:513: in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) /usr/lib/python3/dist-packages/pluggy/_manager.py:120: in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) /usr/lib/python3/dist-packages/_pytest/threadexception.py:92: in pytest_runtest_teardown yield from thread_exception_runtest_hook() /usr/lib/python3/dist-packages/_pytest/threadexception.py:63: in thread_exception_runtest_hook yield /usr/lib/python3/dist-packages/_pytest/unraisableexception.py:95: in pytest_runtest_teardown yield from unraisable_exception_runtest_hook() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ def unraisable_exception_runtest_hook() -> Generator[None, None, None]: with catch_unraisable_exception() as cm: try: yield finally: if cm.unraisable: if cm.unraisable.err_msg is not None: err_msg = cm.unraisable.err_msg else: err_msg = "Exception ignored in" msg = f"{err_msg}: {cm.unraisable.object!r}\n\n" msg += "".join( traceback.format_exception( cm.unraisable.exc_type, cm.unraisable.exc_value, cm.unraisable.exc_traceback, ) ) > warnings.warn(pytest.PytestUnraisableExceptionWarning(msg)) E pytest.PytestUnraisableExceptionWarning: Exception ignored in: E E Traceback (most recent call last): E File "/build/reproducible-path/aiorwlock-1.0.0/tests/conftest.py", line 44, in event_loop E gc.collect() E ResourceWarning: unclosed /usr/lib/python3/dist-packages/_pytest/unraisableexception.py:80: PytestUnraisableExceptionWarning ________ ERROR at teardown of test_ctor_loop_writer[debug:false-uvloop] ________ cls = func = . at 0xf60ae0c8> when = 'teardown' reraise = (, ) @classmethod def from_call( cls, func: Callable[[], TResult], when: Literal["collect", "setup", "call", "teardown"], reraise: Optional[ Union[Type[BaseException], Tuple[Type[BaseException], ...]] ] = None, ) -> "CallInfo[TResult]": """Call func, wrapping the result in a CallInfo. :param func: The function to call. Called without arguments. :param when: The phase in which the function is called. :param reraise: Exception or exceptions that shall propagate if raised by the function, instead of being wrapped in the CallInfo. """ excinfo = None start = timing.time() precise_start = timing.perf_counter() try: > result: Optional[TResult] = func() /usr/lib/python3/dist-packages/_pytest/runner.py:341: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/dist-packages/_pytest/runner.py:241: in lambda: runtest_hook(item=item, **kwds), when=when, reraise=reraise /usr/lib/python3/dist-packages/pluggy/_hooks.py:513: in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) /usr/lib/python3/dist-packages/pluggy/_manager.py:120: in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) /usr/lib/python3/dist-packages/_pytest/threadexception.py:92: in pytest_runtest_teardown yield from thread_exception_runtest_hook() /usr/lib/python3/dist-packages/_pytest/threadexception.py:63: in thread_exception_runtest_hook yield /usr/lib/python3/dist-packages/_pytest/unraisableexception.py:95: in pytest_runtest_teardown yield from unraisable_exception_runtest_hook() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ def unraisable_exception_runtest_hook() -> Generator[None, None, None]: with catch_unraisable_exception() as cm: try: yield finally: if cm.unraisable: if cm.unraisable.err_msg is not None: err_msg = cm.unraisable.err_msg else: err_msg = "Exception ignored in" msg = f"{err_msg}: {cm.unraisable.object!r}\n\n" msg += "".join( traceback.format_exception( cm.unraisable.exc_type, cm.unraisable.exc_value, cm.unraisable.exc_traceback, ) ) > warnings.warn(pytest.PytestUnraisableExceptionWarning(msg)) E pytest.PytestUnraisableExceptionWarning: Exception ignored in: E E Traceback (most recent call last): E File "/build/reproducible-path/aiorwlock-1.0.0/tests/conftest.py", line 44, in event_loop E gc.collect() E ResourceWarning: unclosed /usr/lib/python3/dist-packages/_pytest/unraisableexception.py:80: PytestUnraisableExceptionWarning _______ ERROR at teardown of test_ctor_noloop_writer[debug:false-uvloop] _______ cls = func = . at 0xf60d03e8> when = 'teardown' reraise = (, ) @classmethod def from_call( cls, func: Callable[[], TResult], when: Literal["collect", "setup", "call", "teardown"], reraise: Optional[ Union[Type[BaseException], Tuple[Type[BaseException], ...]] ] = None, ) -> "CallInfo[TResult]": """Call func, wrapping the result in a CallInfo. :param func: The function to call. Called without arguments. :param when: The phase in which the function is called. :param reraise: Exception or exceptions that shall propagate if raised by the function, instead of being wrapped in the CallInfo. """ excinfo = None start = timing.time() precise_start = timing.perf_counter() try: > result: Optional[TResult] = func() /usr/lib/python3/dist-packages/_pytest/runner.py:341: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/dist-packages/_pytest/runner.py:241: in lambda: runtest_hook(item=item, **kwds), when=when, reraise=reraise /usr/lib/python3/dist-packages/pluggy/_hooks.py:513: in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) /usr/lib/python3/dist-packages/pluggy/_manager.py:120: in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) /usr/lib/python3/dist-packages/_pytest/threadexception.py:92: in pytest_runtest_teardown yield from thread_exception_runtest_hook() /usr/lib/python3/dist-packages/_pytest/threadexception.py:63: in thread_exception_runtest_hook yield /usr/lib/python3/dist-packages/_pytest/unraisableexception.py:95: in pytest_runtest_teardown yield from unraisable_exception_runtest_hook() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ def unraisable_exception_runtest_hook() -> Generator[None, None, None]: with catch_unraisable_exception() as cm: try: yield finally: if cm.unraisable: if cm.unraisable.err_msg is not None: err_msg = cm.unraisable.err_msg else: err_msg = "Exception ignored in" msg = f"{err_msg}: {cm.unraisable.object!r}\n\n" msg += "".join( traceback.format_exception( cm.unraisable.exc_type, cm.unraisable.exc_value, cm.unraisable.exc_traceback, ) ) > warnings.warn(pytest.PytestUnraisableExceptionWarning(msg)) E pytest.PytestUnraisableExceptionWarning: Exception ignored in: E E Traceback (most recent call last): E File "/build/reproducible-path/aiorwlock-1.0.0/tests/conftest.py", line 44, in event_loop E gc.collect() E ResourceWarning: unclosed /usr/lib/python3/dist-packages/_pytest/unraisableexception.py:80: PytestUnraisableExceptionWarning ______________ ERROR at teardown of test_repr[debug:false-uvloop] ______________ cls = func = . at 0xf618a848> when = 'teardown' reraise = (, ) @classmethod def from_call( cls, func: Callable[[], TResult], when: Literal["collect", "setup", "call", "teardown"], reraise: Optional[ Union[Type[BaseException], Tuple[Type[BaseException], ...]] ] = None, ) -> "CallInfo[TResult]": """Call func, wrapping the result in a CallInfo. :param func: The function to call. Called without arguments. :param when: The phase in which the function is called. :param reraise: Exception or exceptions that shall propagate if raised by the function, instead of being wrapped in the CallInfo. """ excinfo = None start = timing.time() precise_start = timing.perf_counter() try: > result: Optional[TResult] = func() /usr/lib/python3/dist-packages/_pytest/runner.py:341: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/dist-packages/_pytest/runner.py:241: in lambda: runtest_hook(item=item, **kwds), when=when, reraise=reraise /usr/lib/python3/dist-packages/pluggy/_hooks.py:513: in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) /usr/lib/python3/dist-packages/pluggy/_manager.py:120: in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) /usr/lib/python3/dist-packages/_pytest/threadexception.py:92: in pytest_runtest_teardown yield from thread_exception_runtest_hook() /usr/lib/python3/dist-packages/_pytest/threadexception.py:63: in thread_exception_runtest_hook yield /usr/lib/python3/dist-packages/_pytest/unraisableexception.py:95: in pytest_runtest_teardown yield from unraisable_exception_runtest_hook() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ def unraisable_exception_runtest_hook() -> Generator[None, None, None]: with catch_unraisable_exception() as cm: try: yield finally: if cm.unraisable: if cm.unraisable.err_msg is not None: err_msg = cm.unraisable.err_msg else: err_msg = "Exception ignored in" msg = f"{err_msg}: {cm.unraisable.object!r}\n\n" msg += "".join( traceback.format_exception( cm.unraisable.exc_type, cm.unraisable.exc_value, cm.unraisable.exc_traceback, ) ) > warnings.warn(pytest.PytestUnraisableExceptionWarning(msg)) E pytest.PytestUnraisableExceptionWarning: Exception ignored in: E E Traceback (most recent call last): E File "/build/reproducible-path/aiorwlock-1.0.0/tests/conftest.py", line 44, in event_loop E gc.collect() E ResourceWarning: unclosed /usr/lib/python3/dist-packages/_pytest/unraisableexception.py:80: PytestUnraisableExceptionWarning ________ ERROR at teardown of test_release_unlocked[debug:false-uvloop] ________ cls = func = . at 0xf60d03e8> when = 'teardown' reraise = (, ) @classmethod def from_call( cls, func: Callable[[], TResult], when: Literal["collect", "setup", "call", "teardown"], reraise: Optional[ Union[Type[BaseException], Tuple[Type[BaseException], ...]] ] = None, ) -> "CallInfo[TResult]": """Call func, wrapping the result in a CallInfo. :param func: The function to call. Called without arguments. :param when: The phase in which the function is called. :param reraise: Exception or exceptions that shall propagate if raised by the function, instead of being wrapped in the CallInfo. """ excinfo = None start = timing.time() precise_start = timing.perf_counter() try: > result: Optional[TResult] = func() /usr/lib/python3/dist-packages/_pytest/runner.py:341: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/dist-packages/_pytest/runner.py:241: in lambda: runtest_hook(item=item, **kwds), when=when, reraise=reraise /usr/lib/python3/dist-packages/pluggy/_hooks.py:513: in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) /usr/lib/python3/dist-packages/pluggy/_manager.py:120: in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) /usr/lib/python3/dist-packages/_pytest/threadexception.py:92: in pytest_runtest_teardown yield from thread_exception_runtest_hook() /usr/lib/python3/dist-packages/_pytest/threadexception.py:63: in thread_exception_runtest_hook yield /usr/lib/python3/dist-packages/_pytest/unraisableexception.py:95: in pytest_runtest_teardown yield from unraisable_exception_runtest_hook() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ def unraisable_exception_runtest_hook() -> Generator[None, None, None]: with catch_unraisable_exception() as cm: try: yield finally: if cm.unraisable: if cm.unraisable.err_msg is not None: err_msg = cm.unraisable.err_msg else: err_msg = "Exception ignored in" msg = f"{err_msg}: {cm.unraisable.object!r}\n\n" msg += "".join( traceback.format_exception( cm.unraisable.exc_type, cm.unraisable.exc_value, cm.unraisable.exc_traceback, ) ) > warnings.warn(pytest.PytestUnraisableExceptionWarning(msg)) E pytest.PytestUnraisableExceptionWarning: Exception ignored in: E E Traceback (most recent call last): E File "/build/reproducible-path/aiorwlock-1.0.0/tests/conftest.py", line 44, in event_loop E gc.collect() E ResourceWarning: unclosed /usr/lib/python3/dist-packages/_pytest/unraisableexception.py:80: PytestUnraisableExceptionWarning _______ ERROR at teardown of test_many_readers[debug:false-slow-uvloop] ________ cls = func = . at 0xf618a438> when = 'teardown' reraise = (, ) @classmethod def from_call( cls, func: Callable[[], TResult], when: Literal["collect", "setup", "call", "teardown"], reraise: Optional[ Union[Type[BaseException], Tuple[Type[BaseException], ...]] ] = None, ) -> "CallInfo[TResult]": """Call func, wrapping the result in a CallInfo. :param func: The function to call. Called without arguments. :param when: The phase in which the function is called. :param reraise: Exception or exceptions that shall propagate if raised by the function, instead of being wrapped in the CallInfo. """ excinfo = None start = timing.time() precise_start = timing.perf_counter() try: > result: Optional[TResult] = func() /usr/lib/python3/dist-packages/_pytest/runner.py:341: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/dist-packages/_pytest/runner.py:241: in lambda: runtest_hook(item=item, **kwds), when=when, reraise=reraise /usr/lib/python3/dist-packages/pluggy/_hooks.py:513: in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) /usr/lib/python3/dist-packages/pluggy/_manager.py:120: in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) /usr/lib/python3/dist-packages/_pytest/threadexception.py:92: in pytest_runtest_teardown yield from thread_exception_runtest_hook() /usr/lib/python3/dist-packages/_pytest/threadexception.py:63: in thread_exception_runtest_hook yield /usr/lib/python3/dist-packages/_pytest/unraisableexception.py:95: in pytest_runtest_teardown yield from unraisable_exception_runtest_hook() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ def unraisable_exception_runtest_hook() -> Generator[None, None, None]: with catch_unraisable_exception() as cm: try: yield finally: if cm.unraisable: if cm.unraisable.err_msg is not None: err_msg = cm.unraisable.err_msg else: err_msg = "Exception ignored in" msg = f"{err_msg}: {cm.unraisable.object!r}\n\n" msg += "".join( traceback.format_exception( cm.unraisable.exc_type, cm.unraisable.exc_value, cm.unraisable.exc_traceback, ) ) > warnings.warn(pytest.PytestUnraisableExceptionWarning(msg)) E pytest.PytestUnraisableExceptionWarning: Exception ignored in: E E Traceback (most recent call last): E File "/build/reproducible-path/aiorwlock-1.0.0/tests/conftest.py", line 44, in event_loop E gc.collect() E ResourceWarning: unclosed /usr/lib/python3/dist-packages/_pytest/unraisableexception.py:80: PytestUnraisableExceptionWarning _____ ERROR at teardown of test_reader_recursion[debug:false-slow-uvloop] ______ cls = func = . at 0xf60d03e8> when = 'teardown' reraise = (, ) @classmethod def from_call( cls, func: Callable[[], TResult], when: Literal["collect", "setup", "call", "teardown"], reraise: Optional[ Union[Type[BaseException], Tuple[Type[BaseException], ...]] ] = None, ) -> "CallInfo[TResult]": """Call func, wrapping the result in a CallInfo. :param func: The function to call. Called without arguments. :param when: The phase in which the function is called. :param reraise: Exception or exceptions that shall propagate if raised by the function, instead of being wrapped in the CallInfo. """ excinfo = None start = timing.time() precise_start = timing.perf_counter() try: > result: Optional[TResult] = func() /usr/lib/python3/dist-packages/_pytest/runner.py:341: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/dist-packages/_pytest/runner.py:241: in lambda: runtest_hook(item=item, **kwds), when=when, reraise=reraise /usr/lib/python3/dist-packages/pluggy/_hooks.py:513: in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) /usr/lib/python3/dist-packages/pluggy/_manager.py:120: in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) /usr/lib/python3/dist-packages/_pytest/threadexception.py:92: in pytest_runtest_teardown yield from thread_exception_runtest_hook() /usr/lib/python3/dist-packages/_pytest/threadexception.py:63: in thread_exception_runtest_hook yield /usr/lib/python3/dist-packages/_pytest/unraisableexception.py:95: in pytest_runtest_teardown yield from unraisable_exception_runtest_hook() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ def unraisable_exception_runtest_hook() -> Generator[None, None, None]: with catch_unraisable_exception() as cm: try: yield finally: if cm.unraisable: if cm.unraisable.err_msg is not None: err_msg = cm.unraisable.err_msg else: err_msg = "Exception ignored in" msg = f"{err_msg}: {cm.unraisable.object!r}\n\n" msg += "".join( traceback.format_exception( cm.unraisable.exc_type, cm.unraisable.exc_value, cm.unraisable.exc_traceback, ) ) > warnings.warn(pytest.PytestUnraisableExceptionWarning(msg)) E pytest.PytestUnraisableExceptionWarning: Exception ignored in: E E Traceback (most recent call last): E File "/build/reproducible-path/aiorwlock-1.0.0/tests/conftest.py", line 44, in event_loop E gc.collect() E ResourceWarning: unclosed /usr/lib/python3/dist-packages/_pytest/unraisableexception.py:80: PytestUnraisableExceptionWarning _____ ERROR at teardown of test_writer_recursion[debug:false-slow-uvloop] ______ cls = func = . at 0xf618a438> when = 'teardown' reraise = (, ) @classmethod def from_call( cls, func: Callable[[], TResult], when: Literal["collect", "setup", "call", "teardown"], reraise: Optional[ Union[Type[BaseException], Tuple[Type[BaseException], ...]] ] = None, ) -> "CallInfo[TResult]": """Call func, wrapping the result in a CallInfo. :param func: The function to call. Called without arguments. :param when: The phase in which the function is called. :param reraise: Exception or exceptions that shall propagate if raised by the function, instead of being wrapped in the CallInfo. """ excinfo = None start = timing.time() precise_start = timing.perf_counter() try: > result: Optional[TResult] = func() /usr/lib/python3/dist-packages/_pytest/runner.py:341: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/dist-packages/_pytest/runner.py:241: in lambda: runtest_hook(item=item, **kwds), when=when, reraise=reraise /usr/lib/python3/dist-packages/pluggy/_hooks.py:513: in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) /usr/lib/python3/dist-packages/pluggy/_manager.py:120: in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) /usr/lib/python3/dist-packages/_pytest/threadexception.py:92: in pytest_runtest_teardown yield from thread_exception_runtest_hook() /usr/lib/python3/dist-packages/_pytest/threadexception.py:63: in thread_exception_runtest_hook yield /usr/lib/python3/dist-packages/_pytest/unraisableexception.py:95: in pytest_runtest_teardown yield from unraisable_exception_runtest_hook() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ def unraisable_exception_runtest_hook() -> Generator[None, None, None]: with catch_unraisable_exception() as cm: try: yield finally: if cm.unraisable: if cm.unraisable.err_msg is not None: err_msg = cm.unraisable.err_msg else: err_msg = "Exception ignored in" msg = f"{err_msg}: {cm.unraisable.object!r}\n\n" msg += "".join( traceback.format_exception( cm.unraisable.exc_type, cm.unraisable.exc_value, cm.unraisable.exc_traceback, ) ) > warnings.warn(pytest.PytestUnraisableExceptionWarning(msg)) E pytest.PytestUnraisableExceptionWarning: Exception ignored in: E E Traceback (most recent call last): E File "/build/reproducible-path/aiorwlock-1.0.0/tests/conftest.py", line 44, in event_loop E gc.collect() E ResourceWarning: unclosed /usr/lib/python3/dist-packages/_pytest/unraisableexception.py:80: PytestUnraisableExceptionWarning _ ERROR at teardown of test_writer_then_reader_recursion[debug:false-slow-uvloop] _ cls = func = . at 0xf61a6488> when = 'teardown' reraise = (, ) @classmethod def from_call( cls, func: Callable[[], TResult], when: Literal["collect", "setup", "call", "teardown"], reraise: Optional[ Union[Type[BaseException], Tuple[Type[BaseException], ...]] ] = None, ) -> "CallInfo[TResult]": """Call func, wrapping the result in a CallInfo. :param func: The function to call. Called without arguments. :param when: The phase in which the function is called. :param reraise: Exception or exceptions that shall propagate if raised by the function, instead of being wrapped in the CallInfo. """ excinfo = None start = timing.time() precise_start = timing.perf_counter() try: > result: Optional[TResult] = func() /usr/lib/python3/dist-packages/_pytest/runner.py:341: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/dist-packages/_pytest/runner.py:241: in lambda: runtest_hook(item=item, **kwds), when=when, reraise=reraise /usr/lib/python3/dist-packages/pluggy/_hooks.py:513: in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) /usr/lib/python3/dist-packages/pluggy/_manager.py:120: in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) /usr/lib/python3/dist-packages/_pytest/threadexception.py:92: in pytest_runtest_teardown yield from thread_exception_runtest_hook() /usr/lib/python3/dist-packages/_pytest/threadexception.py:63: in thread_exception_runtest_hook yield /usr/lib/python3/dist-packages/_pytest/unraisableexception.py:95: in pytest_runtest_teardown yield from unraisable_exception_runtest_hook() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ def unraisable_exception_runtest_hook() -> Generator[None, None, None]: with catch_unraisable_exception() as cm: try: yield finally: if cm.unraisable: if cm.unraisable.err_msg is not None: err_msg = cm.unraisable.err_msg else: err_msg = "Exception ignored in" msg = f"{err_msg}: {cm.unraisable.object!r}\n\n" msg += "".join( traceback.format_exception( cm.unraisable.exc_type, cm.unraisable.exc_value, cm.unraisable.exc_traceback, ) ) > warnings.warn(pytest.PytestUnraisableExceptionWarning(msg)) E pytest.PytestUnraisableExceptionWarning: Exception ignored in: E E Traceback (most recent call last): E File "/build/reproducible-path/aiorwlock-1.0.0/tests/conftest.py", line 44, in event_loop E gc.collect() E ResourceWarning: unclosed /usr/lib/python3/dist-packages/_pytest/unraisableexception.py:80: PytestUnraisableExceptionWarning ---------------------------- Captured log teardown ----------------------------- ERROR asyncio:conftest.py:44 Task was destroyed but it is pending! task: .task() running at /build/reproducible-path/aiorwlock-1.0.0/tests/test_rwlock.py:30> wait_for= cb=[gather.._done_callback() at /usr/lib/python3.11/asyncio/tasks.py:764]> ERROR asyncio:conftest.py:44 Task was destroyed but it is pending! task: .task() running at /build/reproducible-path/aiorwlock-1.0.0/tests/test_rwlock.py:30> wait_for= cb=[gather.._done_callback() at /usr/lib/python3.11/asyncio/tasks.py:764]> ERROR asyncio:conftest.py:44 Task was destroyed but it is pending! task: .task() running at /build/reproducible-path/aiorwlock-1.0.0/tests/test_rwlock.py:30> wait_for= cb=[gather.._done_callback() at /usr/lib/python3.11/asyncio/tasks.py:764]> ERROR asyncio:conftest.py:44 Task was destroyed but it is pending! task: .task() running at /build/reproducible-path/aiorwlock-1.0.0/tests/test_rwlock.py:30> wait_for= cb=[gather.._done_callback() at /usr/lib/python3.11/asyncio/tasks.py:764]> ______ ERROR at teardown of test_readers_writers[debug:false-slow-uvloop] ______ cls = func = . at 0xf6552b18> when = 'teardown' reraise = (, ) @classmethod def from_call( cls, func: Callable[[], TResult], when: Literal["collect", "setup", "call", "teardown"], reraise: Optional[ Union[Type[BaseException], Tuple[Type[BaseException], ...]] ] = None, ) -> "CallInfo[TResult]": """Call func, wrapping the result in a CallInfo. :param func: The function to call. Called without arguments. :param when: The phase in which the function is called. :param reraise: Exception or exceptions that shall propagate if raised by the function, instead of being wrapped in the CallInfo. """ excinfo = None start = timing.time() precise_start = timing.perf_counter() try: > result: Optional[TResult] = func() /usr/lib/python3/dist-packages/_pytest/runner.py:341: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/dist-packages/_pytest/runner.py:241: in lambda: runtest_hook(item=item, **kwds), when=when, reraise=reraise /usr/lib/python3/dist-packages/pluggy/_hooks.py:513: in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) /usr/lib/python3/dist-packages/pluggy/_manager.py:120: in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) /usr/lib/python3/dist-packages/_pytest/threadexception.py:92: in pytest_runtest_teardown yield from thread_exception_runtest_hook() /usr/lib/python3/dist-packages/_pytest/threadexception.py:63: in thread_exception_runtest_hook yield /usr/lib/python3/dist-packages/_pytest/unraisableexception.py:95: in pytest_runtest_teardown yield from unraisable_exception_runtest_hook() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ def unraisable_exception_runtest_hook() -> Generator[None, None, None]: with catch_unraisable_exception() as cm: try: yield finally: if cm.unraisable: if cm.unraisable.err_msg is not None: err_msg = cm.unraisable.err_msg else: err_msg = "Exception ignored in" msg = f"{err_msg}: {cm.unraisable.object!r}\n\n" msg += "".join( traceback.format_exception( cm.unraisable.exc_type, cm.unraisable.exc_value, cm.unraisable.exc_traceback, ) ) > warnings.warn(pytest.PytestUnraisableExceptionWarning(msg)) E pytest.PytestUnraisableExceptionWarning: Exception ignored in: E E Traceback (most recent call last): E File "/build/reproducible-path/aiorwlock-1.0.0/tests/conftest.py", line 44, in event_loop E gc.collect() E ResourceWarning: unclosed /usr/lib/python3/dist-packages/_pytest/unraisableexception.py:80: PytestUnraisableExceptionWarning ---------------------------- Captured log teardown ----------------------------- ERROR asyncio:conftest.py:44 Task was destroyed but it is pending! task: .task() running at /build/reproducible-path/aiorwlock-1.0.0/tests/test_rwlock.py:30> wait_for= cb=[gather.._done_callback() at /usr/lib/python3.11/asyncio/tasks.py:764]> ERROR asyncio:conftest.py:44 Task was destroyed but it is pending! task: .task() running at /build/reproducible-path/aiorwlock-1.0.0/tests/test_rwlock.py:30> wait_for= cb=[gather.._done_callback() at /usr/lib/python3.11/asyncio/tasks.py:764]> ERROR asyncio:conftest.py:44 Task was destroyed but it is pending! task: .task() running at /build/reproducible-path/aiorwlock-1.0.0/tests/test_rwlock.py:30> wait_for= cb=[gather.._done_callback() at /usr/lib/python3.11/asyncio/tasks.py:764]> ERROR asyncio:conftest.py:44 Task was destroyed but it is pending! task: .task() running at /build/reproducible-path/aiorwlock-1.0.0/tests/test_rwlock.py:30> wait_for= cb=[gather.._done_callback() at /usr/lib/python3.11/asyncio/tasks.py:764]> _ ERROR at teardown of test_raise_error_on_with_for_reader_lock[debug:false-slow-uvloop] _ cls = func = . at 0xf61a6488> when = 'teardown' reraise = (, ) @classmethod def from_call( cls, func: Callable[[], TResult], when: Literal["collect", "setup", "call", "teardown"], reraise: Optional[ Union[Type[BaseException], Tuple[Type[BaseException], ...]] ] = None, ) -> "CallInfo[TResult]": """Call func, wrapping the result in a CallInfo. :param func: The function to call. Called without arguments. :param when: The phase in which the function is called. :param reraise: Exception or exceptions that shall propagate if raised by the function, instead of being wrapped in the CallInfo. """ excinfo = None start = timing.time() precise_start = timing.perf_counter() try: > result: Optional[TResult] = func() /usr/lib/python3/dist-packages/_pytest/runner.py:341: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/dist-packages/_pytest/runner.py:241: in lambda: runtest_hook(item=item, **kwds), when=when, reraise=reraise /usr/lib/python3/dist-packages/pluggy/_hooks.py:513: in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) /usr/lib/python3/dist-packages/pluggy/_manager.py:120: in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) /usr/lib/python3/dist-packages/_pytest/threadexception.py:92: in pytest_runtest_teardown yield from thread_exception_runtest_hook() /usr/lib/python3/dist-packages/_pytest/threadexception.py:63: in thread_exception_runtest_hook yield /usr/lib/python3/dist-packages/_pytest/unraisableexception.py:95: in pytest_runtest_teardown yield from unraisable_exception_runtest_hook() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ def unraisable_exception_runtest_hook() -> Generator[None, None, None]: with catch_unraisable_exception() as cm: try: yield finally: if cm.unraisable: if cm.unraisable.err_msg is not None: err_msg = cm.unraisable.err_msg else: err_msg = "Exception ignored in" msg = f"{err_msg}: {cm.unraisable.object!r}\n\n" msg += "".join( traceback.format_exception( cm.unraisable.exc_type, cm.unraisable.exc_value, cm.unraisable.exc_traceback, ) ) > warnings.warn(pytest.PytestUnraisableExceptionWarning(msg)) E pytest.PytestUnraisableExceptionWarning: Exception ignored in: E E Traceback (most recent call last): E File "/build/reproducible-path/aiorwlock-1.0.0/tests/conftest.py", line 44, in event_loop E gc.collect() E ResourceWarning: unclosed /usr/lib/python3/dist-packages/_pytest/unraisableexception.py:80: PytestUnraisableExceptionWarning ---------------------------- Captured log teardown ----------------------------- ERROR asyncio:conftest.py:44 Task was destroyed but it is pending! task: .task() running at /build/reproducible-path/aiorwlock-1.0.0/tests/test_rwlock.py:30> wait_for=> ERROR asyncio:conftest.py:44 Task was destroyed but it is pending! task: .task() running at /build/reproducible-path/aiorwlock-1.0.0/tests/test_rwlock.py:30> wait_for=> ERROR asyncio:conftest.py:44 Task was destroyed but it is pending! task: .task() running at /build/reproducible-path/aiorwlock-1.0.0/tests/test_rwlock.py:30> wait_for=> ERROR asyncio:conftest.py:44 Task was destroyed but it is pending! task: .task() running at /build/reproducible-path/aiorwlock-1.0.0/tests/test_rwlock.py:30> wait_for=> ERROR asyncio:conftest.py:44 Task was destroyed but it is pending! task: .task() running at /build/reproducible-path/aiorwlock-1.0.0/tests/test_rwlock.py:30> wait_for=> _ ERROR at teardown of test_raise_error_on_with_for_writer_lock[debug:false-slow-uvloop] _ cls = func = . at 0xf618a438> when = 'teardown' reraise = (, ) @classmethod def from_call( cls, func: Callable[[], TResult], when: Literal["collect", "setup", "call", "teardown"], reraise: Optional[ Union[Type[BaseException], Tuple[Type[BaseException], ...]] ] = None, ) -> "CallInfo[TResult]": """Call func, wrapping the result in a CallInfo. :param func: The function to call. Called without arguments. :param when: The phase in which the function is called. :param reraise: Exception or exceptions that shall propagate if raised by the function, instead of being wrapped in the CallInfo. """ excinfo = None start = timing.time() precise_start = timing.perf_counter() try: > result: Optional[TResult] = func() /usr/lib/python3/dist-packages/_pytest/runner.py:341: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/dist-packages/_pytest/runner.py:241: in lambda: runtest_hook(item=item, **kwds), when=when, reraise=reraise /usr/lib/python3/dist-packages/pluggy/_hooks.py:513: in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) /usr/lib/python3/dist-packages/pluggy/_manager.py:120: in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) /usr/lib/python3/dist-packages/_pytest/threadexception.py:92: in pytest_runtest_teardown yield from thread_exception_runtest_hook() /usr/lib/python3/dist-packages/_pytest/threadexception.py:63: in thread_exception_runtest_hook yield /usr/lib/python3/dist-packages/_pytest/unraisableexception.py:95: in pytest_runtest_teardown yield from unraisable_exception_runtest_hook() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ def unraisable_exception_runtest_hook() -> Generator[None, None, None]: with catch_unraisable_exception() as cm: try: yield finally: if cm.unraisable: if cm.unraisable.err_msg is not None: err_msg = cm.unraisable.err_msg else: err_msg = "Exception ignored in" msg = f"{err_msg}: {cm.unraisable.object!r}\n\n" msg += "".join( traceback.format_exception( cm.unraisable.exc_type, cm.unraisable.exc_value, cm.unraisable.exc_traceback, ) ) > warnings.warn(pytest.PytestUnraisableExceptionWarning(msg)) E pytest.PytestUnraisableExceptionWarning: Exception ignored in: E E Traceback (most recent call last): E File "/build/reproducible-path/aiorwlock-1.0.0/tests/conftest.py", line 44, in event_loop E gc.collect() E ResourceWarning: unclosed /usr/lib/python3/dist-packages/_pytest/unraisableexception.py:80: PytestUnraisableExceptionWarning ________ ERROR at teardown of test_read_locked[debug:false-slow-uvloop] ________ cls = func = . at 0xf61a6f78> when = 'teardown' reraise = (, ) @classmethod def from_call( cls, func: Callable[[], TResult], when: Literal["collect", "setup", "call", "teardown"], reraise: Optional[ Union[Type[BaseException], Tuple[Type[BaseException], ...]] ] = None, ) -> "CallInfo[TResult]": """Call func, wrapping the result in a CallInfo. :param func: The function to call. Called without arguments. :param when: The phase in which the function is called. :param reraise: Exception or exceptions that shall propagate if raised by the function, instead of being wrapped in the CallInfo. """ excinfo = None start = timing.time() precise_start = timing.perf_counter() try: > result: Optional[TResult] = func() /usr/lib/python3/dist-packages/_pytest/runner.py:341: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/dist-packages/_pytest/runner.py:241: in lambda: runtest_hook(item=item, **kwds), when=when, reraise=reraise /usr/lib/python3/dist-packages/pluggy/_hooks.py:513: in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) /usr/lib/python3/dist-packages/pluggy/_manager.py:120: in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) /usr/lib/python3/dist-packages/_pytest/threadexception.py:92: in pytest_runtest_teardown yield from thread_exception_runtest_hook() /usr/lib/python3/dist-packages/_pytest/threadexception.py:63: in thread_exception_runtest_hook yield /usr/lib/python3/dist-packages/_pytest/unraisableexception.py:95: in pytest_runtest_teardown yield from unraisable_exception_runtest_hook() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ def unraisable_exception_runtest_hook() -> Generator[None, None, None]: with catch_unraisable_exception() as cm: try: yield finally: if cm.unraisable: if cm.unraisable.err_msg is not None: err_msg = cm.unraisable.err_msg else: err_msg = "Exception ignored in" msg = f"{err_msg}: {cm.unraisable.object!r}\n\n" msg += "".join( traceback.format_exception( cm.unraisable.exc_type, cm.unraisable.exc_value, cm.unraisable.exc_traceback, ) ) > warnings.warn(pytest.PytestUnraisableExceptionWarning(msg)) E pytest.PytestUnraisableExceptionWarning: Exception ignored in: E E Traceback (most recent call last): E File "/build/reproducible-path/aiorwlock-1.0.0/tests/conftest.py", line 44, in event_loop E gc.collect() E ResourceWarning: unclosed /usr/lib/python3/dist-packages/_pytest/unraisableexception.py:80: PytestUnraisableExceptionWarning _______ ERROR at teardown of test_write_locked[debug:false-slow-uvloop] ________ cls = func = . at 0xf6552988> when = 'teardown' reraise = (, ) @classmethod def from_call( cls, func: Callable[[], TResult], when: Literal["collect", "setup", "call", "teardown"], reraise: Optional[ Union[Type[BaseException], Tuple[Type[BaseException], ...]] ] = None, ) -> "CallInfo[TResult]": """Call func, wrapping the result in a CallInfo. :param func: The function to call. Called without arguments. :param when: The phase in which the function is called. :param reraise: Exception or exceptions that shall propagate if raised by the function, instead of being wrapped in the CallInfo. """ excinfo = None start = timing.time() precise_start = timing.perf_counter() try: > result: Optional[TResult] = func() /usr/lib/python3/dist-packages/_pytest/runner.py:341: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/dist-packages/_pytest/runner.py:241: in lambda: runtest_hook(item=item, **kwds), when=when, reraise=reraise /usr/lib/python3/dist-packages/pluggy/_hooks.py:513: in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) /usr/lib/python3/dist-packages/pluggy/_manager.py:120: in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) /usr/lib/python3/dist-packages/_pytest/threadexception.py:92: in pytest_runtest_teardown yield from thread_exception_runtest_hook() /usr/lib/python3/dist-packages/_pytest/threadexception.py:63: in thread_exception_runtest_hook yield /usr/lib/python3/dist-packages/_pytest/unraisableexception.py:95: in pytest_runtest_teardown yield from unraisable_exception_runtest_hook() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ def unraisable_exception_runtest_hook() -> Generator[None, None, None]: with catch_unraisable_exception() as cm: try: yield finally: if cm.unraisable: if cm.unraisable.err_msg is not None: err_msg = cm.unraisable.err_msg else: err_msg = "Exception ignored in" msg = f"{err_msg}: {cm.unraisable.object!r}\n\n" msg += "".join( traceback.format_exception( cm.unraisable.exc_type, cm.unraisable.exc_value, cm.unraisable.exc_traceback, ) ) > warnings.warn(pytest.PytestUnraisableExceptionWarning(msg)) E pytest.PytestUnraisableExceptionWarning: Exception ignored in: E E Traceback (most recent call last): E File "/build/reproducible-path/aiorwlock-1.0.0/tests/conftest.py", line 44, in event_loop E gc.collect() E ResourceWarning: unclosed /usr/lib/python3/dist-packages/_pytest/unraisableexception.py:80: PytestUnraisableExceptionWarning _ ERROR at teardown of test_write_read_lock_multiple_tasks[debug:false-slow-uvloop] _ cls = func = . at 0xf652bb18> when = 'teardown' reraise = (, ) @classmethod def from_call( cls, func: Callable[[], TResult], when: Literal["collect", "setup", "call", "teardown"], reraise: Optional[ Union[Type[BaseException], Tuple[Type[BaseException], ...]] ] = None, ) -> "CallInfo[TResult]": """Call func, wrapping the result in a CallInfo. :param func: The function to call. Called without arguments. :param when: The phase in which the function is called. :param reraise: Exception or exceptions that shall propagate if raised by the function, instead of being wrapped in the CallInfo. """ excinfo = None start = timing.time() precise_start = timing.perf_counter() try: > result: Optional[TResult] = func() /usr/lib/python3/dist-packages/_pytest/runner.py:341: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/dist-packages/_pytest/runner.py:241: in lambda: runtest_hook(item=item, **kwds), when=when, reraise=reraise /usr/lib/python3/dist-packages/pluggy/_hooks.py:513: in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) /usr/lib/python3/dist-packages/pluggy/_manager.py:120: in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) /usr/lib/python3/dist-packages/_pytest/threadexception.py:92: in pytest_runtest_teardown yield from thread_exception_runtest_hook() /usr/lib/python3/dist-packages/_pytest/threadexception.py:63: in thread_exception_runtest_hook yield /usr/lib/python3/dist-packages/_pytest/unraisableexception.py:95: in pytest_runtest_teardown yield from unraisable_exception_runtest_hook() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ def unraisable_exception_runtest_hook() -> Generator[None, None, None]: with catch_unraisable_exception() as cm: try: yield finally: if cm.unraisable: if cm.unraisable.err_msg is not None: err_msg = cm.unraisable.err_msg else: err_msg = "Exception ignored in" msg = f"{err_msg}: {cm.unraisable.object!r}\n\n" msg += "".join( traceback.format_exception( cm.unraisable.exc_type, cm.unraisable.exc_value, cm.unraisable.exc_traceback, ) ) > warnings.warn(pytest.PytestUnraisableExceptionWarning(msg)) E pytest.PytestUnraisableExceptionWarning: Exception ignored in: E E Traceback (most recent call last): E File "/build/reproducible-path/aiorwlock-1.0.0/tests/conftest.py", line 44, in event_loop E gc.collect() E ResourceWarning: unclosed /usr/lib/python3/dist-packages/_pytest/unraisableexception.py:80: PytestUnraisableExceptionWarning ___ ERROR at teardown of test_read_context_manager[debug:false-slow-uvloop] ____ cls = func = . at 0xf652b7f8> when = 'teardown' reraise = (, ) @classmethod def from_call( cls, func: Callable[[], TResult], when: Literal["collect", "setup", "call", "teardown"], reraise: Optional[ Union[Type[BaseException], Tuple[Type[BaseException], ...]] ] = None, ) -> "CallInfo[TResult]": """Call func, wrapping the result in a CallInfo. :param func: The function to call. Called without arguments. :param when: The phase in which the function is called. :param reraise: Exception or exceptions that shall propagate if raised by the function, instead of being wrapped in the CallInfo. """ excinfo = None start = timing.time() precise_start = timing.perf_counter() try: > result: Optional[TResult] = func() /usr/lib/python3/dist-packages/_pytest/runner.py:341: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/dist-packages/_pytest/runner.py:241: in lambda: runtest_hook(item=item, **kwds), when=when, reraise=reraise /usr/lib/python3/dist-packages/pluggy/_hooks.py:513: in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) /usr/lib/python3/dist-packages/pluggy/_manager.py:120: in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) /usr/lib/python3/dist-packages/_pytest/threadexception.py:92: in pytest_runtest_teardown yield from thread_exception_runtest_hook() /usr/lib/python3/dist-packages/_pytest/threadexception.py:63: in thread_exception_runtest_hook yield /usr/lib/python3/dist-packages/_pytest/unraisableexception.py:95: in pytest_runtest_teardown yield from unraisable_exception_runtest_hook() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ def unraisable_exception_runtest_hook() -> Generator[None, None, None]: with catch_unraisable_exception() as cm: try: yield finally: if cm.unraisable: if cm.unraisable.err_msg is not None: err_msg = cm.unraisable.err_msg else: err_msg = "Exception ignored in" msg = f"{err_msg}: {cm.unraisable.object!r}\n\n" msg += "".join( traceback.format_exception( cm.unraisable.exc_type, cm.unraisable.exc_value, cm.unraisable.exc_traceback, ) ) > warnings.warn(pytest.PytestUnraisableExceptionWarning(msg)) E pytest.PytestUnraisableExceptionWarning: Exception ignored in: E E Traceback (most recent call last): E File "/build/reproducible-path/aiorwlock-1.0.0/tests/conftest.py", line 44, in event_loop E gc.collect() E ResourceWarning: unclosed /usr/lib/python3/dist-packages/_pytest/unraisableexception.py:80: PytestUnraisableExceptionWarning ___ ERROR at teardown of test_write_context_manager[debug:false-slow-uvloop] ___ cls = func = . at 0xf652bcf8> when = 'teardown' reraise = (, ) @classmethod def from_call( cls, func: Callable[[], TResult], when: Literal["collect", "setup", "call", "teardown"], reraise: Optional[ Union[Type[BaseException], Tuple[Type[BaseException], ...]] ] = None, ) -> "CallInfo[TResult]": """Call func, wrapping the result in a CallInfo. :param func: The function to call. Called without arguments. :param when: The phase in which the function is called. :param reraise: Exception or exceptions that shall propagate if raised by the function, instead of being wrapped in the CallInfo. """ excinfo = None start = timing.time() precise_start = timing.perf_counter() try: > result: Optional[TResult] = func() /usr/lib/python3/dist-packages/_pytest/runner.py:341: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/dist-packages/_pytest/runner.py:241: in lambda: runtest_hook(item=item, **kwds), when=when, reraise=reraise /usr/lib/python3/dist-packages/pluggy/_hooks.py:513: in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) /usr/lib/python3/dist-packages/pluggy/_manager.py:120: in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) /usr/lib/python3/dist-packages/_pytest/threadexception.py:92: in pytest_runtest_teardown yield from thread_exception_runtest_hook() /usr/lib/python3/dist-packages/_pytest/threadexception.py:63: in thread_exception_runtest_hook yield /usr/lib/python3/dist-packages/_pytest/unraisableexception.py:95: in pytest_runtest_teardown yield from unraisable_exception_runtest_hook() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ def unraisable_exception_runtest_hook() -> Generator[None, None, None]: with catch_unraisable_exception() as cm: try: yield finally: if cm.unraisable: if cm.unraisable.err_msg is not None: err_msg = cm.unraisable.err_msg else: err_msg = "Exception ignored in" msg = f"{err_msg}: {cm.unraisable.object!r}\n\n" msg += "".join( traceback.format_exception( cm.unraisable.exc_type, cm.unraisable.exc_value, cm.unraisable.exc_traceback, ) ) > warnings.warn(pytest.PytestUnraisableExceptionWarning(msg)) E pytest.PytestUnraisableExceptionWarning: Exception ignored in: E E Traceback (most recent call last): E File "/build/reproducible-path/aiorwlock-1.0.0/tests/conftest.py", line 44, in event_loop E gc.collect() E ResourceWarning: unclosed /usr/lib/python3/dist-packages/_pytest/unraisableexception.py:80: PytestUnraisableExceptionWarning ______ ERROR at teardown of test_await_read_lock[debug:false-slow-uvloop] ______ cls = func = . at 0xf655cac8> when = 'teardown' reraise = (, ) @classmethod def from_call( cls, func: Callable[[], TResult], when: Literal["collect", "setup", "call", "teardown"], reraise: Optional[ Union[Type[BaseException], Tuple[Type[BaseException], ...]] ] = None, ) -> "CallInfo[TResult]": """Call func, wrapping the result in a CallInfo. :param func: The function to call. Called without arguments. :param when: The phase in which the function is called. :param reraise: Exception or exceptions that shall propagate if raised by the function, instead of being wrapped in the CallInfo. """ excinfo = None start = timing.time() precise_start = timing.perf_counter() try: > result: Optional[TResult] = func() /usr/lib/python3/dist-packages/_pytest/runner.py:341: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/dist-packages/_pytest/runner.py:241: in lambda: runtest_hook(item=item, **kwds), when=when, reraise=reraise /usr/lib/python3/dist-packages/pluggy/_hooks.py:513: in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) /usr/lib/python3/dist-packages/pluggy/_manager.py:120: in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) /usr/lib/python3/dist-packages/_pytest/threadexception.py:92: in pytest_runtest_teardown yield from thread_exception_runtest_hook() /usr/lib/python3/dist-packages/_pytest/threadexception.py:63: in thread_exception_runtest_hook yield /usr/lib/python3/dist-packages/_pytest/unraisableexception.py:95: in pytest_runtest_teardown yield from unraisable_exception_runtest_hook() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ def unraisable_exception_runtest_hook() -> Generator[None, None, None]: with catch_unraisable_exception() as cm: try: yield finally: if cm.unraisable: if cm.unraisable.err_msg is not None: err_msg = cm.unraisable.err_msg else: err_msg = "Exception ignored in" msg = f"{err_msg}: {cm.unraisable.object!r}\n\n" msg += "".join( traceback.format_exception( cm.unraisable.exc_type, cm.unraisable.exc_value, cm.unraisable.exc_traceback, ) ) > warnings.warn(pytest.PytestUnraisableExceptionWarning(msg)) E pytest.PytestUnraisableExceptionWarning: Exception ignored in: E E Traceback (most recent call last): E File "/build/reproducible-path/aiorwlock-1.0.0/tests/conftest.py", line 44, in event_loop E gc.collect() E ResourceWarning: unclosed /usr/lib/python3/dist-packages/_pytest/unraisableexception.py:80: PytestUnraisableExceptionWarning _____ ERROR at teardown of test_await_write_lock[debug:false-slow-uvloop] ______ cls = func = . at 0xf655c9d8> when = 'teardown' reraise = (, ) @classmethod def from_call( cls, func: Callable[[], TResult], when: Literal["collect", "setup", "call", "teardown"], reraise: Optional[ Union[Type[BaseException], Tuple[Type[BaseException], ...]] ] = None, ) -> "CallInfo[TResult]": """Call func, wrapping the result in a CallInfo. :param func: The function to call. Called without arguments. :param when: The phase in which the function is called. :param reraise: Exception or exceptions that shall propagate if raised by the function, instead of being wrapped in the CallInfo. """ excinfo = None start = timing.time() precise_start = timing.perf_counter() try: > result: Optional[TResult] = func() /usr/lib/python3/dist-packages/_pytest/runner.py:341: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/dist-packages/_pytest/runner.py:241: in lambda: runtest_hook(item=item, **kwds), when=when, reraise=reraise /usr/lib/python3/dist-packages/pluggy/_hooks.py:513: in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) /usr/lib/python3/dist-packages/pluggy/_manager.py:120: in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) /usr/lib/python3/dist-packages/_pytest/threadexception.py:92: in pytest_runtest_teardown yield from thread_exception_runtest_hook() /usr/lib/python3/dist-packages/_pytest/threadexception.py:63: in thread_exception_runtest_hook yield /usr/lib/python3/dist-packages/_pytest/unraisableexception.py:95: in pytest_runtest_teardown yield from unraisable_exception_runtest_hook() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ def unraisable_exception_runtest_hook() -> Generator[None, None, None]: with catch_unraisable_exception() as cm: try: yield finally: if cm.unraisable: if cm.unraisable.err_msg is not None: err_msg = cm.unraisable.err_msg else: err_msg = "Exception ignored in" msg = f"{err_msg}: {cm.unraisable.object!r}\n\n" msg += "".join( traceback.format_exception( cm.unraisable.exc_type, cm.unraisable.exc_value, cm.unraisable.exc_traceback, ) ) > warnings.warn(pytest.PytestUnraisableExceptionWarning(msg)) E pytest.PytestUnraisableExceptionWarning: Exception ignored in: E E Traceback (most recent call last): E File "/build/reproducible-path/aiorwlock-1.0.0/tests/conftest.py", line 44, in event_loop E gc.collect() E ResourceWarning: unclosed /usr/lib/python3/dist-packages/_pytest/unraisableexception.py:80: PytestUnraisableExceptionWarning _ ERROR at teardown of test_raise_error_on_with_for_reader_lock[debug:false-slow-pyloop] _ cls = func = . at 0xf655c9d8> when = 'teardown' reraise = (, ) @classmethod def from_call( cls, func: Callable[[], TResult], when: Literal["collect", "setup", "call", "teardown"], reraise: Optional[ Union[Type[BaseException], Tuple[Type[BaseException], ...]] ] = None, ) -> "CallInfo[TResult]": """Call func, wrapping the result in a CallInfo. :param func: The function to call. Called without arguments. :param when: The phase in which the function is called. :param reraise: Exception or exceptions that shall propagate if raised by the function, instead of being wrapped in the CallInfo. """ excinfo = None start = timing.time() precise_start = timing.perf_counter() try: > result: Optional[TResult] = func() /usr/lib/python3/dist-packages/_pytest/runner.py:341: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/dist-packages/_pytest/runner.py:241: in lambda: runtest_hook(item=item, **kwds), when=when, reraise=reraise /usr/lib/python3/dist-packages/pluggy/_hooks.py:513: in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) /usr/lib/python3/dist-packages/pluggy/_manager.py:120: in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) /usr/lib/python3/dist-packages/_pytest/threadexception.py:92: in pytest_runtest_teardown yield from thread_exception_runtest_hook() /usr/lib/python3/dist-packages/_pytest/threadexception.py:63: in thread_exception_runtest_hook yield /usr/lib/python3/dist-packages/_pytest/unraisableexception.py:95: in pytest_runtest_teardown yield from unraisable_exception_runtest_hook() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ def unraisable_exception_runtest_hook() -> Generator[None, None, None]: with catch_unraisable_exception() as cm: try: yield finally: if cm.unraisable: if cm.unraisable.err_msg is not None: err_msg = cm.unraisable.err_msg else: err_msg = "Exception ignored in" msg = f"{err_msg}: {cm.unraisable.object!r}\n\n" msg += "".join( traceback.format_exception( cm.unraisable.exc_type, cm.unraisable.exc_value, cm.unraisable.exc_traceback, ) ) > warnings.warn(pytest.PytestUnraisableExceptionWarning(msg)) E pytest.PytestUnraisableExceptionWarning: Exception ignored in: E E Traceback (most recent call last): E File "/build/reproducible-path/aiorwlock-1.0.0/tests/conftest.py", line 44, in event_loop E gc.collect() E ResourceWarning: unclosed /usr/lib/python3/dist-packages/_pytest/unraisableexception.py:80: PytestUnraisableExceptionWarning ---------------------------- Captured log teardown ----------------------------- ERROR asyncio:base_events.py:1785 Task was destroyed but it is pending! task: .task() running at /build/reproducible-path/aiorwlock-1.0.0/tests/test_rwlock.py:30> wait_for=> ERROR asyncio:base_events.py:1785 Task was destroyed but it is pending! task: .task() running at /build/reproducible-path/aiorwlock-1.0.0/tests/test_rwlock.py:30> wait_for=> ERROR asyncio:base_events.py:1785 Task was destroyed but it is pending! task: .task() running at /build/reproducible-path/aiorwlock-1.0.0/tests/test_rwlock.py:30> wait_for=> ERROR asyncio:base_events.py:1785 Task was destroyed but it is pending! task: .task() running at /build/reproducible-path/aiorwlock-1.0.0/tests/test_rwlock.py:30> wait_for=> ERROR asyncio:base_events.py:1785 Task was destroyed but it is pending! task: .task() running at /build/reproducible-path/aiorwlock-1.0.0/tests/test_rwlock.py:30> wait_for=> _ ERROR at teardown of test_raise_error_on_with_for_writer_lock[debug:false-slow-pyloop] _ cls = func = . at 0xf655cb68> when = 'teardown' reraise = (, ) @classmethod def from_call( cls, func: Callable[[], TResult], when: Literal["collect", "setup", "call", "teardown"], reraise: Optional[ Union[Type[BaseException], Tuple[Type[BaseException], ...]] ] = None, ) -> "CallInfo[TResult]": """Call func, wrapping the result in a CallInfo. :param func: The function to call. Called without arguments. :param when: The phase in which the function is called. :param reraise: Exception or exceptions that shall propagate if raised by the function, instead of being wrapped in the CallInfo. """ excinfo = None start = timing.time() precise_start = timing.perf_counter() try: > result: Optional[TResult] = func() /usr/lib/python3/dist-packages/_pytest/runner.py:341: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/dist-packages/_pytest/runner.py:241: in lambda: runtest_hook(item=item, **kwds), when=when, reraise=reraise /usr/lib/python3/dist-packages/pluggy/_hooks.py:513: in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) /usr/lib/python3/dist-packages/pluggy/_manager.py:120: in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) /usr/lib/python3/dist-packages/_pytest/threadexception.py:92: in pytest_runtest_teardown yield from thread_exception_runtest_hook() /usr/lib/python3/dist-packages/_pytest/threadexception.py:63: in thread_exception_runtest_hook yield /usr/lib/python3/dist-packages/_pytest/unraisableexception.py:95: in pytest_runtest_teardown yield from unraisable_exception_runtest_hook() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ def unraisable_exception_runtest_hook() -> Generator[None, None, None]: with catch_unraisable_exception() as cm: try: yield finally: if cm.unraisable: if cm.unraisable.err_msg is not None: err_msg = cm.unraisable.err_msg else: err_msg = "Exception ignored in" msg = f"{err_msg}: {cm.unraisable.object!r}\n\n" msg += "".join( traceback.format_exception( cm.unraisable.exc_type, cm.unraisable.exc_value, cm.unraisable.exc_traceback, ) ) > warnings.warn(pytest.PytestUnraisableExceptionWarning(msg)) E pytest.PytestUnraisableExceptionWarning: Exception ignored in: E E Traceback (most recent call last): E File "/build/reproducible-path/aiorwlock-1.0.0/tests/conftest.py", line 44, in event_loop E gc.collect() E ResourceWarning: unclosed /usr/lib/python3/dist-packages/_pytest/unraisableexception.py:80: PytestUnraisableExceptionWarning ________ ERROR at teardown of test_read_locked[debug:false-slow-pyloop] ________ cls = func = . at 0xf60a8bb8> when = 'teardown' reraise = (, ) @classmethod def from_call( cls, func: Callable[[], TResult], when: Literal["collect", "setup", "call", "teardown"], reraise: Optional[ Union[Type[BaseException], Tuple[Type[BaseException], ...]] ] = None, ) -> "CallInfo[TResult]": """Call func, wrapping the result in a CallInfo. :param func: The function to call. Called without arguments. :param when: The phase in which the function is called. :param reraise: Exception or exceptions that shall propagate if raised by the function, instead of being wrapped in the CallInfo. """ excinfo = None start = timing.time() precise_start = timing.perf_counter() try: > result: Optional[TResult] = func() /usr/lib/python3/dist-packages/_pytest/runner.py:341: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/dist-packages/_pytest/runner.py:241: in lambda: runtest_hook(item=item, **kwds), when=when, reraise=reraise /usr/lib/python3/dist-packages/pluggy/_hooks.py:513: in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) /usr/lib/python3/dist-packages/pluggy/_manager.py:120: in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) /usr/lib/python3/dist-packages/_pytest/threadexception.py:92: in pytest_runtest_teardown yield from thread_exception_runtest_hook() /usr/lib/python3/dist-packages/_pytest/threadexception.py:63: in thread_exception_runtest_hook yield /usr/lib/python3/dist-packages/_pytest/unraisableexception.py:95: in pytest_runtest_teardown yield from unraisable_exception_runtest_hook() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ def unraisable_exception_runtest_hook() -> Generator[None, None, None]: with catch_unraisable_exception() as cm: try: yield finally: if cm.unraisable: if cm.unraisable.err_msg is not None: err_msg = cm.unraisable.err_msg else: err_msg = "Exception ignored in" msg = f"{err_msg}: {cm.unraisable.object!r}\n\n" msg += "".join( traceback.format_exception( cm.unraisable.exc_type, cm.unraisable.exc_value, cm.unraisable.exc_traceback, ) ) > warnings.warn(pytest.PytestUnraisableExceptionWarning(msg)) E pytest.PytestUnraisableExceptionWarning: Exception ignored in: E E Traceback (most recent call last): E File "/build/reproducible-path/aiorwlock-1.0.0/tests/conftest.py", line 44, in event_loop E gc.collect() E ResourceWarning: unclosed /usr/lib/python3/dist-packages/_pytest/unraisableexception.py:80: PytestUnraisableExceptionWarning _______ ERROR at teardown of test_write_locked[debug:false-slow-pyloop] ________ cls = func = . at 0xf606e668> when = 'teardown' reraise = (, ) @classmethod def from_call( cls, func: Callable[[], TResult], when: Literal["collect", "setup", "call", "teardown"], reraise: Optional[ Union[Type[BaseException], Tuple[Type[BaseException], ...]] ] = None, ) -> "CallInfo[TResult]": """Call func, wrapping the result in a CallInfo. :param func: The function to call. Called without arguments. :param when: The phase in which the function is called. :param reraise: Exception or exceptions that shall propagate if raised by the function, instead of being wrapped in the CallInfo. """ excinfo = None start = timing.time() precise_start = timing.perf_counter() try: > result: Optional[TResult] = func() /usr/lib/python3/dist-packages/_pytest/runner.py:341: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/dist-packages/_pytest/runner.py:241: in lambda: runtest_hook(item=item, **kwds), when=when, reraise=reraise /usr/lib/python3/dist-packages/pluggy/_hooks.py:513: in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) /usr/lib/python3/dist-packages/pluggy/_manager.py:120: in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) /usr/lib/python3/dist-packages/_pytest/threadexception.py:92: in pytest_runtest_teardown yield from thread_exception_runtest_hook() /usr/lib/python3/dist-packages/_pytest/threadexception.py:63: in thread_exception_runtest_hook yield /usr/lib/python3/dist-packages/_pytest/unraisableexception.py:95: in pytest_runtest_teardown yield from unraisable_exception_runtest_hook() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ def unraisable_exception_runtest_hook() -> Generator[None, None, None]: with catch_unraisable_exception() as cm: try: yield finally: if cm.unraisable: if cm.unraisable.err_msg is not None: err_msg = cm.unraisable.err_msg else: err_msg = "Exception ignored in" msg = f"{err_msg}: {cm.unraisable.object!r}\n\n" msg += "".join( traceback.format_exception( cm.unraisable.exc_type, cm.unraisable.exc_value, cm.unraisable.exc_traceback, ) ) > warnings.warn(pytest.PytestUnraisableExceptionWarning(msg)) E pytest.PytestUnraisableExceptionWarning: Exception ignored in: E E Traceback (most recent call last): E File "/build/reproducible-path/aiorwlock-1.0.0/tests/conftest.py", line 44, in event_loop E gc.collect() E ResourceWarning: unclosed /usr/lib/python3/dist-packages/_pytest/unraisableexception.py:80: PytestUnraisableExceptionWarning _ ERROR at teardown of test_write_read_lock_multiple_tasks[debug:false-slow-pyloop] _ cls = func = . at 0xf606ed98> when = 'teardown' reraise = (, ) @classmethod def from_call( cls, func: Callable[[], TResult], when: Literal["collect", "setup", "call", "teardown"], reraise: Optional[ Union[Type[BaseException], Tuple[Type[BaseException], ...]] ] = None, ) -> "CallInfo[TResult]": """Call func, wrapping the result in a CallInfo. :param func: The function to call. Called without arguments. :param when: The phase in which the function is called. :param reraise: Exception or exceptions that shall propagate if raised by the function, instead of being wrapped in the CallInfo. """ excinfo = None start = timing.time() precise_start = timing.perf_counter() try: > result: Optional[TResult] = func() /usr/lib/python3/dist-packages/_pytest/runner.py:341: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/dist-packages/_pytest/runner.py:241: in lambda: runtest_hook(item=item, **kwds), when=when, reraise=reraise /usr/lib/python3/dist-packages/pluggy/_hooks.py:513: in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) /usr/lib/python3/dist-packages/pluggy/_manager.py:120: in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) /usr/lib/python3/dist-packages/_pytest/threadexception.py:92: in pytest_runtest_teardown yield from thread_exception_runtest_hook() /usr/lib/python3/dist-packages/_pytest/threadexception.py:63: in thread_exception_runtest_hook yield /usr/lib/python3/dist-packages/_pytest/unraisableexception.py:95: in pytest_runtest_teardown yield from unraisable_exception_runtest_hook() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ def unraisable_exception_runtest_hook() -> Generator[None, None, None]: with catch_unraisable_exception() as cm: try: yield finally: if cm.unraisable: if cm.unraisable.err_msg is not None: err_msg = cm.unraisable.err_msg else: err_msg = "Exception ignored in" msg = f"{err_msg}: {cm.unraisable.object!r}\n\n" msg += "".join( traceback.format_exception( cm.unraisable.exc_type, cm.unraisable.exc_value, cm.unraisable.exc_traceback, ) ) > warnings.warn(pytest.PytestUnraisableExceptionWarning(msg)) E pytest.PytestUnraisableExceptionWarning: Exception ignored in: E E Traceback (most recent call last): E File "/build/reproducible-path/aiorwlock-1.0.0/tests/conftest.py", line 44, in event_loop E gc.collect() E ResourceWarning: unclosed /usr/lib/python3/dist-packages/_pytest/unraisableexception.py:80: PytestUnraisableExceptionWarning ___ ERROR at teardown of test_read_context_manager[debug:false-slow-pyloop] ____ cls = func = . at 0xf606e7a8> when = 'teardown' reraise = (, ) @classmethod def from_call( cls, func: Callable[[], TResult], when: Literal["collect", "setup", "call", "teardown"], reraise: Optional[ Union[Type[BaseException], Tuple[Type[BaseException], ...]] ] = None, ) -> "CallInfo[TResult]": """Call func, wrapping the result in a CallInfo. :param func: The function to call. Called without arguments. :param when: The phase in which the function is called. :param reraise: Exception or exceptions that shall propagate if raised by the function, instead of being wrapped in the CallInfo. """ excinfo = None start = timing.time() precise_start = timing.perf_counter() try: > result: Optional[TResult] = func() /usr/lib/python3/dist-packages/_pytest/runner.py:341: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/dist-packages/_pytest/runner.py:241: in lambda: runtest_hook(item=item, **kwds), when=when, reraise=reraise /usr/lib/python3/dist-packages/pluggy/_hooks.py:513: in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) /usr/lib/python3/dist-packages/pluggy/_manager.py:120: in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) /usr/lib/python3/dist-packages/_pytest/threadexception.py:92: in pytest_runtest_teardown yield from thread_exception_runtest_hook() /usr/lib/python3/dist-packages/_pytest/threadexception.py:63: in thread_exception_runtest_hook yield /usr/lib/python3/dist-packages/_pytest/unraisableexception.py:95: in pytest_runtest_teardown yield from unraisable_exception_runtest_hook() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ def unraisable_exception_runtest_hook() -> Generator[None, None, None]: with catch_unraisable_exception() as cm: try: yield finally: if cm.unraisable: if cm.unraisable.err_msg is not None: err_msg = cm.unraisable.err_msg else: err_msg = "Exception ignored in" msg = f"{err_msg}: {cm.unraisable.object!r}\n\n" msg += "".join( traceback.format_exception( cm.unraisable.exc_type, cm.unraisable.exc_value, cm.unraisable.exc_traceback, ) ) > warnings.warn(pytest.PytestUnraisableExceptionWarning(msg)) E pytest.PytestUnraisableExceptionWarning: Exception ignored in: E E Traceback (most recent call last): E File "/build/reproducible-path/aiorwlock-1.0.0/tests/conftest.py", line 44, in event_loop E gc.collect() E ResourceWarning: unclosed /usr/lib/python3/dist-packages/_pytest/unraisableexception.py:80: PytestUnraisableExceptionWarning ___ ERROR at teardown of test_write_context_manager[debug:false-slow-pyloop] ___ cls = func = . at 0xf606e578> when = 'teardown' reraise = (, ) @classmethod def from_call( cls, func: Callable[[], TResult], when: Literal["collect", "setup", "call", "teardown"], reraise: Optional[ Union[Type[BaseException], Tuple[Type[BaseException], ...]] ] = None, ) -> "CallInfo[TResult]": """Call func, wrapping the result in a CallInfo. :param func: The function to call. Called without arguments. :param when: The phase in which the function is called. :param reraise: Exception or exceptions that shall propagate if raised by the function, instead of being wrapped in the CallInfo. """ excinfo = None start = timing.time() precise_start = timing.perf_counter() try: > result: Optional[TResult] = func() /usr/lib/python3/dist-packages/_pytest/runner.py:341: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/dist-packages/_pytest/runner.py:241: in lambda: runtest_hook(item=item, **kwds), when=when, reraise=reraise /usr/lib/python3/dist-packages/pluggy/_hooks.py:513: in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) /usr/lib/python3/dist-packages/pluggy/_manager.py:120: in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) /usr/lib/python3/dist-packages/_pytest/threadexception.py:92: in pytest_runtest_teardown yield from thread_exception_runtest_hook() /usr/lib/python3/dist-packages/_pytest/threadexception.py:63: in thread_exception_runtest_hook yield /usr/lib/python3/dist-packages/_pytest/unraisableexception.py:95: in pytest_runtest_teardown yield from unraisable_exception_runtest_hook() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ def unraisable_exception_runtest_hook() -> Generator[None, None, None]: with catch_unraisable_exception() as cm: try: yield finally: if cm.unraisable: if cm.unraisable.err_msg is not None: err_msg = cm.unraisable.err_msg else: err_msg = "Exception ignored in" msg = f"{err_msg}: {cm.unraisable.object!r}\n\n" msg += "".join( traceback.format_exception( cm.unraisable.exc_type, cm.unraisable.exc_value, cm.unraisable.exc_traceback, ) ) > warnings.warn(pytest.PytestUnraisableExceptionWarning(msg)) E pytest.PytestUnraisableExceptionWarning: Exception ignored in: E E Traceback (most recent call last): E File "/build/reproducible-path/aiorwlock-1.0.0/tests/conftest.py", line 44, in event_loop E gc.collect() E ResourceWarning: unclosed /usr/lib/python3/dist-packages/_pytest/unraisableexception.py:80: PytestUnraisableExceptionWarning ______ ERROR at teardown of test_await_read_lock[debug:false-slow-pyloop] ______ cls = func = . at 0xf610ab18> when = 'teardown' reraise = (, ) @classmethod def from_call( cls, func: Callable[[], TResult], when: Literal["collect", "setup", "call", "teardown"], reraise: Optional[ Union[Type[BaseException], Tuple[Type[BaseException], ...]] ] = None, ) -> "CallInfo[TResult]": """Call func, wrapping the result in a CallInfo. :param func: The function to call. Called without arguments. :param when: The phase in which the function is called. :param reraise: Exception or exceptions that shall propagate if raised by the function, instead of being wrapped in the CallInfo. """ excinfo = None start = timing.time() precise_start = timing.perf_counter() try: > result: Optional[TResult] = func() /usr/lib/python3/dist-packages/_pytest/runner.py:341: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/dist-packages/_pytest/runner.py:241: in lambda: runtest_hook(item=item, **kwds), when=when, reraise=reraise /usr/lib/python3/dist-packages/pluggy/_hooks.py:513: in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) /usr/lib/python3/dist-packages/pluggy/_manager.py:120: in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) /usr/lib/python3/dist-packages/_pytest/threadexception.py:92: in pytest_runtest_teardown yield from thread_exception_runtest_hook() /usr/lib/python3/dist-packages/_pytest/threadexception.py:63: in thread_exception_runtest_hook yield /usr/lib/python3/dist-packages/_pytest/unraisableexception.py:95: in pytest_runtest_teardown yield from unraisable_exception_runtest_hook() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ def unraisable_exception_runtest_hook() -> Generator[None, None, None]: with catch_unraisable_exception() as cm: try: yield finally: if cm.unraisable: if cm.unraisable.err_msg is not None: err_msg = cm.unraisable.err_msg else: err_msg = "Exception ignored in" msg = f"{err_msg}: {cm.unraisable.object!r}\n\n" msg += "".join( traceback.format_exception( cm.unraisable.exc_type, cm.unraisable.exc_value, cm.unraisable.exc_traceback, ) ) > warnings.warn(pytest.PytestUnraisableExceptionWarning(msg)) E pytest.PytestUnraisableExceptionWarning: Exception ignored in: E E Traceback (most recent call last): E File "/build/reproducible-path/aiorwlock-1.0.0/tests/conftest.py", line 44, in event_loop E gc.collect() E ResourceWarning: unclosed /usr/lib/python3/dist-packages/_pytest/unraisableexception.py:80: PytestUnraisableExceptionWarning _____ ERROR at teardown of test_await_write_lock[debug:false-slow-pyloop] ______ cls = func = . at 0xf610a618> when = 'teardown' reraise = (, ) @classmethod def from_call( cls, func: Callable[[], TResult], when: Literal["collect", "setup", "call", "teardown"], reraise: Optional[ Union[Type[BaseException], Tuple[Type[BaseException], ...]] ] = None, ) -> "CallInfo[TResult]": """Call func, wrapping the result in a CallInfo. :param func: The function to call. Called without arguments. :param when: The phase in which the function is called. :param reraise: Exception or exceptions that shall propagate if raised by the function, instead of being wrapped in the CallInfo. """ excinfo = None start = timing.time() precise_start = timing.perf_counter() try: > result: Optional[TResult] = func() /usr/lib/python3/dist-packages/_pytest/runner.py:341: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/dist-packages/_pytest/runner.py:241: in lambda: runtest_hook(item=item, **kwds), when=when, reraise=reraise /usr/lib/python3/dist-packages/pluggy/_hooks.py:513: in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) /usr/lib/python3/dist-packages/pluggy/_manager.py:120: in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) /usr/lib/python3/dist-packages/_pytest/threadexception.py:92: in pytest_runtest_teardown yield from thread_exception_runtest_hook() /usr/lib/python3/dist-packages/_pytest/threadexception.py:63: in thread_exception_runtest_hook yield /usr/lib/python3/dist-packages/_pytest/unraisableexception.py:95: in pytest_runtest_teardown yield from unraisable_exception_runtest_hook() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ def unraisable_exception_runtest_hook() -> Generator[None, None, None]: with catch_unraisable_exception() as cm: try: yield finally: if cm.unraisable: if cm.unraisable.err_msg is not None: err_msg = cm.unraisable.err_msg else: err_msg = "Exception ignored in" msg = f"{err_msg}: {cm.unraisable.object!r}\n\n" msg += "".join( traceback.format_exception( cm.unraisable.exc_type, cm.unraisable.exc_value, cm.unraisable.exc_traceback, ) ) > warnings.warn(pytest.PytestUnraisableExceptionWarning(msg)) E pytest.PytestUnraisableExceptionWarning: Exception ignored in: E E Traceback (most recent call last): E File "/build/reproducible-path/aiorwlock-1.0.0/tests/conftest.py", line 44, in event_loop E gc.collect() E ResourceWarning: unclosed /usr/lib/python3/dist-packages/_pytest/unraisableexception.py:80: PytestUnraisableExceptionWarning ______ ERROR at teardown of test_writer_success_fast[debug:false-uvloop] _______ cls = func = . at 0xf610aed8> when = 'teardown' reraise = (, ) @classmethod def from_call( cls, func: Callable[[], TResult], when: Literal["collect", "setup", "call", "teardown"], reraise: Optional[ Union[Type[BaseException], Tuple[Type[BaseException], ...]] ] = None, ) -> "CallInfo[TResult]": """Call func, wrapping the result in a CallInfo. :param func: The function to call. Called without arguments. :param when: The phase in which the function is called. :param reraise: Exception or exceptions that shall propagate if raised by the function, instead of being wrapped in the CallInfo. """ excinfo = None start = timing.time() precise_start = timing.perf_counter() try: > result: Optional[TResult] = func() /usr/lib/python3/dist-packages/_pytest/runner.py:341: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/dist-packages/_pytest/runner.py:241: in lambda: runtest_hook(item=item, **kwds), when=when, reraise=reraise /usr/lib/python3/dist-packages/pluggy/_hooks.py:513: in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) /usr/lib/python3/dist-packages/pluggy/_manager.py:120: in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) /usr/lib/python3/dist-packages/_pytest/threadexception.py:92: in pytest_runtest_teardown yield from thread_exception_runtest_hook() /usr/lib/python3/dist-packages/_pytest/threadexception.py:63: in thread_exception_runtest_hook yield /usr/lib/python3/dist-packages/_pytest/unraisableexception.py:95: in pytest_runtest_teardown yield from unraisable_exception_runtest_hook() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ def unraisable_exception_runtest_hook() -> Generator[None, None, None]: with catch_unraisable_exception() as cm: try: yield finally: if cm.unraisable: if cm.unraisable.err_msg is not None: err_msg = cm.unraisable.err_msg else: err_msg = "Exception ignored in" msg = f"{err_msg}: {cm.unraisable.object!r}\n\n" msg += "".join( traceback.format_exception( cm.unraisable.exc_type, cm.unraisable.exc_value, cm.unraisable.exc_traceback, ) ) > warnings.warn(pytest.PytestUnraisableExceptionWarning(msg)) E pytest.PytestUnraisableExceptionWarning: Exception ignored in: E E Traceback (most recent call last): E File "/build/reproducible-path/aiorwlock-1.0.0/tests/conftest.py", line 44, in event_loop E gc.collect() E ResourceWarning: unclosed /usr/lib/python3/dist-packages/_pytest/unraisableexception.py:80: PytestUnraisableExceptionWarning ---------------------------- Captured log teardown ----------------------------- ERROR asyncio:conftest.py:44 Task was destroyed but it is pending! task: .task() running at /build/reproducible-path/aiorwlock-1.0.0/tests/test_rwlock.py:30> wait_for=> _ ERROR at teardown of test_writer_success_with_statement[debug:false-uvloop] __ cls = func = . at 0xf60efd98> when = 'teardown' reraise = (, ) @classmethod def from_call( cls, func: Callable[[], TResult], when: Literal["collect", "setup", "call", "teardown"], reraise: Optional[ Union[Type[BaseException], Tuple[Type[BaseException], ...]] ] = None, ) -> "CallInfo[TResult]": """Call func, wrapping the result in a CallInfo. :param func: The function to call. Called without arguments. :param when: The phase in which the function is called. :param reraise: Exception or exceptions that shall propagate if raised by the function, instead of being wrapped in the CallInfo. """ excinfo = None start = timing.time() precise_start = timing.perf_counter() try: > result: Optional[TResult] = func() /usr/lib/python3/dist-packages/_pytest/runner.py:341: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/dist-packages/_pytest/runner.py:241: in lambda: runtest_hook(item=item, **kwds), when=when, reraise=reraise /usr/lib/python3/dist-packages/pluggy/_hooks.py:513: in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) /usr/lib/python3/dist-packages/pluggy/_manager.py:120: in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) /usr/lib/python3/dist-packages/_pytest/threadexception.py:92: in pytest_runtest_teardown yield from thread_exception_runtest_hook() /usr/lib/python3/dist-packages/_pytest/threadexception.py:63: in thread_exception_runtest_hook yield /usr/lib/python3/dist-packages/_pytest/unraisableexception.py:95: in pytest_runtest_teardown yield from unraisable_exception_runtest_hook() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ def unraisable_exception_runtest_hook() -> Generator[None, None, None]: with catch_unraisable_exception() as cm: try: yield finally: if cm.unraisable: if cm.unraisable.err_msg is not None: err_msg = cm.unraisable.err_msg else: err_msg = "Exception ignored in" msg = f"{err_msg}: {cm.unraisable.object!r}\n\n" msg += "".join( traceback.format_exception( cm.unraisable.exc_type, cm.unraisable.exc_value, cm.unraisable.exc_traceback, ) ) > warnings.warn(pytest.PytestUnraisableExceptionWarning(msg)) E pytest.PytestUnraisableExceptionWarning: Exception ignored in: E E Traceback (most recent call last): E File "/build/reproducible-path/aiorwlock-1.0.0/tests/conftest.py", line 44, in event_loop E gc.collect() E ResourceWarning: unclosed /usr/lib/python3/dist-packages/_pytest/unraisableexception.py:80: PytestUnraisableExceptionWarning __________ ERROR at teardown of test_current_task[debug:false-uvloop] __________ cls = func = . at 0xf60efc08> when = 'teardown' reraise = (, ) @classmethod def from_call( cls, func: Callable[[], TResult], when: Literal["collect", "setup", "call", "teardown"], reraise: Optional[ Union[Type[BaseException], Tuple[Type[BaseException], ...]] ] = None, ) -> "CallInfo[TResult]": """Call func, wrapping the result in a CallInfo. :param func: The function to call. Called without arguments. :param when: The phase in which the function is called. :param reraise: Exception or exceptions that shall propagate if raised by the function, instead of being wrapped in the CallInfo. """ excinfo = None start = timing.time() precise_start = timing.perf_counter() try: > result: Optional[TResult] = func() /usr/lib/python3/dist-packages/_pytest/runner.py:341: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/dist-packages/_pytest/runner.py:241: in lambda: runtest_hook(item=item, **kwds), when=when, reraise=reraise /usr/lib/python3/dist-packages/pluggy/_hooks.py:513: in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) /usr/lib/python3/dist-packages/pluggy/_manager.py:120: in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) /usr/lib/python3/dist-packages/_pytest/threadexception.py:92: in pytest_runtest_teardown yield from thread_exception_runtest_hook() /usr/lib/python3/dist-packages/_pytest/threadexception.py:63: in thread_exception_runtest_hook yield /usr/lib/python3/dist-packages/_pytest/unraisableexception.py:95: in pytest_runtest_teardown yield from unraisable_exception_runtest_hook() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ def unraisable_exception_runtest_hook() -> Generator[None, None, None]: with catch_unraisable_exception() as cm: try: yield finally: if cm.unraisable: if cm.unraisable.err_msg is not None: err_msg = cm.unraisable.err_msg else: err_msg = "Exception ignored in" msg = f"{err_msg}: {cm.unraisable.object!r}\n\n" msg += "".join( traceback.format_exception( cm.unraisable.exc_type, cm.unraisable.exc_value, cm.unraisable.exc_traceback, ) ) > warnings.warn(pytest.PytestUnraisableExceptionWarning(msg)) E pytest.PytestUnraisableExceptionWarning: Exception ignored in: E E Traceback (most recent call last): E File "/build/reproducible-path/aiorwlock-1.0.0/tests/conftest.py", line 44, in event_loop E gc.collect() E ResourceWarning: unclosed /usr/lib/python3/dist-packages/_pytest/unraisableexception.py:80: PytestUnraisableExceptionWarning ---------------------------- Captured log teardown ----------------------------- ERROR asyncio:conftest.py:44 Task was destroyed but it is pending! task: .task() running at /build/reproducible-path/aiorwlock-1.0.0/tests/test_rwlock.py:30> wait_for=> ______ ERROR at teardown of test_writer_success_fast[debug:false-pyloop] _______ cls = func = . at 0xf610aed8> when = 'teardown' reraise = (, ) @classmethod def from_call( cls, func: Callable[[], TResult], when: Literal["collect", "setup", "call", "teardown"], reraise: Optional[ Union[Type[BaseException], Tuple[Type[BaseException], ...]] ] = None, ) -> "CallInfo[TResult]": """Call func, wrapping the result in a CallInfo. :param func: The function to call. Called without arguments. :param when: The phase in which the function is called. :param reraise: Exception or exceptions that shall propagate if raised by the function, instead of being wrapped in the CallInfo. """ excinfo = None start = timing.time() precise_start = timing.perf_counter() try: > result: Optional[TResult] = func() /usr/lib/python3/dist-packages/_pytest/runner.py:341: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/dist-packages/_pytest/runner.py:241: in lambda: runtest_hook(item=item, **kwds), when=when, reraise=reraise /usr/lib/python3/dist-packages/pluggy/_hooks.py:513: in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) /usr/lib/python3/dist-packages/pluggy/_manager.py:120: in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) /usr/lib/python3/dist-packages/_pytest/threadexception.py:92: in pytest_runtest_teardown yield from thread_exception_runtest_hook() /usr/lib/python3/dist-packages/_pytest/threadexception.py:63: in thread_exception_runtest_hook yield /usr/lib/python3/dist-packages/_pytest/unraisableexception.py:95: in pytest_runtest_teardown yield from unraisable_exception_runtest_hook() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ def unraisable_exception_runtest_hook() -> Generator[None, None, None]: with catch_unraisable_exception() as cm: try: yield finally: if cm.unraisable: if cm.unraisable.err_msg is not None: err_msg = cm.unraisable.err_msg else: err_msg = "Exception ignored in" msg = f"{err_msg}: {cm.unraisable.object!r}\n\n" msg += "".join( traceback.format_exception( cm.unraisable.exc_type, cm.unraisable.exc_value, cm.unraisable.exc_traceback, ) ) > warnings.warn(pytest.PytestUnraisableExceptionWarning(msg)) E pytest.PytestUnraisableExceptionWarning: Exception ignored in: E E Traceback (most recent call last): E File "/build/reproducible-path/aiorwlock-1.0.0/tests/conftest.py", line 44, in event_loop E gc.collect() E ResourceWarning: unclosed /usr/lib/python3/dist-packages/_pytest/unraisableexception.py:80: PytestUnraisableExceptionWarning ---------------------------- Captured log teardown ----------------------------- ERROR asyncio:base_events.py:1785 Task was destroyed but it is pending! task: .task() running at /build/reproducible-path/aiorwlock-1.0.0/tests/test_rwlock.py:30> wait_for=> _ ERROR at teardown of test_writer_success_with_statement[debug:false-pyloop] __ cls = func = . at 0xf6102488> when = 'teardown' reraise = (, ) @classmethod def from_call( cls, func: Callable[[], TResult], when: Literal["collect", "setup", "call", "teardown"], reraise: Optional[ Union[Type[BaseException], Tuple[Type[BaseException], ...]] ] = None, ) -> "CallInfo[TResult]": """Call func, wrapping the result in a CallInfo. :param func: The function to call. Called without arguments. :param when: The phase in which the function is called. :param reraise: Exception or exceptions that shall propagate if raised by the function, instead of being wrapped in the CallInfo. """ excinfo = None start = timing.time() precise_start = timing.perf_counter() try: > result: Optional[TResult] = func() /usr/lib/python3/dist-packages/_pytest/runner.py:341: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/dist-packages/_pytest/runner.py:241: in lambda: runtest_hook(item=item, **kwds), when=when, reraise=reraise /usr/lib/python3/dist-packages/pluggy/_hooks.py:513: in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) /usr/lib/python3/dist-packages/pluggy/_manager.py:120: in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) /usr/lib/python3/dist-packages/_pytest/threadexception.py:92: in pytest_runtest_teardown yield from thread_exception_runtest_hook() /usr/lib/python3/dist-packages/_pytest/threadexception.py:63: in thread_exception_runtest_hook yield /usr/lib/python3/dist-packages/_pytest/unraisableexception.py:95: in pytest_runtest_teardown yield from unraisable_exception_runtest_hook() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ def unraisable_exception_runtest_hook() -> Generator[None, None, None]: with catch_unraisable_exception() as cm: try: yield finally: if cm.unraisable: if cm.unraisable.err_msg is not None: err_msg = cm.unraisable.err_msg else: err_msg = "Exception ignored in" msg = f"{err_msg}: {cm.unraisable.object!r}\n\n" msg += "".join( traceback.format_exception( cm.unraisable.exc_type, cm.unraisable.exc_value, cm.unraisable.exc_traceback, ) ) > warnings.warn(pytest.PytestUnraisableExceptionWarning(msg)) E pytest.PytestUnraisableExceptionWarning: Exception ignored in: E E Traceback (most recent call last): E File "/build/reproducible-path/aiorwlock-1.0.0/tests/conftest.py", line 44, in event_loop E gc.collect() E ResourceWarning: unclosed /usr/lib/python3/dist-packages/_pytest/unraisableexception.py:80: PytestUnraisableExceptionWarning __________ ERROR at teardown of test_current_task[debug:false-pyloop] __________ cls = func = . at 0xf610aed8> when = 'teardown' reraise = (, ) @classmethod def from_call( cls, func: Callable[[], TResult], when: Literal["collect", "setup", "call", "teardown"], reraise: Optional[ Union[Type[BaseException], Tuple[Type[BaseException], ...]] ] = None, ) -> "CallInfo[TResult]": """Call func, wrapping the result in a CallInfo. :param func: The function to call. Called without arguments. :param when: The phase in which the function is called. :param reraise: Exception or exceptions that shall propagate if raised by the function, instead of being wrapped in the CallInfo. """ excinfo = None start = timing.time() precise_start = timing.perf_counter() try: > result: Optional[TResult] = func() /usr/lib/python3/dist-packages/_pytest/runner.py:341: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/dist-packages/_pytest/runner.py:241: in lambda: runtest_hook(item=item, **kwds), when=when, reraise=reraise /usr/lib/python3/dist-packages/pluggy/_hooks.py:513: in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) /usr/lib/python3/dist-packages/pluggy/_manager.py:120: in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) /usr/lib/python3/dist-packages/_pytest/threadexception.py:92: in pytest_runtest_teardown yield from thread_exception_runtest_hook() /usr/lib/python3/dist-packages/_pytest/threadexception.py:63: in thread_exception_runtest_hook yield /usr/lib/python3/dist-packages/_pytest/unraisableexception.py:95: in pytest_runtest_teardown yield from unraisable_exception_runtest_hook() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ def unraisable_exception_runtest_hook() -> Generator[None, None, None]: with catch_unraisable_exception() as cm: try: yield finally: if cm.unraisable: if cm.unraisable.err_msg is not None: err_msg = cm.unraisable.err_msg else: err_msg = "Exception ignored in" msg = f"{err_msg}: {cm.unraisable.object!r}\n\n" msg += "".join( traceback.format_exception( cm.unraisable.exc_type, cm.unraisable.exc_value, cm.unraisable.exc_traceback, ) ) > warnings.warn(pytest.PytestUnraisableExceptionWarning(msg)) E pytest.PytestUnraisableExceptionWarning: Exception ignored in: E E Traceback (most recent call last): E File "/build/reproducible-path/aiorwlock-1.0.0/tests/conftest.py", line 44, in event_loop E gc.collect() E ResourceWarning: unclosed /usr/lib/python3/dist-packages/_pytest/unraisableexception.py:80: PytestUnraisableExceptionWarning ---------------------------- Captured log teardown ----------------------------- ERROR asyncio:base_events.py:1785 Task was destroyed but it is pending! task: .task() running at /build/reproducible-path/aiorwlock-1.0.0/tests/test_rwlock.py:30> wait_for=> =================================== FAILURES =================================== _________________ test_get_write_then_read[debug:true-pyloop] __________________ loop = <_UnixSelectorEventLoop running=False closed=False debug=True> @pytest.mark.asyncio async def test_get_write_then_read(loop): rwlock = RWLock() rl = rwlock.reader wl = rwlock.writer > async with wl: ../../../tests/test_corner_cases.py:32: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ aiorwlock/__init__.py:190: in __aenter__ await self.acquire() aiorwlock/__init__.py:234: in acquire await self._lock.acquire_write() aiorwlock/__init__.py:116: in acquire_write await self._yield_after_acquire(self._WL) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = , lock_type = 2 async def _yield_after_acquire(self, lock_type: int) -> None: if self._do_yield: try: > await asyncio.sleep(0.0, loop=self._loop) E TypeError: sleep() got an unexpected keyword argument 'loop' aiorwlock/__init__.py:58: TypeError _________ test_get_write_then_read_and_write_again[debug:true-pyloop] __________ loop = <_UnixSelectorEventLoop running=False closed=False debug=True> @pytest.mark.asyncio async def test_get_write_then_read_and_write_again(loop): rwlock = RWLock() rl = rwlock.reader wl = rwlock.writer f = loop.create_future() writes = [] async def get_write_lock(): await f with should_fail(0.1, loop): async with wl: assert wl.locked writes.append('should not be here') ensure_future(get_write_lock()) > async with wl: ../../../tests/test_corner_cases.py:59: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ aiorwlock/__init__.py:190: in __aenter__ await self.acquire() aiorwlock/__init__.py:234: in acquire await self._lock.acquire_write() aiorwlock/__init__.py:116: in acquire_write await self._yield_after_acquire(self._WL) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = , lock_type = 2 async def _yield_after_acquire(self, lock_type: int) -> None: if self._do_yield: try: > await asyncio.sleep(0.0, loop=self._loop) E TypeError: sleep() got an unexpected keyword argument 'loop' aiorwlock/__init__.py:58: TypeError ___________________ test_writers_deadlock[debug:true-pyloop] ___________________ loop = <_UnixSelectorEventLoop running=False closed=False debug=True> @pytest.mark.asyncio async def test_writers_deadlock(loop): rwlock = RWLock() rl = rwlock.reader wl = rwlock.writer # Scenario: # - task A (this) acquires read lock # - task B,C wait for write lock # # A releases the lock and, in the same loop interation, # task B gets cancelled (eg: by timeout); # B gets cancelled without waking up next waiter -- deadlock; # # See asyncio.Lock deadlock issue: # https://github.com/python/cpython/pull/1031 async def coro(): async with wl: assert wl.locked await asyncio.sleep(0.2, loop) > async with rl: ../../../tests/test_corner_cases.py:92: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ aiorwlock/__init__.py:190: in __aenter__ await self.acquire() aiorwlock/__init__.py:215: in acquire await self._lock.acquire_read() aiorwlock/__init__.py:81: in acquire_read await self._yield_after_acquire(self._RL) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = , lock_type = 1 async def _yield_after_acquire(self, lock_type: int) -> None: if self._do_yield: try: > await asyncio.sleep(0.0, loop=self._loop) E TypeError: sleep() got an unexpected keyword argument 'loop' aiorwlock/__init__.py:58: TypeError ---------------------------- Captured log teardown ----------------------------- ERROR asyncio:base_events.py:1785 Task was destroyed but it is pending! source_traceback: Object created at (most recent call last): File "", line 198, in _run_module_as_main File "", line 88, in _run_code File "/usr/lib/python3/dist-packages/pytest/__main__.py", line 7, in raise SystemExit(pytest.console_main()) File "/usr/lib/python3/dist-packages/_pytest/config/__init__.py", line 206, in console_main code = main() File "/usr/lib/python3/dist-packages/_pytest/config/__init__.py", line 178, in main ret: Union[ExitCode, int] = config.hook.pytest_cmdline_main( File "/usr/lib/python3/dist-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3/dist-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3/dist-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3/dist-packages/_pytest/main.py", line 332, in pytest_cmdline_main return wrap_session(config, _main) File "/usr/lib/python3/dist-packages/_pytest/main.py", line 285, in wrap_session session.exitstatus = doit(config, session) or 0 File "/usr/lib/python3/dist-packages/_pytest/main.py", line 339, in _main config.hook.pytest_runtestloop(session=session) File "/usr/lib/python3/dist-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3/dist-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3/dist-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3/dist-packages/_pytest/main.py", line 364, in pytest_runtestloop item.config.hook.pytest_runtest_protocol(item=item, nextitem=nextitem) File "/usr/lib/python3/dist-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3/dist-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3/dist-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3/dist-packages/_pytest/runner.py", line 116, in pytest_runtest_protocol runtestprotocol(item, nextitem=nextitem) File "/usr/lib/python3/dist-packages/_pytest/runner.py", line 135, in runtestprotocol reports.append(call_and_report(item, "call", log)) File "/usr/lib/python3/dist-packages/_pytest/runner.py", line 240, in call_and_report call = CallInfo.from_call( File "/usr/lib/python3/dist-packages/_pytest/runner.py", line 341, in from_call result: Optional[TResult] = func() File "/usr/lib/python3/dist-packages/_pytest/runner.py", line 241, in lambda: runtest_hook(item=item, **kwds), when=when, reraise=reraise File "/usr/lib/python3/dist-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3/dist-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3/dist-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3/dist-packages/_pytest/runner.py", line 173, in pytest_runtest_call item.runtest() File "/usr/lib/python3/dist-packages/_pytest/python.py", line 1632, in runtest self.ihook.pytest_pyfunc_call(pyfuncitem=self) File "/usr/lib/python3/dist-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3/dist-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3/dist-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3/dist-packages/_pytest/python.py", line 162, in pytest_pyfunc_call result = testfunction(**testargs) File "/usr/lib/python3/dist-packages/pytest_asyncio/plugin.py", line 478, in inner _loop.run_until_complete(task) File "/usr/lib/python3.11/asyncio/base_events.py", line 641, in run_until_complete self.run_forever() File "/usr/lib/python3.11/asyncio/base_events.py", line 608, in run_forever self._run_once() File "/usr/lib/python3.11/asyncio/base_events.py", line 1928, in _run_once handle._run() File "/usr/lib/python3.11/asyncio/events.py", line 84, in _run self._context.run(self._callback, *self._args) File "/build/reproducible-path/aiorwlock-1.0.0/tests/test_corner_cases.py", line 57, in test_get_write_then_read_and_write_again ensure_future(get_write_lock()) File "/usr/lib/python3.11/asyncio/tasks.py", line 659, in ensure_future return _ensure_future(coro_or_future, loop=loop) File "/usr/lib/python3.11/asyncio/tasks.py", line 680, in _ensure_future return loop.create_task(coro_or_future) task: .get_write_lock() running at /build/reproducible-path/aiorwlock-1.0.0/tests/test_corner_cases.py:51> wait_for= created at /usr/lib/python3.11/asyncio/tasks.py:680> ____________________ test_readers_cancel[debug:true-pyloop] ____________________ loop = <_UnixSelectorEventLoop running=False closed=False debug=True> @pytest.mark.asyncio async def test_readers_cancel(loop): rwlock = RWLock() rl = rwlock.reader wl = rwlock.writer async def coro(lock): async with lock: assert lock.locked await asyncio.sleep(0.2, loop) > async with wl: ../../../tests/test_corner_cases.py:119: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ aiorwlock/__init__.py:190: in __aenter__ await self.acquire() aiorwlock/__init__.py:234: in acquire await self._lock.acquire_write() aiorwlock/__init__.py:116: in acquire_write await self._yield_after_acquire(self._WL) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = , lock_type = 2 async def _yield_after_acquire(self, lock_type: int) -> None: if self._do_yield: try: > await asyncio.sleep(0.0, loop=self._loop) E TypeError: sleep() got an unexpected keyword argument 'loop' aiorwlock/__init__.py:58: TypeError _______________ test_canceled_inside_acquire[debug:true-pyloop] ________________ loop = <_UnixSelectorEventLoop running=False closed=False debug=True> @pytest.mark.asyncio async def test_canceled_inside_acquire(loop): rwlock = RWLock() rl = rwlock.reader async def coro(lock): async with lock: pass task = ensure_future(coro(rl)) await asyncio.sleep(0) task.cancel() try: > await task ../../../tests/test_corner_cases.py:148: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../../../tests/test_corner_cases.py:140: in coro async with lock: aiorwlock/__init__.py:190: in __aenter__ await self.acquire() aiorwlock/__init__.py:215: in acquire await self._lock.acquire_read() aiorwlock/__init__.py:81: in acquire_read await self._yield_after_acquire(self._RL) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = , lock_type = 1 async def _yield_after_acquire(self, lock_type: int) -> None: if self._do_yield: try: > await asyncio.sleep(0.0, loop=self._loop) E TypeError: sleep() got an unexpected keyword argument 'loop' aiorwlock/__init__.py:58: TypeError _________________ test_get_write_then_read[debug:true-uvloop] __________________ loop = @pytest.mark.asyncio async def test_get_write_then_read(loop): rwlock = RWLock() rl = rwlock.reader wl = rwlock.writer > async with wl: ../../../tests/test_corner_cases.py:32: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ aiorwlock/__init__.py:190: in __aenter__ await self.acquire() aiorwlock/__init__.py:234: in acquire await self._lock.acquire_write() aiorwlock/__init__.py:116: in acquire_write await self._yield_after_acquire(self._WL) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = , lock_type = 2 async def _yield_after_acquire(self, lock_type: int) -> None: if self._do_yield: try: > await asyncio.sleep(0.0, loop=self._loop) E TypeError: sleep() got an unexpected keyword argument 'loop' aiorwlock/__init__.py:58: TypeError _________ test_get_write_then_read_and_write_again[debug:true-uvloop] __________ loop = @pytest.mark.asyncio async def test_get_write_then_read_and_write_again(loop): rwlock = RWLock() rl = rwlock.reader wl = rwlock.writer f = loop.create_future() writes = [] async def get_write_lock(): await f with should_fail(0.1, loop): async with wl: assert wl.locked writes.append('should not be here') ensure_future(get_write_lock()) > async with wl: ../../../tests/test_corner_cases.py:59: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ aiorwlock/__init__.py:190: in __aenter__ await self.acquire() aiorwlock/__init__.py:234: in acquire await self._lock.acquire_write() aiorwlock/__init__.py:116: in acquire_write await self._yield_after_acquire(self._WL) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = , lock_type = 2 async def _yield_after_acquire(self, lock_type: int) -> None: if self._do_yield: try: > await asyncio.sleep(0.0, loop=self._loop) E TypeError: sleep() got an unexpected keyword argument 'loop' aiorwlock/__init__.py:58: TypeError ___________________ test_writers_deadlock[debug:true-uvloop] ___________________ loop = @pytest.mark.asyncio async def test_writers_deadlock(loop): rwlock = RWLock() rl = rwlock.reader wl = rwlock.writer # Scenario: # - task A (this) acquires read lock # - task B,C wait for write lock # # A releases the lock and, in the same loop interation, # task B gets cancelled (eg: by timeout); # B gets cancelled without waking up next waiter -- deadlock; # # See asyncio.Lock deadlock issue: # https://github.com/python/cpython/pull/1031 async def coro(): async with wl: assert wl.locked await asyncio.sleep(0.2, loop) > async with rl: ../../../tests/test_corner_cases.py:92: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ aiorwlock/__init__.py:190: in __aenter__ await self.acquire() aiorwlock/__init__.py:215: in acquire await self._lock.acquire_read() aiorwlock/__init__.py:81: in acquire_read await self._yield_after_acquire(self._RL) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = , lock_type = 1 async def _yield_after_acquire(self, lock_type: int) -> None: if self._do_yield: try: > await asyncio.sleep(0.0, loop=self._loop) E TypeError: sleep() got an unexpected keyword argument 'loop' aiorwlock/__init__.py:58: TypeError ---------------------------- Captured log teardown ----------------------------- ERROR asyncio:conftest.py:44 Task was destroyed but it is pending! source_traceback: Object created at (most recent call last): File "", line 198, in _run_module_as_main File "", line 88, in _run_code File "/usr/lib/python3/dist-packages/pytest/__main__.py", line 7, in raise SystemExit(pytest.console_main()) File "/usr/lib/python3/dist-packages/_pytest/config/__init__.py", line 206, in console_main code = main() File "/usr/lib/python3/dist-packages/_pytest/config/__init__.py", line 178, in main ret: Union[ExitCode, int] = config.hook.pytest_cmdline_main( File "/usr/lib/python3/dist-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3/dist-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3/dist-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3/dist-packages/_pytest/main.py", line 332, in pytest_cmdline_main return wrap_session(config, _main) File "/usr/lib/python3/dist-packages/_pytest/main.py", line 285, in wrap_session session.exitstatus = doit(config, session) or 0 File "/usr/lib/python3/dist-packages/_pytest/main.py", line 339, in _main config.hook.pytest_runtestloop(session=session) File "/usr/lib/python3/dist-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3/dist-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3/dist-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3/dist-packages/_pytest/main.py", line 364, in pytest_runtestloop item.config.hook.pytest_runtest_protocol(item=item, nextitem=nextitem) File "/usr/lib/python3/dist-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3/dist-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3/dist-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3/dist-packages/_pytest/runner.py", line 116, in pytest_runtest_protocol runtestprotocol(item, nextitem=nextitem) File "/usr/lib/python3/dist-packages/_pytest/runner.py", line 135, in runtestprotocol reports.append(call_and_report(item, "call", log)) File "/usr/lib/python3/dist-packages/_pytest/runner.py", line 240, in call_and_report call = CallInfo.from_call( File "/usr/lib/python3/dist-packages/_pytest/runner.py", line 341, in from_call result: Optional[TResult] = func() File "/usr/lib/python3/dist-packages/_pytest/runner.py", line 241, in lambda: runtest_hook(item=item, **kwds), when=when, reraise=reraise File "/usr/lib/python3/dist-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3/dist-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3/dist-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3/dist-packages/_pytest/runner.py", line 173, in pytest_runtest_call item.runtest() File "/usr/lib/python3/dist-packages/_pytest/python.py", line 1632, in runtest self.ihook.pytest_pyfunc_call(pyfuncitem=self) File "/usr/lib/python3/dist-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3/dist-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3/dist-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3/dist-packages/_pytest/python.py", line 162, in pytest_pyfunc_call result = testfunction(**testargs) File "/usr/lib/python3/dist-packages/pytest_asyncio/plugin.py", line 478, in inner _loop.run_until_complete(task) File "/build/reproducible-path/aiorwlock-1.0.0/tests/test_corner_cases.py", line 57, in test_get_write_then_read_and_write_again ensure_future(get_write_lock()) File "/usr/lib/python3.11/asyncio/tasks.py", line 659, in ensure_future return _ensure_future(coro_or_future, loop=loop) File "/usr/lib/python3.11/asyncio/tasks.py", line 680, in _ensure_future return loop.create_task(coro_or_future) task: .get_write_lock() running at /build/reproducible-path/aiorwlock-1.0.0/tests/test_corner_cases.py:51> wait_for= created at /usr/lib/python3.11/asyncio/tasks.py:680> ____________________ test_readers_cancel[debug:true-uvloop] ____________________ loop = @pytest.mark.asyncio async def test_readers_cancel(loop): rwlock = RWLock() rl = rwlock.reader wl = rwlock.writer async def coro(lock): async with lock: assert lock.locked await asyncio.sleep(0.2, loop) > async with wl: ../../../tests/test_corner_cases.py:119: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ aiorwlock/__init__.py:190: in __aenter__ await self.acquire() aiorwlock/__init__.py:234: in acquire await self._lock.acquire_write() aiorwlock/__init__.py:116: in acquire_write await self._yield_after_acquire(self._WL) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = , lock_type = 2 async def _yield_after_acquire(self, lock_type: int) -> None: if self._do_yield: try: > await asyncio.sleep(0.0, loop=self._loop) E TypeError: sleep() got an unexpected keyword argument 'loop' aiorwlock/__init__.py:58: TypeError _______________ test_canceled_inside_acquire[debug:true-uvloop] ________________ loop = @pytest.mark.asyncio async def test_canceled_inside_acquire(loop): rwlock = RWLock() rl = rwlock.reader async def coro(lock): async with lock: pass task = ensure_future(coro(rl)) await asyncio.sleep(0) task.cancel() try: > await task ../../../tests/test_corner_cases.py:148: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../../../tests/test_corner_cases.py:140: in coro async with lock: aiorwlock/__init__.py:190: in __aenter__ await self.acquire() aiorwlock/__init__.py:215: in acquire await self._lock.acquire_read() aiorwlock/__init__.py:81: in acquire_read await self._yield_after_acquire(self._RL) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = , lock_type = 1 async def _yield_after_acquire(self, lock_type: int) -> None: if self._do_yield: try: > await asyncio.sleep(0.0, loop=self._loop) E TypeError: sleep() got an unexpected keyword argument 'loop' aiorwlock/__init__.py:58: TypeError _________________________ test_repr[debug:true-pyloop] _________________________ loop = <_UnixSelectorEventLoop running=False closed=False debug=True> @pytest.mark.asyncio async def test_repr(loop): rwlock = RWLock() assert 'RWLock' in rwlock.__repr__() assert 'WriterLock: [unlocked' in rwlock.__repr__() assert 'ReaderLock: [unlocked' in rwlock.__repr__() # reader lock __repr__ > await rwlock.reader_lock.acquire() ../../../tests/test_rwlock.py:101: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ aiorwlock/__init__.py:215: in acquire await self._lock.acquire_read() aiorwlock/__init__.py:81: in acquire_read await self._yield_after_acquire(self._RL) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = , lock_type = 1 async def _yield_after_acquire(self, lock_type: int) -> None: if self._do_yield: try: > await asyncio.sleep(0.0, loop=self._loop) E TypeError: sleep() got an unexpected keyword argument 'loop' aiorwlock/__init__.py:58: TypeError __________________ test_many_readers[debug:true-fast-uvloop] ___________________ cls = func = . at 0xf6753e88>, when = 'call' reraise = (, ) @classmethod def from_call( cls, func: Callable[[], TResult], when: Literal["collect", "setup", "call", "teardown"], reraise: Optional[ Union[Type[BaseException], Tuple[Type[BaseException], ...]] ] = None, ) -> "CallInfo[TResult]": """Call func, wrapping the result in a CallInfo. :param func: The function to call. Called without arguments. :param when: The phase in which the function is called. :param reraise: Exception or exceptions that shall propagate if raised by the function, instead of being wrapped in the CallInfo. """ excinfo = None start = timing.time() precise_start = timing.perf_counter() try: > result: Optional[TResult] = func() /usr/lib/python3/dist-packages/_pytest/runner.py:341: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/dist-packages/_pytest/runner.py:241: in lambda: runtest_hook(item=item, **kwds), when=when, reraise=reraise /usr/lib/python3/dist-packages/pluggy/_hooks.py:513: in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) /usr/lib/python3/dist-packages/pluggy/_manager.py:120: in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) /usr/lib/python3/dist-packages/_pytest/threadexception.py:87: in pytest_runtest_call yield from thread_exception_runtest_hook() /usr/lib/python3/dist-packages/_pytest/threadexception.py:63: in thread_exception_runtest_hook yield /usr/lib/python3/dist-packages/_pytest/unraisableexception.py:90: in pytest_runtest_call yield from unraisable_exception_runtest_hook() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ def unraisable_exception_runtest_hook() -> Generator[None, None, None]: with catch_unraisable_exception() as cm: try: yield finally: if cm.unraisable: if cm.unraisable.err_msg is not None: err_msg = cm.unraisable.err_msg else: err_msg = "Exception ignored in" msg = f"{err_msg}: {cm.unraisable.object!r}\n\n" msg += "".join( traceback.format_exception( cm.unraisable.exc_type, cm.unraisable.exc_value, cm.unraisable.exc_traceback, ) ) > warnings.warn(pytest.PytestUnraisableExceptionWarning(msg)) E pytest.PytestUnraisableExceptionWarning: Exception ignored in: E E Traceback (most recent call last): E File "/usr/lib/python3.11/traceback.py", line 425, in _extract_from_extended_frame_gen E result.append(FrameSummary( E ^^^^^^^^^^^^^ E ResourceWarning: unclosed /usr/lib/python3/dist-packages/_pytest/unraisableexception.py:80: PytestUnraisableExceptionWarning ________________ test_reader_recursion[debug:true-fast-uvloop] _________________ cls = func = . at 0xf6649348>, when = 'call' reraise = (, ) @classmethod def from_call( cls, func: Callable[[], TResult], when: Literal["collect", "setup", "call", "teardown"], reraise: Optional[ Union[Type[BaseException], Tuple[Type[BaseException], ...]] ] = None, ) -> "CallInfo[TResult]": """Call func, wrapping the result in a CallInfo. :param func: The function to call. Called without arguments. :param when: The phase in which the function is called. :param reraise: Exception or exceptions that shall propagate if raised by the function, instead of being wrapped in the CallInfo. """ excinfo = None start = timing.time() precise_start = timing.perf_counter() try: > result: Optional[TResult] = func() /usr/lib/python3/dist-packages/_pytest/runner.py:341: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/dist-packages/_pytest/runner.py:241: in lambda: runtest_hook(item=item, **kwds), when=when, reraise=reraise /usr/lib/python3/dist-packages/pluggy/_hooks.py:513: in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) /usr/lib/python3/dist-packages/pluggy/_manager.py:120: in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) /usr/lib/python3/dist-packages/_pytest/threadexception.py:87: in pytest_runtest_call yield from thread_exception_runtest_hook() /usr/lib/python3/dist-packages/_pytest/threadexception.py:63: in thread_exception_runtest_hook yield /usr/lib/python3/dist-packages/_pytest/unraisableexception.py:90: in pytest_runtest_call yield from unraisable_exception_runtest_hook() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ def unraisable_exception_runtest_hook() -> Generator[None, None, None]: with catch_unraisable_exception() as cm: try: yield finally: if cm.unraisable: if cm.unraisable.err_msg is not None: err_msg = cm.unraisable.err_msg else: err_msg = "Exception ignored in" msg = f"{err_msg}: {cm.unraisable.object!r}\n\n" msg += "".join( traceback.format_exception( cm.unraisable.exc_type, cm.unraisable.exc_value, cm.unraisable.exc_traceback, ) ) > warnings.warn(pytest.PytestUnraisableExceptionWarning(msg)) E pytest.PytestUnraisableExceptionWarning: Exception ignored in: E E Traceback (most recent call last): E File "/usr/lib/python3.11/traceback.py", line 425, in _extract_from_extended_frame_gen E result.append(FrameSummary( E ^^^^^^^^^^^^^ E ResourceWarning: unclosed /usr/lib/python3/dist-packages/_pytest/unraisableexception.py:80: PytestUnraisableExceptionWarning ________________ test_writer_recursion[debug:true-fast-uvloop] _________________ cls = func = . at 0xf6753e88>, when = 'call' reraise = (, ) @classmethod def from_call( cls, func: Callable[[], TResult], when: Literal["collect", "setup", "call", "teardown"], reraise: Optional[ Union[Type[BaseException], Tuple[Type[BaseException], ...]] ] = None, ) -> "CallInfo[TResult]": """Call func, wrapping the result in a CallInfo. :param func: The function to call. Called without arguments. :param when: The phase in which the function is called. :param reraise: Exception or exceptions that shall propagate if raised by the function, instead of being wrapped in the CallInfo. """ excinfo = None start = timing.time() precise_start = timing.perf_counter() try: > result: Optional[TResult] = func() /usr/lib/python3/dist-packages/_pytest/runner.py:341: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/dist-packages/_pytest/runner.py:241: in lambda: runtest_hook(item=item, **kwds), when=when, reraise=reraise /usr/lib/python3/dist-packages/pluggy/_hooks.py:513: in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) /usr/lib/python3/dist-packages/pluggy/_manager.py:120: in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) /usr/lib/python3/dist-packages/_pytest/threadexception.py:87: in pytest_runtest_call yield from thread_exception_runtest_hook() /usr/lib/python3/dist-packages/_pytest/threadexception.py:63: in thread_exception_runtest_hook yield /usr/lib/python3/dist-packages/_pytest/unraisableexception.py:90: in pytest_runtest_call yield from unraisable_exception_runtest_hook() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ def unraisable_exception_runtest_hook() -> Generator[None, None, None]: with catch_unraisable_exception() as cm: try: yield finally: if cm.unraisable: if cm.unraisable.err_msg is not None: err_msg = cm.unraisable.err_msg else: err_msg = "Exception ignored in" msg = f"{err_msg}: {cm.unraisable.object!r}\n\n" msg += "".join( traceback.format_exception( cm.unraisable.exc_type, cm.unraisable.exc_value, cm.unraisable.exc_traceback, ) ) > warnings.warn(pytest.PytestUnraisableExceptionWarning(msg)) E pytest.PytestUnraisableExceptionWarning: Exception ignored in: E E Traceback (most recent call last): E File "/usr/lib/python3.11/traceback.py", line 425, in _extract_from_extended_frame_gen E result.append(FrameSummary( E ^^^^^^^^^^^^^ E ResourceWarning: unclosed /usr/lib/python3/dist-packages/_pytest/unraisableexception.py:80: PytestUnraisableExceptionWarning __________ test_writer_then_reader_recursion[debug:true-fast-uvloop] ___________ cls = func = . at 0xf663b938>, when = 'call' reraise = (, ) @classmethod def from_call( cls, func: Callable[[], TResult], when: Literal["collect", "setup", "call", "teardown"], reraise: Optional[ Union[Type[BaseException], Tuple[Type[BaseException], ...]] ] = None, ) -> "CallInfo[TResult]": """Call func, wrapping the result in a CallInfo. :param func: The function to call. Called without arguments. :param when: The phase in which the function is called. :param reraise: Exception or exceptions that shall propagate if raised by the function, instead of being wrapped in the CallInfo. """ excinfo = None start = timing.time() precise_start = timing.perf_counter() try: > result: Optional[TResult] = func() /usr/lib/python3/dist-packages/_pytest/runner.py:341: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/dist-packages/_pytest/runner.py:241: in lambda: runtest_hook(item=item, **kwds), when=when, reraise=reraise /usr/lib/python3/dist-packages/pluggy/_hooks.py:513: in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) /usr/lib/python3/dist-packages/pluggy/_manager.py:120: in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) /usr/lib/python3/dist-packages/_pytest/threadexception.py:87: in pytest_runtest_call yield from thread_exception_runtest_hook() /usr/lib/python3/dist-packages/_pytest/threadexception.py:63: in thread_exception_runtest_hook yield /usr/lib/python3/dist-packages/_pytest/unraisableexception.py:90: in pytest_runtest_call yield from unraisable_exception_runtest_hook() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ def unraisable_exception_runtest_hook() -> Generator[None, None, None]: with catch_unraisable_exception() as cm: try: yield finally: if cm.unraisable: if cm.unraisable.err_msg is not None: err_msg = cm.unraisable.err_msg else: err_msg = "Exception ignored in" msg = f"{err_msg}: {cm.unraisable.object!r}\n\n" msg += "".join( traceback.format_exception( cm.unraisable.exc_type, cm.unraisable.exc_value, cm.unraisable.exc_traceback, ) ) > warnings.warn(pytest.PytestUnraisableExceptionWarning(msg)) E pytest.PytestUnraisableExceptionWarning: Exception ignored in: E E Traceback (most recent call last): E File "/usr/lib/python3.11/traceback.py", line 425, in _extract_from_extended_frame_gen E result.append(FrameSummary( E ^^^^^^^^^^^^^ E ResourceWarning: unclosed /usr/lib/python3/dist-packages/_pytest/unraisableexception.py:80: PytestUnraisableExceptionWarning _________________ test_readers_writers[debug:true-fast-uvloop] _________________ cls = func = . at 0xf663ba28>, when = 'call' reraise = (, ) @classmethod def from_call( cls, func: Callable[[], TResult], when: Literal["collect", "setup", "call", "teardown"], reraise: Optional[ Union[Type[BaseException], Tuple[Type[BaseException], ...]] ] = None, ) -> "CallInfo[TResult]": """Call func, wrapping the result in a CallInfo. :param func: The function to call. Called without arguments. :param when: The phase in which the function is called. :param reraise: Exception or exceptions that shall propagate if raised by the function, instead of being wrapped in the CallInfo. """ excinfo = None start = timing.time() precise_start = timing.perf_counter() try: > result: Optional[TResult] = func() /usr/lib/python3/dist-packages/_pytest/runner.py:341: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/dist-packages/_pytest/runner.py:241: in lambda: runtest_hook(item=item, **kwds), when=when, reraise=reraise /usr/lib/python3/dist-packages/pluggy/_hooks.py:513: in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) /usr/lib/python3/dist-packages/pluggy/_manager.py:120: in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) /usr/lib/python3/dist-packages/_pytest/threadexception.py:87: in pytest_runtest_call yield from thread_exception_runtest_hook() /usr/lib/python3/dist-packages/_pytest/threadexception.py:63: in thread_exception_runtest_hook yield /usr/lib/python3/dist-packages/_pytest/unraisableexception.py:90: in pytest_runtest_call yield from unraisable_exception_runtest_hook() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ def unraisable_exception_runtest_hook() -> Generator[None, None, None]: with catch_unraisable_exception() as cm: try: yield finally: if cm.unraisable: if cm.unraisable.err_msg is not None: err_msg = cm.unraisable.err_msg else: err_msg = "Exception ignored in" msg = f"{err_msg}: {cm.unraisable.object!r}\n\n" msg += "".join( traceback.format_exception( cm.unraisable.exc_type, cm.unraisable.exc_value, cm.unraisable.exc_traceback, ) ) > warnings.warn(pytest.PytestUnraisableExceptionWarning(msg)) E pytest.PytestUnraisableExceptionWarning: Exception ignored in: E E Traceback (most recent call last): E File "/usr/lib/python3.11/traceback.py", line 388, in extended_frame_gen E yield f, (lineno, None, None, None) E ResourceWarning: unclosed /usr/lib/python3/dist-packages/_pytest/unraisableexception.py:80: PytestUnraisableExceptionWarning _________________________ test_repr[debug:true-uvloop] _________________________ loop = @pytest.mark.asyncio async def test_repr(loop): rwlock = RWLock() assert 'RWLock' in rwlock.__repr__() assert 'WriterLock: [unlocked' in rwlock.__repr__() assert 'ReaderLock: [unlocked' in rwlock.__repr__() # reader lock __repr__ > await rwlock.reader_lock.acquire() ../../../tests/test_rwlock.py:101: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ aiorwlock/__init__.py:215: in acquire await self._lock.acquire_read() aiorwlock/__init__.py:81: in acquire_read await self._yield_after_acquire(self._RL) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = , lock_type = 1 async def _yield_after_acquire(self, lock_type: int) -> None: if self._do_yield: try: > await asyncio.sleep(0.0, loop=self._loop) E TypeError: sleep() got an unexpected keyword argument 'loop' aiorwlock/__init__.py:58: TypeError __________________ test_many_readers[debug:true-slow-uvloop] ___________________ loop = , fast_track = False @pytest.mark.asyncio async def test_many_readers(loop, fast_track): rwlock = RWLock(fast=fast_track) N = 5 locked = [] nlocked = [] async def f(): await rwlock.reader_lock.acquire() try: locked.append(1) await _wait() nlocked.append(len(locked)) await _wait() locked.pop(-1) finally: rwlock.reader_lock.release() > await Bunch(f, N).wait_for_finished() ../../../tests/test_rwlock.py:138: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../../../tests/test_rwlock.py:41: in wait_for_finished await asyncio.gather(*self._futures) ../../../tests/test_rwlock.py:30: in task await f() ../../../tests/test_rwlock.py:128: in f await rwlock.reader_lock.acquire() aiorwlock/__init__.py:215: in acquire await self._lock.acquire_read() aiorwlock/__init__.py:81: in acquire_read await self._yield_after_acquire(self._RL) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = , lock_type = 1 async def _yield_after_acquire(self, lock_type: int) -> None: if self._do_yield: try: > await asyncio.sleep(0.0, loop=self._loop) E TypeError: sleep() got an unexpected keyword argument 'loop' aiorwlock/__init__.py:58: TypeError ________________ test_reader_recursion[debug:true-slow-uvloop] _________________ loop = , fast_track = False @pytest.mark.asyncio async def test_reader_recursion(loop, fast_track): rwlock = RWLock(fast=fast_track) N = 5 locked = [] nlocked = [] async def f(): await rwlock.reader_lock.acquire() try: await rwlock.reader_lock.acquire() try: locked.append(1) await _wait() nlocked.append(len(locked)) await _wait() locked.pop(-1) finally: rwlock.reader_lock.release() finally: rwlock.reader_lock.release() > await Bunch(f, N).wait_for_finished() ../../../tests/test_rwlock.py:189: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../../../tests/test_rwlock.py:41: in wait_for_finished await asyncio.gather(*self._futures) ../../../tests/test_rwlock.py:30: in task await f() ../../../tests/test_rwlock.py:175: in f await rwlock.reader_lock.acquire() aiorwlock/__init__.py:215: in acquire await self._lock.acquire_read() aiorwlock/__init__.py:81: in acquire_read await self._yield_after_acquire(self._RL) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = , lock_type = 1 async def _yield_after_acquire(self, lock_type: int) -> None: if self._do_yield: try: > await asyncio.sleep(0.0, loop=self._loop) E TypeError: sleep() got an unexpected keyword argument 'loop' aiorwlock/__init__.py:58: TypeError ________________ test_writer_recursion[debug:true-slow-uvloop] _________________ loop = , fast_track = False @pytest.mark.asyncio async def test_writer_recursion(loop, fast_track): rwlock = RWLock(fast=fast_track) N = 5 locked = [] nlocked = [] async def f(): await rwlock.writer_lock.acquire() try: await rwlock.writer_lock.acquire() try: locked.append(1) await _wait() nlocked.append(len(locked)) await _wait() locked.pop(-1) finally: rwlock.writer_lock.release() finally: rwlock.writer_lock.release() > await Bunch(f, N).wait_for_finished() ../../../tests/test_rwlock.py:215: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../../../tests/test_rwlock.py:41: in wait_for_finished await asyncio.gather(*self._futures) ../../../tests/test_rwlock.py:30: in task await f() ../../../tests/test_rwlock.py:201: in f await rwlock.writer_lock.acquire() aiorwlock/__init__.py:234: in acquire await self._lock.acquire_write() aiorwlock/__init__.py:116: in acquire_write await self._yield_after_acquire(self._WL) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = , lock_type = 2 async def _yield_after_acquire(self, lock_type: int) -> None: if self._do_yield: try: > await asyncio.sleep(0.0, loop=self._loop) E TypeError: sleep() got an unexpected keyword argument 'loop' aiorwlock/__init__.py:58: TypeError __________ test_writer_then_reader_recursion[debug:true-slow-uvloop] ___________ loop = , fast_track = False @pytest.mark.asyncio async def test_writer_then_reader_recursion(loop, fast_track): rwlock = RWLock(fast=fast_track) N = 5 locked = [] nlocked = [] async def f(): await rwlock.writer_lock.acquire() try: await rwlock.reader_lock.acquire() try: locked.append(1) await _wait() nlocked.append(len(locked)) await _wait() locked.pop(-1) finally: rwlock.reader_lock.release() finally: rwlock.writer_lock.release() > await Bunch(f, N).wait_for_finished() ../../../tests/test_rwlock.py:241: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../../../tests/test_rwlock.py:41: in wait_for_finished await asyncio.gather(*self._futures) ../../../tests/test_rwlock.py:30: in task await f() ../../../tests/test_rwlock.py:227: in f await rwlock.writer_lock.acquire() aiorwlock/__init__.py:234: in acquire await self._lock.acquire_write() aiorwlock/__init__.py:116: in acquire_write await self._yield_after_acquire(self._WL) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = , lock_type = 2 async def _yield_after_acquire(self, lock_type: int) -> None: if self._do_yield: try: > await asyncio.sleep(0.0, loop=self._loop) E TypeError: sleep() got an unexpected keyword argument 'loop' aiorwlock/__init__.py:58: TypeError _________________ test_readers_writers[debug:true-slow-uvloop] _________________ loop = , fast_track = False @pytest.mark.asyncio async def test_readers_writers(loop, fast_track): rwlock = RWLock(fast=fast_track) N = 5 rlocked = [] wlocked = [] nlocked = [] async def r(): await rwlock.reader_lock.acquire() try: rlocked.append(1) await _wait() nlocked.append((len(rlocked), len(wlocked))) await _wait() rlocked.pop(-1) finally: rwlock.reader_lock.release() async def w(): await rwlock.writer_lock.acquire() try: wlocked.append(1) await _wait() nlocked.append((len(rlocked), len(wlocked))) await _wait() wlocked.pop(-1) finally: rwlock.writer_lock.release() b1 = Bunch(r, N) b2 = Bunch(w, N) await asyncio.sleep(0.0001) > await b1.wait_for_finished() ../../../tests/test_rwlock.py:299: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../../../tests/test_rwlock.py:41: in wait_for_finished await asyncio.gather(*self._futures) ../../../tests/test_rwlock.py:30: in task await f() ../../../tests/test_rwlock.py:273: in r await rwlock.reader_lock.acquire() aiorwlock/__init__.py:215: in acquire await self._lock.acquire_read() aiorwlock/__init__.py:81: in acquire_read await self._yield_after_acquire(self._RL) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = , lock_type = 1 async def _yield_after_acquire(self, lock_type: int) -> None: if self._do_yield: try: > await asyncio.sleep(0.0, loop=self._loop) E TypeError: sleep() got an unexpected keyword argument 'loop' aiorwlock/__init__.py:58: TypeError ___________________ test_read_locked[debug:true-slow-uvloop] ___________________ loop = , fast_track = False @pytest.mark.asyncio async def test_read_locked(loop, fast_track): rwlock = RWLock(fast=fast_track) assert not rwlock.reader_lock.locked > async with rwlock.reader_lock: ../../../tests/test_rwlock.py:469: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ aiorwlock/__init__.py:190: in __aenter__ await self.acquire() aiorwlock/__init__.py:215: in acquire await self._lock.acquire_read() aiorwlock/__init__.py:81: in acquire_read await self._yield_after_acquire(self._RL) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = , lock_type = 1 async def _yield_after_acquire(self, lock_type: int) -> None: if self._do_yield: try: > await asyncio.sleep(0.0, loop=self._loop) E TypeError: sleep() got an unexpected keyword argument 'loop' aiorwlock/__init__.py:58: TypeError __________________ test_write_locked[debug:true-slow-uvloop] ___________________ loop = , fast_track = False @pytest.mark.asyncio async def test_write_locked(loop, fast_track): rwlock = RWLock(fast=fast_track) assert not rwlock.writer_lock.locked > async with rwlock.writer_lock: ../../../tests/test_rwlock.py:477: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ aiorwlock/__init__.py:190: in __aenter__ await self.acquire() aiorwlock/__init__.py:234: in acquire await self._lock.acquire_write() aiorwlock/__init__.py:116: in acquire_write await self._yield_after_acquire(self._WL) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = , lock_type = 2 async def _yield_after_acquire(self, lock_type: int) -> None: if self._do_yield: try: > await asyncio.sleep(0.0, loop=self._loop) E TypeError: sleep() got an unexpected keyword argument 'loop' aiorwlock/__init__.py:58: TypeError _________ test_write_read_lock_multiple_tasks[debug:true-slow-uvloop] __________ loop = , fast_track = False @pytest.mark.asyncio async def test_write_read_lock_multiple_tasks(loop, fast_track): rwlock = RWLock(fast=fast_track) rl = rwlock.reader wl = rwlock.writer async def coro(): async with rl: assert not wl.locked assert rl.locked await asyncio.sleep(0.2, loop) > async with wl: ../../../tests/test_rwlock.py:493: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ aiorwlock/__init__.py:190: in __aenter__ await self.acquire() aiorwlock/__init__.py:234: in acquire await self._lock.acquire_write() aiorwlock/__init__.py:116: in acquire_write await self._yield_after_acquire(self._WL) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = , lock_type = 2 async def _yield_after_acquire(self, lock_type: int) -> None: if self._do_yield: try: > await asyncio.sleep(0.0, loop=self._loop) E TypeError: sleep() got an unexpected keyword argument 'loop' aiorwlock/__init__.py:58: TypeError ______________ test_read_context_manager[debug:true-slow-uvloop] _______________ loop = , fast_track = False @pytest.mark.asyncio async def test_read_context_manager(loop, fast_track): rwlock = RWLock(fast=fast_track) reader = rwlock.reader_lock assert not reader.locked > async with reader: ../../../tests/test_rwlock.py:516: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ aiorwlock/__init__.py:190: in __aenter__ await self.acquire() aiorwlock/__init__.py:215: in acquire await self._lock.acquire_read() aiorwlock/__init__.py:81: in acquire_read await self._yield_after_acquire(self._RL) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = , lock_type = 1 async def _yield_after_acquire(self, lock_type: int) -> None: if self._do_yield: try: > await asyncio.sleep(0.0, loop=self._loop) E TypeError: sleep() got an unexpected keyword argument 'loop' aiorwlock/__init__.py:58: TypeError ______________ test_write_context_manager[debug:true-slow-uvloop] ______________ loop = , fast_track = False @pytest.mark.asyncio async def test_write_context_manager(loop, fast_track): rwlock = RWLock(fast=fast_track) writer = rwlock.writer_lock assert not writer.locked > async with writer: ../../../tests/test_rwlock.py:525: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ aiorwlock/__init__.py:190: in __aenter__ await self.acquire() aiorwlock/__init__.py:234: in acquire await self._lock.acquire_write() aiorwlock/__init__.py:116: in acquire_write await self._yield_after_acquire(self._WL) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = , lock_type = 2 async def _yield_after_acquire(self, lock_type: int) -> None: if self._do_yield: try: > await asyncio.sleep(0.0, loop=self._loop) E TypeError: sleep() got an unexpected keyword argument 'loop' aiorwlock/__init__.py:58: TypeError _________________ test_await_read_lock[debug:true-slow-uvloop] _________________ loop = , fast_track = False @pytest.mark.asyncio async def test_await_read_lock(loop, fast_track): rwlock = RWLock(fast=fast_track) reader = rwlock.reader_lock assert not reader.locked > async with reader: ../../../tests/test_rwlock.py:534: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ aiorwlock/__init__.py:190: in __aenter__ await self.acquire() aiorwlock/__init__.py:215: in acquire await self._lock.acquire_read() aiorwlock/__init__.py:81: in acquire_read await self._yield_after_acquire(self._RL) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = , lock_type = 1 async def _yield_after_acquire(self, lock_type: int) -> None: if self._do_yield: try: > await asyncio.sleep(0.0, loop=self._loop) E TypeError: sleep() got an unexpected keyword argument 'loop' aiorwlock/__init__.py:58: TypeError ________________ test_await_write_lock[debug:true-slow-uvloop] _________________ loop = , fast_track = False @pytest.mark.asyncio async def test_await_write_lock(loop, fast_track): rwlock = RWLock(fast=fast_track) writer = rwlock.writer_lock assert not writer.locked > async with writer: ../../../tests/test_rwlock.py:543: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ aiorwlock/__init__.py:190: in __aenter__ await self.acquire() aiorwlock/__init__.py:234: in acquire await self._lock.acquire_write() aiorwlock/__init__.py:116: in acquire_write await self._yield_after_acquire(self._WL) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = , lock_type = 2 async def _yield_after_acquire(self, lock_type: int) -> None: if self._do_yield: try: > await asyncio.sleep(0.0, loop=self._loop) E TypeError: sleep() got an unexpected keyword argument 'loop' aiorwlock/__init__.py:58: TypeError __________________ test_many_readers[debug:true-slow-pyloop] ___________________ loop = <_UnixSelectorEventLoop running=False closed=False debug=True> fast_track = False @pytest.mark.asyncio async def test_many_readers(loop, fast_track): rwlock = RWLock(fast=fast_track) N = 5 locked = [] nlocked = [] async def f(): await rwlock.reader_lock.acquire() try: locked.append(1) await _wait() nlocked.append(len(locked)) await _wait() locked.pop(-1) finally: rwlock.reader_lock.release() > await Bunch(f, N).wait_for_finished() ../../../tests/test_rwlock.py:138: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../../../tests/test_rwlock.py:41: in wait_for_finished await asyncio.gather(*self._futures) ../../../tests/test_rwlock.py:30: in task await f() ../../../tests/test_rwlock.py:128: in f await rwlock.reader_lock.acquire() aiorwlock/__init__.py:215: in acquire await self._lock.acquire_read() aiorwlock/__init__.py:81: in acquire_read await self._yield_after_acquire(self._RL) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = , lock_type = 1 async def _yield_after_acquire(self, lock_type: int) -> None: if self._do_yield: try: > await asyncio.sleep(0.0, loop=self._loop) E TypeError: sleep() got an unexpected keyword argument 'loop' aiorwlock/__init__.py:58: TypeError During handling of the above exception, another exception occurred: cls = func = . at 0xf65d48e8>, when = 'call' reraise = (, ) @classmethod def from_call( cls, func: Callable[[], TResult], when: Literal["collect", "setup", "call", "teardown"], reraise: Optional[ Union[Type[BaseException], Tuple[Type[BaseException], ...]] ] = None, ) -> "CallInfo[TResult]": """Call func, wrapping the result in a CallInfo. :param func: The function to call. Called without arguments. :param when: The phase in which the function is called. :param reraise: Exception or exceptions that shall propagate if raised by the function, instead of being wrapped in the CallInfo. """ excinfo = None start = timing.time() precise_start = timing.perf_counter() try: > result: Optional[TResult] = func() /usr/lib/python3/dist-packages/_pytest/runner.py:341: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/dist-packages/_pytest/runner.py:241: in lambda: runtest_hook(item=item, **kwds), when=when, reraise=reraise /usr/lib/python3/dist-packages/pluggy/_hooks.py:513: in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) /usr/lib/python3/dist-packages/pluggy/_manager.py:120: in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) /usr/lib/python3/dist-packages/_pytest/threadexception.py:87: in pytest_runtest_call yield from thread_exception_runtest_hook() /usr/lib/python3/dist-packages/_pytest/threadexception.py:63: in thread_exception_runtest_hook yield /usr/lib/python3/dist-packages/_pytest/unraisableexception.py:90: in pytest_runtest_call yield from unraisable_exception_runtest_hook() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ def unraisable_exception_runtest_hook() -> Generator[None, None, None]: with catch_unraisable_exception() as cm: try: yield finally: if cm.unraisable: if cm.unraisable.err_msg is not None: err_msg = cm.unraisable.err_msg else: err_msg = "Exception ignored in" msg = f"{err_msg}: {cm.unraisable.object!r}\n\n" msg += "".join( traceback.format_exception( cm.unraisable.exc_type, cm.unraisable.exc_value, cm.unraisable.exc_traceback, ) ) > warnings.warn(pytest.PytestUnraisableExceptionWarning(msg)) E pytest.PytestUnraisableExceptionWarning: Exception ignored in: E E Traceback (most recent call last): E File "/usr/lib/python3.11/traceback.py", line 425, in _extract_from_extended_frame_gen E result.append(FrameSummary( E ^^^^^^^^^^^^^ E ResourceWarning: unclosed /usr/lib/python3/dist-packages/_pytest/unraisableexception.py:80: PytestUnraisableExceptionWarning ________________ test_reader_recursion[debug:true-slow-pyloop] _________________ loop = <_UnixSelectorEventLoop running=False closed=False debug=True> fast_track = False @pytest.mark.asyncio async def test_reader_recursion(loop, fast_track): rwlock = RWLock(fast=fast_track) N = 5 locked = [] nlocked = [] async def f(): await rwlock.reader_lock.acquire() try: await rwlock.reader_lock.acquire() try: locked.append(1) await _wait() nlocked.append(len(locked)) await _wait() locked.pop(-1) finally: rwlock.reader_lock.release() finally: rwlock.reader_lock.release() > await Bunch(f, N).wait_for_finished() ../../../tests/test_rwlock.py:189: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../../../tests/test_rwlock.py:41: in wait_for_finished await asyncio.gather(*self._futures) ../../../tests/test_rwlock.py:30: in task await f() ../../../tests/test_rwlock.py:175: in f await rwlock.reader_lock.acquire() aiorwlock/__init__.py:215: in acquire await self._lock.acquire_read() aiorwlock/__init__.py:81: in acquire_read await self._yield_after_acquire(self._RL) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = , lock_type = 1 async def _yield_after_acquire(self, lock_type: int) -> None: if self._do_yield: try: > await asyncio.sleep(0.0, loop=self._loop) E TypeError: sleep() got an unexpected keyword argument 'loop' aiorwlock/__init__.py:58: TypeError During handling of the above exception, another exception occurred: cls = func = . at 0xf65b6988>, when = 'call' reraise = (, ) @classmethod def from_call( cls, func: Callable[[], TResult], when: Literal["collect", "setup", "call", "teardown"], reraise: Optional[ Union[Type[BaseException], Tuple[Type[BaseException], ...]] ] = None, ) -> "CallInfo[TResult]": """Call func, wrapping the result in a CallInfo. :param func: The function to call. Called without arguments. :param when: The phase in which the function is called. :param reraise: Exception or exceptions that shall propagate if raised by the function, instead of being wrapped in the CallInfo. """ excinfo = None start = timing.time() precise_start = timing.perf_counter() try: > result: Optional[TResult] = func() /usr/lib/python3/dist-packages/_pytest/runner.py:341: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/dist-packages/_pytest/runner.py:241: in lambda: runtest_hook(item=item, **kwds), when=when, reraise=reraise /usr/lib/python3/dist-packages/pluggy/_hooks.py:513: in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) /usr/lib/python3/dist-packages/pluggy/_manager.py:120: in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) /usr/lib/python3/dist-packages/_pytest/threadexception.py:87: in pytest_runtest_call yield from thread_exception_runtest_hook() /usr/lib/python3/dist-packages/_pytest/threadexception.py:63: in thread_exception_runtest_hook yield /usr/lib/python3/dist-packages/_pytest/unraisableexception.py:90: in pytest_runtest_call yield from unraisable_exception_runtest_hook() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ def unraisable_exception_runtest_hook() -> Generator[None, None, None]: with catch_unraisable_exception() as cm: try: yield finally: if cm.unraisable: if cm.unraisable.err_msg is not None: err_msg = cm.unraisable.err_msg else: err_msg = "Exception ignored in" msg = f"{err_msg}: {cm.unraisable.object!r}\n\n" msg += "".join( traceback.format_exception( cm.unraisable.exc_type, cm.unraisable.exc_value, cm.unraisable.exc_traceback, ) ) > warnings.warn(pytest.PytestUnraisableExceptionWarning(msg)) E pytest.PytestUnraisableExceptionWarning: Exception ignored in: E E Traceback (most recent call last): E File "/usr/lib/python3.11/traceback.py", line 332, in walk_stack E f = f.f_back E ^^^^^^^^ E ResourceWarning: unclosed /usr/lib/python3/dist-packages/_pytest/unraisableexception.py:80: PytestUnraisableExceptionWarning ________________ test_writer_recursion[debug:true-slow-pyloop] _________________ loop = <_UnixSelectorEventLoop running=False closed=False debug=True> fast_track = False @pytest.mark.asyncio async def test_writer_recursion(loop, fast_track): rwlock = RWLock(fast=fast_track) N = 5 locked = [] nlocked = [] async def f(): await rwlock.writer_lock.acquire() try: await rwlock.writer_lock.acquire() try: locked.append(1) await _wait() nlocked.append(len(locked)) await _wait() locked.pop(-1) finally: rwlock.writer_lock.release() finally: rwlock.writer_lock.release() > await Bunch(f, N).wait_for_finished() ../../../tests/test_rwlock.py:215: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../../../tests/test_rwlock.py:41: in wait_for_finished await asyncio.gather(*self._futures) ../../../tests/test_rwlock.py:30: in task await f() ../../../tests/test_rwlock.py:201: in f await rwlock.writer_lock.acquire() aiorwlock/__init__.py:234: in acquire await self._lock.acquire_write() aiorwlock/__init__.py:116: in acquire_write await self._yield_after_acquire(self._WL) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = , lock_type = 2 async def _yield_after_acquire(self, lock_type: int) -> None: if self._do_yield: try: > await asyncio.sleep(0.0, loop=self._loop) E TypeError: sleep() got an unexpected keyword argument 'loop' aiorwlock/__init__.py:58: TypeError During handling of the above exception, another exception occurred: cls = func = . at 0xf65bb2f8>, when = 'call' reraise = (, ) @classmethod def from_call( cls, func: Callable[[], TResult], when: Literal["collect", "setup", "call", "teardown"], reraise: Optional[ Union[Type[BaseException], Tuple[Type[BaseException], ...]] ] = None, ) -> "CallInfo[TResult]": """Call func, wrapping the result in a CallInfo. :param func: The function to call. Called without arguments. :param when: The phase in which the function is called. :param reraise: Exception or exceptions that shall propagate if raised by the function, instead of being wrapped in the CallInfo. """ excinfo = None start = timing.time() precise_start = timing.perf_counter() try: > result: Optional[TResult] = func() /usr/lib/python3/dist-packages/_pytest/runner.py:341: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/dist-packages/_pytest/runner.py:241: in lambda: runtest_hook(item=item, **kwds), when=when, reraise=reraise /usr/lib/python3/dist-packages/pluggy/_hooks.py:513: in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) /usr/lib/python3/dist-packages/pluggy/_manager.py:120: in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) /usr/lib/python3/dist-packages/_pytest/threadexception.py:87: in pytest_runtest_call yield from thread_exception_runtest_hook() /usr/lib/python3/dist-packages/_pytest/threadexception.py:63: in thread_exception_runtest_hook yield /usr/lib/python3/dist-packages/_pytest/unraisableexception.py:90: in pytest_runtest_call yield from unraisable_exception_runtest_hook() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ def unraisable_exception_runtest_hook() -> Generator[None, None, None]: with catch_unraisable_exception() as cm: try: yield finally: if cm.unraisable: if cm.unraisable.err_msg is not None: err_msg = cm.unraisable.err_msg else: err_msg = "Exception ignored in" msg = f"{err_msg}: {cm.unraisable.object!r}\n\n" msg += "".join( traceback.format_exception( cm.unraisable.exc_type, cm.unraisable.exc_value, cm.unraisable.exc_traceback, ) ) > warnings.warn(pytest.PytestUnraisableExceptionWarning(msg)) E pytest.PytestUnraisableExceptionWarning: Exception ignored in: E E Traceback (most recent call last): E File "/usr/lib/python3.11/traceback.py", line 425, in _extract_from_extended_frame_gen E result.append(FrameSummary( E ^^^^^^^^^^^^^ E ResourceWarning: unclosed /usr/lib/python3/dist-packages/_pytest/unraisableexception.py:80: PytestUnraisableExceptionWarning __________ test_writer_then_reader_recursion[debug:true-slow-pyloop] ___________ loop = <_UnixSelectorEventLoop running=False closed=False debug=True> fast_track = False @pytest.mark.asyncio async def test_writer_then_reader_recursion(loop, fast_track): rwlock = RWLock(fast=fast_track) N = 5 locked = [] nlocked = [] async def f(): await rwlock.writer_lock.acquire() try: await rwlock.reader_lock.acquire() try: locked.append(1) await _wait() nlocked.append(len(locked)) await _wait() locked.pop(-1) finally: rwlock.reader_lock.release() finally: rwlock.writer_lock.release() > await Bunch(f, N).wait_for_finished() ../../../tests/test_rwlock.py:241: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../../../tests/test_rwlock.py:41: in wait_for_finished await asyncio.gather(*self._futures) ../../../tests/test_rwlock.py:30: in task await f() ../../../tests/test_rwlock.py:227: in f await rwlock.writer_lock.acquire() aiorwlock/__init__.py:234: in acquire await self._lock.acquire_write() aiorwlock/__init__.py:116: in acquire_write await self._yield_after_acquire(self._WL) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = , lock_type = 2 async def _yield_after_acquire(self, lock_type: int) -> None: if self._do_yield: try: > await asyncio.sleep(0.0, loop=self._loop) E TypeError: sleep() got an unexpected keyword argument 'loop' aiorwlock/__init__.py:58: TypeError During handling of the above exception, another exception occurred: cls = func = . at 0xf65b6938>, when = 'call' reraise = (, ) @classmethod def from_call( cls, func: Callable[[], TResult], when: Literal["collect", "setup", "call", "teardown"], reraise: Optional[ Union[Type[BaseException], Tuple[Type[BaseException], ...]] ] = None, ) -> "CallInfo[TResult]": """Call func, wrapping the result in a CallInfo. :param func: The function to call. Called without arguments. :param when: The phase in which the function is called. :param reraise: Exception or exceptions that shall propagate if raised by the function, instead of being wrapped in the CallInfo. """ excinfo = None start = timing.time() precise_start = timing.perf_counter() try: > result: Optional[TResult] = func() /usr/lib/python3/dist-packages/_pytest/runner.py:341: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/dist-packages/_pytest/runner.py:241: in lambda: runtest_hook(item=item, **kwds), when=when, reraise=reraise /usr/lib/python3/dist-packages/pluggy/_hooks.py:513: in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) /usr/lib/python3/dist-packages/pluggy/_manager.py:120: in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) /usr/lib/python3/dist-packages/_pytest/threadexception.py:87: in pytest_runtest_call yield from thread_exception_runtest_hook() /usr/lib/python3/dist-packages/_pytest/threadexception.py:63: in thread_exception_runtest_hook yield /usr/lib/python3/dist-packages/_pytest/unraisableexception.py:90: in pytest_runtest_call yield from unraisable_exception_runtest_hook() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ def unraisable_exception_runtest_hook() -> Generator[None, None, None]: with catch_unraisable_exception() as cm: try: yield finally: if cm.unraisable: if cm.unraisable.err_msg is not None: err_msg = cm.unraisable.err_msg else: err_msg = "Exception ignored in" msg = f"{err_msg}: {cm.unraisable.object!r}\n\n" msg += "".join( traceback.format_exception( cm.unraisable.exc_type, cm.unraisable.exc_value, cm.unraisable.exc_traceback, ) ) > warnings.warn(pytest.PytestUnraisableExceptionWarning(msg)) E pytest.PytestUnraisableExceptionWarning: Exception ignored in: E E Traceback (most recent call last): E File "/usr/lib/python3.11/traceback.py", line 425, in _extract_from_extended_frame_gen E result.append(FrameSummary( E ^^^^^^^^^^^^^ E ResourceWarning: unclosed /usr/lib/python3/dist-packages/_pytest/unraisableexception.py:80: PytestUnraisableExceptionWarning ---------------------------- Captured log teardown ----------------------------- ERROR asyncio:base_events.py:1785 Task was destroyed but it is pending! source_traceback: Object created at (most recent call last): File "", line 198, in _run_module_as_main File "", line 88, in _run_code File "/usr/lib/python3/dist-packages/pytest/__main__.py", line 7, in raise SystemExit(pytest.console_main()) File "/usr/lib/python3/dist-packages/_pytest/config/__init__.py", line 206, in console_main code = main() File "/usr/lib/python3/dist-packages/_pytest/config/__init__.py", line 178, in main ret: Union[ExitCode, int] = config.hook.pytest_cmdline_main( File "/usr/lib/python3/dist-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3/dist-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3/dist-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3/dist-packages/_pytest/main.py", line 332, in pytest_cmdline_main return wrap_session(config, _main) File "/usr/lib/python3/dist-packages/_pytest/main.py", line 285, in wrap_session session.exitstatus = doit(config, session) or 0 File "/usr/lib/python3/dist-packages/_pytest/main.py", line 339, in _main config.hook.pytest_runtestloop(session=session) File "/usr/lib/python3/dist-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3/dist-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3/dist-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3/dist-packages/_pytest/main.py", line 364, in pytest_runtestloop item.config.hook.pytest_runtest_protocol(item=item, nextitem=nextitem) File "/usr/lib/python3/dist-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3/dist-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3/dist-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3/dist-packages/_pytest/runner.py", line 116, in pytest_runtest_protocol runtestprotocol(item, nextitem=nextitem) File "/usr/lib/python3/dist-packages/_pytest/runner.py", line 135, in runtestprotocol reports.append(call_and_report(item, "call", log)) File "/usr/lib/python3/dist-packages/_pytest/runner.py", line 240, in call_and_report call = CallInfo.from_call( File "/usr/lib/python3/dist-packages/_pytest/runner.py", line 341, in from_call result: Optional[TResult] = func() File "/usr/lib/python3/dist-packages/_pytest/runner.py", line 241, in lambda: runtest_hook(item=item, **kwds), when=when, reraise=reraise File "/usr/lib/python3/dist-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3/dist-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3/dist-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3/dist-packages/_pytest/runner.py", line 173, in pytest_runtest_call item.runtest() File "/usr/lib/python3/dist-packages/_pytest/python.py", line 1632, in runtest self.ihook.pytest_pyfunc_call(pyfuncitem=self) File "/usr/lib/python3/dist-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3/dist-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3/dist-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3/dist-packages/_pytest/python.py", line 162, in pytest_pyfunc_call result = testfunction(**testargs) File "/usr/lib/python3/dist-packages/pytest_asyncio/plugin.py", line 478, in inner _loop.run_until_complete(task) File "/usr/lib/python3.11/asyncio/base_events.py", line 641, in run_until_complete self.run_forever() File "/usr/lib/python3.11/asyncio/base_events.py", line 608, in run_forever self._run_once() File "/usr/lib/python3.11/asyncio/base_events.py", line 1928, in _run_once handle._run() File "/usr/lib/python3.11/asyncio/events.py", line 84, in _run self._context.run(self._callback, *self._args) File "/build/reproducible-path/aiorwlock-1.0.0/tests/test_rwlock.py", line 215, in test_writer_recursion await Bunch(f, N).wait_for_finished() File "/build/reproducible-path/aiorwlock-1.0.0/tests/test_rwlock.py", line 37, in __init__ t = asyncio.Task(task()) task: .task() running at /build/reproducible-path/aiorwlock-1.0.0/tests/test_rwlock.py:30> wait_for= cb=[gather.._done_callback() at /usr/lib/python3.11/asyncio/tasks.py:764] created at /build/reproducible-path/aiorwlock-1.0.0/tests/test_rwlock.py:37> ERROR asyncio:base_events.py:1785 Task was destroyed but it is pending! source_traceback: Object created at (most recent call last): File "", line 198, in _run_module_as_main File "", line 88, in _run_code File "/usr/lib/python3/dist-packages/pytest/__main__.py", line 7, in raise SystemExit(pytest.console_main()) File "/usr/lib/python3/dist-packages/_pytest/config/__init__.py", line 206, in console_main code = main() File "/usr/lib/python3/dist-packages/_pytest/config/__init__.py", line 178, in main ret: Union[ExitCode, int] = config.hook.pytest_cmdline_main( File "/usr/lib/python3/dist-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3/dist-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3/dist-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3/dist-packages/_pytest/main.py", line 332, in pytest_cmdline_main return wrap_session(config, _main) File "/usr/lib/python3/dist-packages/_pytest/main.py", line 285, in wrap_session session.exitstatus = doit(config, session) or 0 File "/usr/lib/python3/dist-packages/_pytest/main.py", line 339, in _main config.hook.pytest_runtestloop(session=session) File "/usr/lib/python3/dist-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3/dist-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3/dist-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3/dist-packages/_pytest/main.py", line 364, in pytest_runtestloop item.config.hook.pytest_runtest_protocol(item=item, nextitem=nextitem) File "/usr/lib/python3/dist-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3/dist-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3/dist-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3/dist-packages/_pytest/runner.py", line 116, in pytest_runtest_protocol runtestprotocol(item, nextitem=nextitem) File "/usr/lib/python3/dist-packages/_pytest/runner.py", line 135, in runtestprotocol reports.append(call_and_report(item, "call", log)) File "/usr/lib/python3/dist-packages/_pytest/runner.py", line 240, in call_and_report call = CallInfo.from_call( File "/usr/lib/python3/dist-packages/_pytest/runner.py", line 341, in from_call result: Optional[TResult] = func() File "/usr/lib/python3/dist-packages/_pytest/runner.py", line 241, in lambda: runtest_hook(item=item, **kwds), when=when, reraise=reraise File "/usr/lib/python3/dist-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3/dist-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3/dist-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3/dist-packages/_pytest/runner.py", line 173, in pytest_runtest_call item.runtest() File "/usr/lib/python3/dist-packages/_pytest/python.py", line 1632, in runtest self.ihook.pytest_pyfunc_call(pyfuncitem=self) File "/usr/lib/python3/dist-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3/dist-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3/dist-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3/dist-packages/_pytest/python.py", line 162, in pytest_pyfunc_call result = testfunction(**testargs) File "/usr/lib/python3/dist-packages/pytest_asyncio/plugin.py", line 478, in inner _loop.run_until_complete(task) File "/usr/lib/python3.11/asyncio/base_events.py", line 641, in run_until_complete self.run_forever() File "/usr/lib/python3.11/asyncio/base_events.py", line 608, in run_forever self._run_once() File "/usr/lib/python3.11/asyncio/base_events.py", line 1928, in _run_once handle._run() File "/usr/lib/python3.11/asyncio/events.py", line 84, in _run self._context.run(self._callback, *self._args) File "/build/reproducible-path/aiorwlock-1.0.0/tests/test_rwlock.py", line 215, in test_writer_recursion await Bunch(f, N).wait_for_finished() File "/build/reproducible-path/aiorwlock-1.0.0/tests/test_rwlock.py", line 37, in __init__ t = asyncio.Task(task()) task: .task() running at /build/reproducible-path/aiorwlock-1.0.0/tests/test_rwlock.py:30> wait_for= cb=[gather.._done_callback() at /usr/lib/python3.11/asyncio/tasks.py:764] created at /build/reproducible-path/aiorwlock-1.0.0/tests/test_rwlock.py:37> ERROR asyncio:base_events.py:1785 Task was destroyed but it is pending! source_traceback: Object created at (most recent call last): File "", line 198, in _run_module_as_main File "", line 88, in _run_code File "/usr/lib/python3/dist-packages/pytest/__main__.py", line 7, in raise SystemExit(pytest.console_main()) File "/usr/lib/python3/dist-packages/_pytest/config/__init__.py", line 206, in console_main code = main() File "/usr/lib/python3/dist-packages/_pytest/config/__init__.py", line 178, in main ret: Union[ExitCode, int] = config.hook.pytest_cmdline_main( File "/usr/lib/python3/dist-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3/dist-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3/dist-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3/dist-packages/_pytest/main.py", line 332, in pytest_cmdline_main return wrap_session(config, _main) File "/usr/lib/python3/dist-packages/_pytest/main.py", line 285, in wrap_session session.exitstatus = doit(config, session) or 0 File "/usr/lib/python3/dist-packages/_pytest/main.py", line 339, in _main config.hook.pytest_runtestloop(session=session) File "/usr/lib/python3/dist-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3/dist-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3/dist-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3/dist-packages/_pytest/main.py", line 364, in pytest_runtestloop item.config.hook.pytest_runtest_protocol(item=item, nextitem=nextitem) File "/usr/lib/python3/dist-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3/dist-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3/dist-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3/dist-packages/_pytest/runner.py", line 116, in pytest_runtest_protocol runtestprotocol(item, nextitem=nextitem) File "/usr/lib/python3/dist-packages/_pytest/runner.py", line 135, in runtestprotocol reports.append(call_and_report(item, "call", log)) File "/usr/lib/python3/dist-packages/_pytest/runner.py", line 240, in call_and_report call = CallInfo.from_call( File "/usr/lib/python3/dist-packages/_pytest/runner.py", line 341, in from_call result: Optional[TResult] = func() File "/usr/lib/python3/dist-packages/_pytest/runner.py", line 241, in lambda: runtest_hook(item=item, **kwds), when=when, reraise=reraise File "/usr/lib/python3/dist-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3/dist-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3/dist-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3/dist-packages/_pytest/runner.py", line 173, in pytest_runtest_call item.runtest() File "/usr/lib/python3/dist-packages/_pytest/python.py", line 1632, in runtest self.ihook.pytest_pyfunc_call(pyfuncitem=self) File "/usr/lib/python3/dist-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3/dist-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3/dist-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3/dist-packages/_pytest/python.py", line 162, in pytest_pyfunc_call result = testfunction(**testargs) File "/usr/lib/python3/dist-packages/pytest_asyncio/plugin.py", line 478, in inner _loop.run_until_complete(task) File "/usr/lib/python3.11/asyncio/base_events.py", line 641, in run_until_complete self.run_forever() File "/usr/lib/python3.11/asyncio/base_events.py", line 608, in run_forever self._run_once() File "/usr/lib/python3.11/asyncio/base_events.py", line 1928, in _run_once handle._run() File "/usr/lib/python3.11/asyncio/events.py", line 84, in _run self._context.run(self._callback, *self._args) File "/build/reproducible-path/aiorwlock-1.0.0/tests/test_rwlock.py", line 215, in test_writer_recursion await Bunch(f, N).wait_for_finished() File "/build/reproducible-path/aiorwlock-1.0.0/tests/test_rwlock.py", line 37, in __init__ t = asyncio.Task(task()) task: .task() running at /build/reproducible-path/aiorwlock-1.0.0/tests/test_rwlock.py:30> wait_for= cb=[gather.._done_callback() at /usr/lib/python3.11/asyncio/tasks.py:764] created at /build/reproducible-path/aiorwlock-1.0.0/tests/test_rwlock.py:37> ERROR asyncio:base_events.py:1785 Task was destroyed but it is pending! source_traceback: Object created at (most recent call last): File "", line 198, in _run_module_as_main File "", line 88, in _run_code File "/usr/lib/python3/dist-packages/pytest/__main__.py", line 7, in raise SystemExit(pytest.console_main()) File "/usr/lib/python3/dist-packages/_pytest/config/__init__.py", line 206, in console_main code = main() File "/usr/lib/python3/dist-packages/_pytest/config/__init__.py", line 178, in main ret: Union[ExitCode, int] = config.hook.pytest_cmdline_main( File "/usr/lib/python3/dist-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3/dist-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3/dist-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3/dist-packages/_pytest/main.py", line 332, in pytest_cmdline_main return wrap_session(config, _main) File "/usr/lib/python3/dist-packages/_pytest/main.py", line 285, in wrap_session session.exitstatus = doit(config, session) or 0 File "/usr/lib/python3/dist-packages/_pytest/main.py", line 339, in _main config.hook.pytest_runtestloop(session=session) File "/usr/lib/python3/dist-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3/dist-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3/dist-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3/dist-packages/_pytest/main.py", line 364, in pytest_runtestloop item.config.hook.pytest_runtest_protocol(item=item, nextitem=nextitem) File "/usr/lib/python3/dist-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3/dist-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3/dist-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3/dist-packages/_pytest/runner.py", line 116, in pytest_runtest_protocol runtestprotocol(item, nextitem=nextitem) File "/usr/lib/python3/dist-packages/_pytest/runner.py", line 135, in runtestprotocol reports.append(call_and_report(item, "call", log)) File "/usr/lib/python3/dist-packages/_pytest/runner.py", line 240, in call_and_report call = CallInfo.from_call( File "/usr/lib/python3/dist-packages/_pytest/runner.py", line 341, in from_call result: Optional[TResult] = func() File "/usr/lib/python3/dist-packages/_pytest/runner.py", line 241, in lambda: runtest_hook(item=item, **kwds), when=when, reraise=reraise File "/usr/lib/python3/dist-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3/dist-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3/dist-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3/dist-packages/_pytest/runner.py", line 173, in pytest_runtest_call item.runtest() File "/usr/lib/python3/dist-packages/_pytest/python.py", line 1632, in runtest self.ihook.pytest_pyfunc_call(pyfuncitem=self) File "/usr/lib/python3/dist-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3/dist-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3/dist-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3/dist-packages/_pytest/python.py", line 162, in pytest_pyfunc_call result = testfunction(**testargs) File "/usr/lib/python3/dist-packages/pytest_asyncio/plugin.py", line 478, in inner _loop.run_until_complete(task) File "/usr/lib/python3.11/asyncio/base_events.py", line 641, in run_until_complete self.run_forever() File "/usr/lib/python3.11/asyncio/base_events.py", line 608, in run_forever self._run_once() File "/usr/lib/python3.11/asyncio/base_events.py", line 1928, in _run_once handle._run() File "/usr/lib/python3.11/asyncio/events.py", line 84, in _run self._context.run(self._callback, *self._args) File "/build/reproducible-path/aiorwlock-1.0.0/tests/test_rwlock.py", line 215, in test_writer_recursion await Bunch(f, N).wait_for_finished() File "/build/reproducible-path/aiorwlock-1.0.0/tests/test_rwlock.py", line 37, in __init__ t = asyncio.Task(task()) task: .task() running at /build/reproducible-path/aiorwlock-1.0.0/tests/test_rwlock.py:30> wait_for= cb=[gather.._done_callback() at /usr/lib/python3.11/asyncio/tasks.py:764] created at /build/reproducible-path/aiorwlock-1.0.0/tests/test_rwlock.py:37> _________________ test_readers_writers[debug:true-slow-pyloop] _________________ loop = <_UnixSelectorEventLoop running=False closed=False debug=True> fast_track = False @pytest.mark.asyncio async def test_readers_writers(loop, fast_track): rwlock = RWLock(fast=fast_track) N = 5 rlocked = [] wlocked = [] nlocked = [] async def r(): await rwlock.reader_lock.acquire() try: rlocked.append(1) await _wait() nlocked.append((len(rlocked), len(wlocked))) await _wait() rlocked.pop(-1) finally: rwlock.reader_lock.release() async def w(): await rwlock.writer_lock.acquire() try: wlocked.append(1) await _wait() nlocked.append((len(rlocked), len(wlocked))) await _wait() wlocked.pop(-1) finally: rwlock.writer_lock.release() b1 = Bunch(r, N) b2 = Bunch(w, N) await asyncio.sleep(0.0001) > await b1.wait_for_finished() ../../../tests/test_rwlock.py:299: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../../../tests/test_rwlock.py:41: in wait_for_finished await asyncio.gather(*self._futures) ../../../tests/test_rwlock.py:30: in task await f() ../../../tests/test_rwlock.py:273: in r await rwlock.reader_lock.acquire() aiorwlock/__init__.py:215: in acquire await self._lock.acquire_read() aiorwlock/__init__.py:81: in acquire_read await self._yield_after_acquire(self._RL) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = , lock_type = 1 async def _yield_after_acquire(self, lock_type: int) -> None: if self._do_yield: try: > await asyncio.sleep(0.0, loop=self._loop) E TypeError: sleep() got an unexpected keyword argument 'loop' aiorwlock/__init__.py:58: TypeError During handling of the above exception, another exception occurred: cls = func = . at 0xf65d4c08>, when = 'call' reraise = (, ) @classmethod def from_call( cls, func: Callable[[], TResult], when: Literal["collect", "setup", "call", "teardown"], reraise: Optional[ Union[Type[BaseException], Tuple[Type[BaseException], ...]] ] = None, ) -> "CallInfo[TResult]": """Call func, wrapping the result in a CallInfo. :param func: The function to call. Called without arguments. :param when: The phase in which the function is called. :param reraise: Exception or exceptions that shall propagate if raised by the function, instead of being wrapped in the CallInfo. """ excinfo = None start = timing.time() precise_start = timing.perf_counter() try: > result: Optional[TResult] = func() /usr/lib/python3/dist-packages/_pytest/runner.py:341: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/dist-packages/_pytest/runner.py:241: in lambda: runtest_hook(item=item, **kwds), when=when, reraise=reraise /usr/lib/python3/dist-packages/pluggy/_hooks.py:513: in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) /usr/lib/python3/dist-packages/pluggy/_manager.py:120: in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) /usr/lib/python3/dist-packages/_pytest/threadexception.py:87: in pytest_runtest_call yield from thread_exception_runtest_hook() /usr/lib/python3/dist-packages/_pytest/threadexception.py:63: in thread_exception_runtest_hook yield /usr/lib/python3/dist-packages/_pytest/unraisableexception.py:90: in pytest_runtest_call yield from unraisable_exception_runtest_hook() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ def unraisable_exception_runtest_hook() -> Generator[None, None, None]: with catch_unraisable_exception() as cm: try: yield finally: if cm.unraisable: if cm.unraisable.err_msg is not None: err_msg = cm.unraisable.err_msg else: err_msg = "Exception ignored in" msg = f"{err_msg}: {cm.unraisable.object!r}\n\n" msg += "".join( traceback.format_exception( cm.unraisable.exc_type, cm.unraisable.exc_value, cm.unraisable.exc_traceback, ) ) > warnings.warn(pytest.PytestUnraisableExceptionWarning(msg)) E pytest.PytestUnraisableExceptionWarning: Exception ignored in: E E Traceback (most recent call last): E File "/usr/lib/python3.11/traceback.py", line 425, in _extract_from_extended_frame_gen E result.append(FrameSummary( E ^^^^^^^^^^^^^ E ResourceWarning: unclosed /usr/lib/python3/dist-packages/_pytest/unraisableexception.py:80: PytestUnraisableExceptionWarning ---------------------------- Captured log teardown ----------------------------- ERROR asyncio:base_events.py:1785 Task was destroyed but it is pending! source_traceback: Object created at (most recent call last): File "", line 198, in _run_module_as_main File "", line 88, in _run_code File "/usr/lib/python3/dist-packages/pytest/__main__.py", line 7, in raise SystemExit(pytest.console_main()) File "/usr/lib/python3/dist-packages/_pytest/config/__init__.py", line 206, in console_main code = main() File "/usr/lib/python3/dist-packages/_pytest/config/__init__.py", line 178, in main ret: Union[ExitCode, int] = config.hook.pytest_cmdline_main( File "/usr/lib/python3/dist-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3/dist-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3/dist-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3/dist-packages/_pytest/main.py", line 332, in pytest_cmdline_main return wrap_session(config, _main) File "/usr/lib/python3/dist-packages/_pytest/main.py", line 285, in wrap_session session.exitstatus = doit(config, session) or 0 File "/usr/lib/python3/dist-packages/_pytest/main.py", line 339, in _main config.hook.pytest_runtestloop(session=session) File "/usr/lib/python3/dist-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3/dist-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3/dist-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3/dist-packages/_pytest/main.py", line 364, in pytest_runtestloop item.config.hook.pytest_runtest_protocol(item=item, nextitem=nextitem) File "/usr/lib/python3/dist-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3/dist-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3/dist-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3/dist-packages/_pytest/runner.py", line 116, in pytest_runtest_protocol runtestprotocol(item, nextitem=nextitem) File "/usr/lib/python3/dist-packages/_pytest/runner.py", line 135, in runtestprotocol reports.append(call_and_report(item, "call", log)) File "/usr/lib/python3/dist-packages/_pytest/runner.py", line 240, in call_and_report call = CallInfo.from_call( File "/usr/lib/python3/dist-packages/_pytest/runner.py", line 341, in from_call result: Optional[TResult] = func() File "/usr/lib/python3/dist-packages/_pytest/runner.py", line 241, in lambda: runtest_hook(item=item, **kwds), when=when, reraise=reraise File "/usr/lib/python3/dist-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3/dist-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3/dist-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3/dist-packages/_pytest/runner.py", line 173, in pytest_runtest_call item.runtest() File "/usr/lib/python3/dist-packages/_pytest/python.py", line 1632, in runtest self.ihook.pytest_pyfunc_call(pyfuncitem=self) File "/usr/lib/python3/dist-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3/dist-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3/dist-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3/dist-packages/_pytest/python.py", line 162, in pytest_pyfunc_call result = testfunction(**testargs) File "/usr/lib/python3/dist-packages/pytest_asyncio/plugin.py", line 478, in inner _loop.run_until_complete(task) File "/usr/lib/python3.11/asyncio/base_events.py", line 641, in run_until_complete self.run_forever() File "/usr/lib/python3.11/asyncio/base_events.py", line 608, in run_forever self._run_once() File "/usr/lib/python3.11/asyncio/base_events.py", line 1928, in _run_once handle._run() File "/usr/lib/python3.11/asyncio/events.py", line 84, in _run self._context.run(self._callback, *self._args) File "/build/reproducible-path/aiorwlock-1.0.0/tests/test_rwlock.py", line 241, in test_writer_then_reader_recursion await Bunch(f, N).wait_for_finished() File "/build/reproducible-path/aiorwlock-1.0.0/tests/test_rwlock.py", line 37, in __init__ t = asyncio.Task(task()) task: .task() running at /build/reproducible-path/aiorwlock-1.0.0/tests/test_rwlock.py:30> wait_for= cb=[gather.._done_callback() at /usr/lib/python3.11/asyncio/tasks.py:764] created at /build/reproducible-path/aiorwlock-1.0.0/tests/test_rwlock.py:37> ERROR asyncio:base_events.py:1785 Task was destroyed but it is pending! source_traceback: Object created at (most recent call last): File "", line 198, in _run_module_as_main File "", line 88, in _run_code File "/usr/lib/python3/dist-packages/pytest/__main__.py", line 7, in raise SystemExit(pytest.console_main()) File "/usr/lib/python3/dist-packages/_pytest/config/__init__.py", line 206, in console_main code = main() File "/usr/lib/python3/dist-packages/_pytest/config/__init__.py", line 178, in main ret: Union[ExitCode, int] = config.hook.pytest_cmdline_main( File "/usr/lib/python3/dist-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3/dist-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3/dist-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3/dist-packages/_pytest/main.py", line 332, in pytest_cmdline_main return wrap_session(config, _main) File "/usr/lib/python3/dist-packages/_pytest/main.py", line 285, in wrap_session session.exitstatus = doit(config, session) or 0 File "/usr/lib/python3/dist-packages/_pytest/main.py", line 339, in _main config.hook.pytest_runtestloop(session=session) File "/usr/lib/python3/dist-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3/dist-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3/dist-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3/dist-packages/_pytest/main.py", line 364, in pytest_runtestloop item.config.hook.pytest_runtest_protocol(item=item, nextitem=nextitem) File "/usr/lib/python3/dist-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3/dist-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3/dist-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3/dist-packages/_pytest/runner.py", line 116, in pytest_runtest_protocol runtestprotocol(item, nextitem=nextitem) File "/usr/lib/python3/dist-packages/_pytest/runner.py", line 135, in runtestprotocol reports.append(call_and_report(item, "call", log)) File "/usr/lib/python3/dist-packages/_pytest/runner.py", line 240, in call_and_report call = CallInfo.from_call( File "/usr/lib/python3/dist-packages/_pytest/runner.py", line 341, in from_call result: Optional[TResult] = func() File "/usr/lib/python3/dist-packages/_pytest/runner.py", line 241, in lambda: runtest_hook(item=item, **kwds), when=when, reraise=reraise File "/usr/lib/python3/dist-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3/dist-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3/dist-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3/dist-packages/_pytest/runner.py", line 173, in pytest_runtest_call item.runtest() File "/usr/lib/python3/dist-packages/_pytest/python.py", line 1632, in runtest self.ihook.pytest_pyfunc_call(pyfuncitem=self) File "/usr/lib/python3/dist-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3/dist-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3/dist-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3/dist-packages/_pytest/python.py", line 162, in pytest_pyfunc_call result = testfunction(**testargs) File "/usr/lib/python3/dist-packages/pytest_asyncio/plugin.py", line 478, in inner _loop.run_until_complete(task) File "/usr/lib/python3.11/asyncio/base_events.py", line 641, in run_until_complete self.run_forever() File "/usr/lib/python3.11/asyncio/base_events.py", line 608, in run_forever self._run_once() File "/usr/lib/python3.11/asyncio/base_events.py", line 1928, in _run_once handle._run() File "/usr/lib/python3.11/asyncio/events.py", line 84, in _run self._context.run(self._callback, *self._args) File "/build/reproducible-path/aiorwlock-1.0.0/tests/test_rwlock.py", line 241, in test_writer_then_reader_recursion await Bunch(f, N).wait_for_finished() File "/build/reproducible-path/aiorwlock-1.0.0/tests/test_rwlock.py", line 37, in __init__ t = asyncio.Task(task()) task: .task() running at /build/reproducible-path/aiorwlock-1.0.0/tests/test_rwlock.py:30> wait_for= cb=[gather.._done_callback() at /usr/lib/python3.11/asyncio/tasks.py:764] created at /build/reproducible-path/aiorwlock-1.0.0/tests/test_rwlock.py:37> ERROR asyncio:base_events.py:1785 Task was destroyed but it is pending! source_traceback: Object created at (most recent call last): File "", line 198, in _run_module_as_main File "", line 88, in _run_code File "/usr/lib/python3/dist-packages/pytest/__main__.py", line 7, in raise SystemExit(pytest.console_main()) File "/usr/lib/python3/dist-packages/_pytest/config/__init__.py", line 206, in console_main code = main() File "/usr/lib/python3/dist-packages/_pytest/config/__init__.py", line 178, in main ret: Union[ExitCode, int] = config.hook.pytest_cmdline_main( File "/usr/lib/python3/dist-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3/dist-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3/dist-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3/dist-packages/_pytest/main.py", line 332, in pytest_cmdline_main return wrap_session(config, _main) File "/usr/lib/python3/dist-packages/_pytest/main.py", line 285, in wrap_session session.exitstatus = doit(config, session) or 0 File "/usr/lib/python3/dist-packages/_pytest/main.py", line 339, in _main config.hook.pytest_runtestloop(session=session) File "/usr/lib/python3/dist-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3/dist-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3/dist-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3/dist-packages/_pytest/main.py", line 364, in pytest_runtestloop item.config.hook.pytest_runtest_protocol(item=item, nextitem=nextitem) File "/usr/lib/python3/dist-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3/dist-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3/dist-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3/dist-packages/_pytest/runner.py", line 116, in pytest_runtest_protocol runtestprotocol(item, nextitem=nextitem) File "/usr/lib/python3/dist-packages/_pytest/runner.py", line 135, in runtestprotocol reports.append(call_and_report(item, "call", log)) File "/usr/lib/python3/dist-packages/_pytest/runner.py", line 240, in call_and_report call = CallInfo.from_call( File "/usr/lib/python3/dist-packages/_pytest/runner.py", line 341, in from_call result: Optional[TResult] = func() File "/usr/lib/python3/dist-packages/_pytest/runner.py", line 241, in lambda: runtest_hook(item=item, **kwds), when=when, reraise=reraise File "/usr/lib/python3/dist-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3/dist-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3/dist-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3/dist-packages/_pytest/runner.py", line 173, in pytest_runtest_call item.runtest() File "/usr/lib/python3/dist-packages/_pytest/python.py", line 1632, in runtest self.ihook.pytest_pyfunc_call(pyfuncitem=self) File "/usr/lib/python3/dist-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3/dist-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3/dist-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3/dist-packages/_pytest/python.py", line 162, in pytest_pyfunc_call result = testfunction(**testargs) File "/usr/lib/python3/dist-packages/pytest_asyncio/plugin.py", line 478, in inner _loop.run_until_complete(task) File "/usr/lib/python3.11/asyncio/base_events.py", line 641, in run_until_complete self.run_forever() File "/usr/lib/python3.11/asyncio/base_events.py", line 608, in run_forever self._run_once() File "/usr/lib/python3.11/asyncio/base_events.py", line 1928, in _run_once handle._run() File "/usr/lib/python3.11/asyncio/events.py", line 84, in _run self._context.run(self._callback, *self._args) File "/build/reproducible-path/aiorwlock-1.0.0/tests/test_rwlock.py", line 241, in test_writer_then_reader_recursion await Bunch(f, N).wait_for_finished() File "/build/reproducible-path/aiorwlock-1.0.0/tests/test_rwlock.py", line 37, in __init__ t = asyncio.Task(task()) task: .task() running at /build/reproducible-path/aiorwlock-1.0.0/tests/test_rwlock.py:30> wait_for= cb=[gather.._done_callback() at /usr/lib/python3.11/asyncio/tasks.py:764] created at /build/reproducible-path/aiorwlock-1.0.0/tests/test_rwlock.py:37> ERROR asyncio:base_events.py:1785 Task was destroyed but it is pending! source_traceback: Object created at (most recent call last): File "", line 198, in _run_module_as_main File "", line 88, in _run_code File "/usr/lib/python3/dist-packages/pytest/__main__.py", line 7, in raise SystemExit(pytest.console_main()) File "/usr/lib/python3/dist-packages/_pytest/config/__init__.py", line 206, in console_main code = main() File "/usr/lib/python3/dist-packages/_pytest/config/__init__.py", line 178, in main ret: Union[ExitCode, int] = config.hook.pytest_cmdline_main( File "/usr/lib/python3/dist-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3/dist-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3/dist-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3/dist-packages/_pytest/main.py", line 332, in pytest_cmdline_main return wrap_session(config, _main) File "/usr/lib/python3/dist-packages/_pytest/main.py", line 285, in wrap_session session.exitstatus = doit(config, session) or 0 File "/usr/lib/python3/dist-packages/_pytest/main.py", line 339, in _main config.hook.pytest_runtestloop(session=session) File "/usr/lib/python3/dist-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3/dist-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3/dist-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3/dist-packages/_pytest/main.py", line 364, in pytest_runtestloop item.config.hook.pytest_runtest_protocol(item=item, nextitem=nextitem) File "/usr/lib/python3/dist-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3/dist-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3/dist-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3/dist-packages/_pytest/runner.py", line 116, in pytest_runtest_protocol runtestprotocol(item, nextitem=nextitem) File "/usr/lib/python3/dist-packages/_pytest/runner.py", line 135, in runtestprotocol reports.append(call_and_report(item, "call", log)) File "/usr/lib/python3/dist-packages/_pytest/runner.py", line 240, in call_and_report call = CallInfo.from_call( File "/usr/lib/python3/dist-packages/_pytest/runner.py", line 341, in from_call result: Optional[TResult] = func() File "/usr/lib/python3/dist-packages/_pytest/runner.py", line 241, in lambda: runtest_hook(item=item, **kwds), when=when, reraise=reraise File "/usr/lib/python3/dist-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3/dist-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3/dist-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3/dist-packages/_pytest/runner.py", line 173, in pytest_runtest_call item.runtest() File "/usr/lib/python3/dist-packages/_pytest/python.py", line 1632, in runtest self.ihook.pytest_pyfunc_call(pyfuncitem=self) File "/usr/lib/python3/dist-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3/dist-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3/dist-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3/dist-packages/_pytest/python.py", line 162, in pytest_pyfunc_call result = testfunction(**testargs) File "/usr/lib/python3/dist-packages/pytest_asyncio/plugin.py", line 478, in inner _loop.run_until_complete(task) File "/usr/lib/python3.11/asyncio/base_events.py", line 641, in run_until_complete self.run_forever() File "/usr/lib/python3.11/asyncio/base_events.py", line 608, in run_forever self._run_once() File "/usr/lib/python3.11/asyncio/base_events.py", line 1928, in _run_once handle._run() File "/usr/lib/python3.11/asyncio/events.py", line 84, in _run self._context.run(self._callback, *self._args) File "/build/reproducible-path/aiorwlock-1.0.0/tests/test_rwlock.py", line 241, in test_writer_then_reader_recursion await Bunch(f, N).wait_for_finished() File "/build/reproducible-path/aiorwlock-1.0.0/tests/test_rwlock.py", line 37, in __init__ t = asyncio.Task(task()) task: .task() running at /build/reproducible-path/aiorwlock-1.0.0/tests/test_rwlock.py:30> wait_for= cb=[gather.._done_callback() at /usr/lib/python3.11/asyncio/tasks.py:764] created at /build/reproducible-path/aiorwlock-1.0.0/tests/test_rwlock.py:37> ___________________ test_read_locked[debug:true-slow-pyloop] ___________________ loop = <_UnixSelectorEventLoop running=False closed=False debug=True> fast_track = False @pytest.mark.asyncio async def test_read_locked(loop, fast_track): rwlock = RWLock(fast=fast_track) assert not rwlock.reader_lock.locked > async with rwlock.reader_lock: ../../../tests/test_rwlock.py:469: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ aiorwlock/__init__.py:190: in __aenter__ await self.acquire() aiorwlock/__init__.py:215: in acquire await self._lock.acquire_read() aiorwlock/__init__.py:81: in acquire_read await self._yield_after_acquire(self._RL) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = , lock_type = 1 async def _yield_after_acquire(self, lock_type: int) -> None: if self._do_yield: try: > await asyncio.sleep(0.0, loop=self._loop) E TypeError: sleep() got an unexpected keyword argument 'loop' aiorwlock/__init__.py:58: TypeError __________________ test_write_locked[debug:true-slow-pyloop] ___________________ loop = <_UnixSelectorEventLoop running=False closed=False debug=True> fast_track = False @pytest.mark.asyncio async def test_write_locked(loop, fast_track): rwlock = RWLock(fast=fast_track) assert not rwlock.writer_lock.locked > async with rwlock.writer_lock: ../../../tests/test_rwlock.py:477: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ aiorwlock/__init__.py:190: in __aenter__ await self.acquire() aiorwlock/__init__.py:234: in acquire await self._lock.acquire_write() aiorwlock/__init__.py:116: in acquire_write await self._yield_after_acquire(self._WL) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = , lock_type = 2 async def _yield_after_acquire(self, lock_type: int) -> None: if self._do_yield: try: > await asyncio.sleep(0.0, loop=self._loop) E TypeError: sleep() got an unexpected keyword argument 'loop' aiorwlock/__init__.py:58: TypeError _________ test_write_read_lock_multiple_tasks[debug:true-slow-pyloop] __________ loop = <_UnixSelectorEventLoop running=False closed=False debug=True> fast_track = False @pytest.mark.asyncio async def test_write_read_lock_multiple_tasks(loop, fast_track): rwlock = RWLock(fast=fast_track) rl = rwlock.reader wl = rwlock.writer async def coro(): async with rl: assert not wl.locked assert rl.locked await asyncio.sleep(0.2, loop) > async with wl: ../../../tests/test_rwlock.py:493: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ aiorwlock/__init__.py:190: in __aenter__ await self.acquire() aiorwlock/__init__.py:234: in acquire await self._lock.acquire_write() aiorwlock/__init__.py:116: in acquire_write await self._yield_after_acquire(self._WL) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = , lock_type = 2 async def _yield_after_acquire(self, lock_type: int) -> None: if self._do_yield: try: > await asyncio.sleep(0.0, loop=self._loop) E TypeError: sleep() got an unexpected keyword argument 'loop' aiorwlock/__init__.py:58: TypeError ______________ test_read_context_manager[debug:true-slow-pyloop] _______________ loop = <_UnixSelectorEventLoop running=False closed=False debug=True> fast_track = False @pytest.mark.asyncio async def test_read_context_manager(loop, fast_track): rwlock = RWLock(fast=fast_track) reader = rwlock.reader_lock assert not reader.locked > async with reader: ../../../tests/test_rwlock.py:516: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ aiorwlock/__init__.py:190: in __aenter__ await self.acquire() aiorwlock/__init__.py:215: in acquire await self._lock.acquire_read() aiorwlock/__init__.py:81: in acquire_read await self._yield_after_acquire(self._RL) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = , lock_type = 1 async def _yield_after_acquire(self, lock_type: int) -> None: if self._do_yield: try: > await asyncio.sleep(0.0, loop=self._loop) E TypeError: sleep() got an unexpected keyword argument 'loop' aiorwlock/__init__.py:58: TypeError ______________ test_write_context_manager[debug:true-slow-pyloop] ______________ loop = <_UnixSelectorEventLoop running=False closed=False debug=True> fast_track = False @pytest.mark.asyncio async def test_write_context_manager(loop, fast_track): rwlock = RWLock(fast=fast_track) writer = rwlock.writer_lock assert not writer.locked > async with writer: ../../../tests/test_rwlock.py:525: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ aiorwlock/__init__.py:190: in __aenter__ await self.acquire() aiorwlock/__init__.py:234: in acquire await self._lock.acquire_write() aiorwlock/__init__.py:116: in acquire_write await self._yield_after_acquire(self._WL) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = , lock_type = 2 async def _yield_after_acquire(self, lock_type: int) -> None: if self._do_yield: try: > await asyncio.sleep(0.0, loop=self._loop) E TypeError: sleep() got an unexpected keyword argument 'loop' aiorwlock/__init__.py:58: TypeError _________________ test_await_read_lock[debug:true-slow-pyloop] _________________ loop = <_UnixSelectorEventLoop running=False closed=False debug=True> fast_track = False @pytest.mark.asyncio async def test_await_read_lock(loop, fast_track): rwlock = RWLock(fast=fast_track) reader = rwlock.reader_lock assert not reader.locked > async with reader: ../../../tests/test_rwlock.py:534: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ aiorwlock/__init__.py:190: in __aenter__ await self.acquire() aiorwlock/__init__.py:215: in acquire await self._lock.acquire_read() aiorwlock/__init__.py:81: in acquire_read await self._yield_after_acquire(self._RL) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = , lock_type = 1 async def _yield_after_acquire(self, lock_type: int) -> None: if self._do_yield: try: > await asyncio.sleep(0.0, loop=self._loop) E TypeError: sleep() got an unexpected keyword argument 'loop' aiorwlock/__init__.py:58: TypeError ________________ test_await_write_lock[debug:true-slow-pyloop] _________________ loop = <_UnixSelectorEventLoop running=False closed=False debug=True> fast_track = False @pytest.mark.asyncio async def test_await_write_lock(loop, fast_track): rwlock = RWLock(fast=fast_track) writer = rwlock.writer_lock assert not writer.locked > async with writer: ../../../tests/test_rwlock.py:543: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ aiorwlock/__init__.py:190: in __aenter__ await self.acquire() aiorwlock/__init__.py:234: in acquire await self._lock.acquire_write() aiorwlock/__init__.py:116: in acquire_write await self._yield_after_acquire(self._WL) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = , lock_type = 2 async def _yield_after_acquire(self, lock_type: int) -> None: if self._do_yield: try: > await asyncio.sleep(0.0, loop=self._loop) E TypeError: sleep() got an unexpected keyword argument 'loop' aiorwlock/__init__.py:58: TypeError ______________ test_read_upgrade_write_release[debug:true-uvloop] ______________ loop = @pytest.mark.asyncio async def test_read_upgrade_write_release(loop): rwlock = RWLock() > await rwlock.writer_lock.acquire() ../../../tests/test_rwlock.py:145: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ aiorwlock/__init__.py:234: in acquire await self._lock.acquire_write() aiorwlock/__init__.py:116: in acquire_write await self._yield_after_acquire(self._WL) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = , lock_type = 2 async def _yield_after_acquire(self, lock_type: int) -> None: if self._do_yield: try: > await asyncio.sleep(0.0, loop=self._loop) E TypeError: sleep() got an unexpected keyword argument 'loop' aiorwlock/__init__.py:58: TypeError ________________ test_writer_recursion_fail[debug:true-uvloop] _________________ loop = @pytest.mark.asyncio async def test_writer_recursion_fail(loop): rwlock = RWLock() N = 5 locked = [] async def f(): await rwlock.reader_lock.acquire() try: with pytest.raises(RuntimeError): await rwlock.writer_lock.acquire() locked.append(1) finally: rwlock.reader_lock.release() > await Bunch(f, N).wait_for_finished() ../../../tests/test_rwlock.py:260: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../../../tests/test_rwlock.py:41: in wait_for_finished await asyncio.gather(*self._futures) ../../../tests/test_rwlock.py:30: in task await f() ../../../tests/test_rwlock.py:252: in f await rwlock.reader_lock.acquire() aiorwlock/__init__.py:215: in acquire await self._lock.acquire_read() aiorwlock/__init__.py:81: in acquire_read await self._yield_after_acquire(self._RL) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = , lock_type = 1 async def _yield_after_acquire(self, lock_type: int) -> None: if self._do_yield: try: > await asyncio.sleep(0.0, loop=self._loop) E TypeError: sleep() got an unexpected keyword argument 'loop' aiorwlock/__init__.py:58: TypeError During handling of the above exception, another exception occurred: cls = func = . at 0xf616a988>, when = 'call' reraise = (, ) @classmethod def from_call( cls, func: Callable[[], TResult], when: Literal["collect", "setup", "call", "teardown"], reraise: Optional[ Union[Type[BaseException], Tuple[Type[BaseException], ...]] ] = None, ) -> "CallInfo[TResult]": """Call func, wrapping the result in a CallInfo. :param func: The function to call. Called without arguments. :param when: The phase in which the function is called. :param reraise: Exception or exceptions that shall propagate if raised by the function, instead of being wrapped in the CallInfo. """ excinfo = None start = timing.time() precise_start = timing.perf_counter() try: > result: Optional[TResult] = func() /usr/lib/python3/dist-packages/_pytest/runner.py:341: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/dist-packages/_pytest/runner.py:241: in lambda: runtest_hook(item=item, **kwds), when=when, reraise=reraise /usr/lib/python3/dist-packages/pluggy/_hooks.py:513: in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) /usr/lib/python3/dist-packages/pluggy/_manager.py:120: in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) /usr/lib/python3/dist-packages/_pytest/threadexception.py:87: in pytest_runtest_call yield from thread_exception_runtest_hook() /usr/lib/python3/dist-packages/_pytest/threadexception.py:63: in thread_exception_runtest_hook yield /usr/lib/python3/dist-packages/_pytest/unraisableexception.py:90: in pytest_runtest_call yield from unraisable_exception_runtest_hook() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ def unraisable_exception_runtest_hook() -> Generator[None, None, None]: with catch_unraisable_exception() as cm: try: yield finally: if cm.unraisable: if cm.unraisable.err_msg is not None: err_msg = cm.unraisable.err_msg else: err_msg = "Exception ignored in" msg = f"{err_msg}: {cm.unraisable.object!r}\n\n" msg += "".join( traceback.format_exception( cm.unraisable.exc_type, cm.unraisable.exc_value, cm.unraisable.exc_traceback, ) ) > warnings.warn(pytest.PytestUnraisableExceptionWarning(msg)) E pytest.PytestUnraisableExceptionWarning: Exception ignored in: E E Traceback (most recent call last): E File "/usr/lib/python3.11/traceback.py", line 412, in _extract_from_extended_frame_gen E fnames = set() E ^^^^^ E ResourceWarning: unclosed /usr/lib/python3/dist-packages/_pytest/unraisableexception.py:80: PytestUnraisableExceptionWarning ____________________ test_writer_success[debug:true-uvloop] ____________________ loop = @pytest.mark.asyncio async def test_writer_success(loop): # Verify that a writer can get access rwlock = RWLock() N = 5 reads = 0 writes = 0 async def r(): # read until we achive write successes nonlocal reads, writes while writes < 2: # print("current pre-reads", reads) await rwlock.reader_lock.acquire() try: reads += 1 # print("current reads", reads) finally: rwlock.reader_lock.release() async def w(): nonlocal reads, writes while reads == 0: await _wait() for _ in range(2): await _wait() # print("current pre-writes", reads) await rwlock.writer_lock.acquire() try: writes += 1 # print("current writes", reads) finally: rwlock.writer_lock.release() b1 = Bunch(r, N) b2 = Bunch(w, 1) > await b1.wait_for_finished() ../../../tests/test_rwlock.py:356: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../../../tests/test_rwlock.py:41: in wait_for_finished await asyncio.gather(*self._futures) ../../../tests/test_rwlock.py:30: in task await f() ../../../tests/test_rwlock.py:330: in r await rwlock.reader_lock.acquire() aiorwlock/__init__.py:215: in acquire await self._lock.acquire_read() aiorwlock/__init__.py:81: in acquire_read await self._yield_after_acquire(self._RL) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = , lock_type = 1 async def _yield_after_acquire(self, lock_type: int) -> None: if self._do_yield: try: > await asyncio.sleep(0.0, loop=self._loop) E TypeError: sleep() got an unexpected keyword argument 'loop' aiorwlock/__init__.py:58: TypeError During handling of the above exception, another exception occurred: cls = func = . at 0xf616aca8>, when = 'call' reraise = (, ) @classmethod def from_call( cls, func: Callable[[], TResult], when: Literal["collect", "setup", "call", "teardown"], reraise: Optional[ Union[Type[BaseException], Tuple[Type[BaseException], ...]] ] = None, ) -> "CallInfo[TResult]": """Call func, wrapping the result in a CallInfo. :param func: The function to call. Called without arguments. :param when: The phase in which the function is called. :param reraise: Exception or exceptions that shall propagate if raised by the function, instead of being wrapped in the CallInfo. """ excinfo = None start = timing.time() precise_start = timing.perf_counter() try: > result: Optional[TResult] = func() /usr/lib/python3/dist-packages/_pytest/runner.py:341: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/dist-packages/_pytest/runner.py:241: in lambda: runtest_hook(item=item, **kwds), when=when, reraise=reraise /usr/lib/python3/dist-packages/pluggy/_hooks.py:513: in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) /usr/lib/python3/dist-packages/pluggy/_manager.py:120: in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) /usr/lib/python3/dist-packages/_pytest/threadexception.py:87: in pytest_runtest_call yield from thread_exception_runtest_hook() /usr/lib/python3/dist-packages/_pytest/threadexception.py:63: in thread_exception_runtest_hook yield /usr/lib/python3/dist-packages/_pytest/unraisableexception.py:90: in pytest_runtest_call yield from unraisable_exception_runtest_hook() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ def unraisable_exception_runtest_hook() -> Generator[None, None, None]: with catch_unraisable_exception() as cm: try: yield finally: if cm.unraisable: if cm.unraisable.err_msg is not None: err_msg = cm.unraisable.err_msg else: err_msg = "Exception ignored in" msg = f"{err_msg}: {cm.unraisable.object!r}\n\n" msg += "".join( traceback.format_exception( cm.unraisable.exc_type, cm.unraisable.exc_value, cm.unraisable.exc_traceback, ) ) > warnings.warn(pytest.PytestUnraisableExceptionWarning(msg)) E pytest.PytestUnraisableExceptionWarning: Exception ignored in: E E Traceback (most recent call last): E File "/usr/lib/python3.11/traceback.py", line 425, in _extract_from_extended_frame_gen E result.append(FrameSummary( E ^^^^^^^^^^^^^ E ResourceWarning: unclosed /usr/lib/python3/dist-packages/_pytest/unraisableexception.py:80: PytestUnraisableExceptionWarning _________________ test_writer_success_fast[debug:true-uvloop] __________________ cls = func = . at 0xf616ab18>, when = 'call' reraise = (, ) @classmethod def from_call( cls, func: Callable[[], TResult], when: Literal["collect", "setup", "call", "teardown"], reraise: Optional[ Union[Type[BaseException], Tuple[Type[BaseException], ...]] ] = None, ) -> "CallInfo[TResult]": """Call func, wrapping the result in a CallInfo. :param func: The function to call. Called without arguments. :param when: The phase in which the function is called. :param reraise: Exception or exceptions that shall propagate if raised by the function, instead of being wrapped in the CallInfo. """ excinfo = None start = timing.time() precise_start = timing.perf_counter() try: > result: Optional[TResult] = func() /usr/lib/python3/dist-packages/_pytest/runner.py:341: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/dist-packages/_pytest/runner.py:241: in lambda: runtest_hook(item=item, **kwds), when=when, reraise=reraise /usr/lib/python3/dist-packages/pluggy/_hooks.py:513: in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) /usr/lib/python3/dist-packages/pluggy/_manager.py:120: in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) /usr/lib/python3/dist-packages/_pytest/threadexception.py:87: in pytest_runtest_call yield from thread_exception_runtest_hook() /usr/lib/python3/dist-packages/_pytest/threadexception.py:63: in thread_exception_runtest_hook yield /usr/lib/python3/dist-packages/_pytest/unraisableexception.py:90: in pytest_runtest_call yield from unraisable_exception_runtest_hook() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ def unraisable_exception_runtest_hook() -> Generator[None, None, None]: with catch_unraisable_exception() as cm: try: yield finally: if cm.unraisable: if cm.unraisable.err_msg is not None: err_msg = cm.unraisable.err_msg else: err_msg = "Exception ignored in" msg = f"{err_msg}: {cm.unraisable.object!r}\n\n" msg += "".join( traceback.format_exception( cm.unraisable.exc_type, cm.unraisable.exc_value, cm.unraisable.exc_traceback, ) ) > warnings.warn(pytest.PytestUnraisableExceptionWarning(msg)) E pytest.PytestUnraisableExceptionWarning: Exception ignored in: E E Traceback (most recent call last): E File "/usr/lib/python3.11/traceback.py", line 425, in _extract_from_extended_frame_gen E result.append(FrameSummary( E ^^^^^^^^^^^^^ E ResourceWarning: unclosed /usr/lib/python3/dist-packages/_pytest/unraisableexception.py:80: PytestUnraisableExceptionWarning ---------------------------- Captured log teardown ----------------------------- ERROR asyncio:conftest.py:44 Task was destroyed but it is pending! source_traceback: Object created at (most recent call last): File "", line 198, in _run_module_as_main File "", line 88, in _run_code File "/usr/lib/python3/dist-packages/pytest/__main__.py", line 7, in raise SystemExit(pytest.console_main()) File "/usr/lib/python3/dist-packages/_pytest/config/__init__.py", line 206, in console_main code = main() File "/usr/lib/python3/dist-packages/_pytest/config/__init__.py", line 178, in main ret: Union[ExitCode, int] = config.hook.pytest_cmdline_main( File "/usr/lib/python3/dist-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3/dist-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3/dist-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3/dist-packages/_pytest/main.py", line 332, in pytest_cmdline_main return wrap_session(config, _main) File "/usr/lib/python3/dist-packages/_pytest/main.py", line 285, in wrap_session session.exitstatus = doit(config, session) or 0 File "/usr/lib/python3/dist-packages/_pytest/main.py", line 339, in _main config.hook.pytest_runtestloop(session=session) File "/usr/lib/python3/dist-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3/dist-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3/dist-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3/dist-packages/_pytest/main.py", line 364, in pytest_runtestloop item.config.hook.pytest_runtest_protocol(item=item, nextitem=nextitem) File "/usr/lib/python3/dist-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3/dist-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3/dist-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3/dist-packages/_pytest/runner.py", line 116, in pytest_runtest_protocol runtestprotocol(item, nextitem=nextitem) File "/usr/lib/python3/dist-packages/_pytest/runner.py", line 135, in runtestprotocol reports.append(call_and_report(item, "call", log)) File "/usr/lib/python3/dist-packages/_pytest/runner.py", line 240, in call_and_report call = CallInfo.from_call( File "/usr/lib/python3/dist-packages/_pytest/runner.py", line 341, in from_call result: Optional[TResult] = func() File "/usr/lib/python3/dist-packages/_pytest/runner.py", line 241, in lambda: runtest_hook(item=item, **kwds), when=when, reraise=reraise File "/usr/lib/python3/dist-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3/dist-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3/dist-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3/dist-packages/_pytest/runner.py", line 173, in pytest_runtest_call item.runtest() File "/usr/lib/python3/dist-packages/_pytest/python.py", line 1632, in runtest self.ihook.pytest_pyfunc_call(pyfuncitem=self) File "/usr/lib/python3/dist-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3/dist-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3/dist-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3/dist-packages/_pytest/python.py", line 162, in pytest_pyfunc_call result = testfunction(**testargs) File "/usr/lib/python3/dist-packages/pytest_asyncio/plugin.py", line 478, in inner _loop.run_until_complete(task) File "/build/reproducible-path/aiorwlock-1.0.0/tests/test_rwlock.py", line 354, in test_writer_success b2 = Bunch(w, 1) File "/build/reproducible-path/aiorwlock-1.0.0/tests/test_rwlock.py", line 37, in __init__ t = asyncio.Task(task()) task: .task() running at /build/reproducible-path/aiorwlock-1.0.0/tests/test_rwlock.py:30> wait_for= created at /build/reproducible-path/aiorwlock-1.0.0/tests/test_rwlock.py:37> ____________ test_writer_success_with_statement[debug:true-uvloop] _____________ loop = @pytest.mark.asyncio async def test_writer_success_with_statement(loop): # Verify that a writer can get access rwlock = RWLock() N = 5 reads = 0 writes = 0 async def r(): # read until we achive write successes nonlocal reads, writes while writes < 2: # print("current pre-reads", reads) async with rwlock.reader_lock: reads += 1 # print("current reads", reads) async def w(): nonlocal reads, writes while reads == 0: await _wait() for _ in range(2): await _wait() # print("current pre-writes", reads) async with rwlock.writer_lock: writes += 1 b1 = Bunch(r, N) b2 = Bunch(w, 1) > await b1.wait_for_finished() ../../../tests/test_rwlock.py:442: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../../../tests/test_rwlock.py:41: in wait_for_finished await asyncio.gather(*self._futures) ../../../tests/test_rwlock.py:30: in task await f() ../../../tests/test_rwlock.py:423: in r async with rwlock.reader_lock: aiorwlock/__init__.py:190: in __aenter__ await self.acquire() aiorwlock/__init__.py:215: in acquire await self._lock.acquire_read() aiorwlock/__init__.py:81: in acquire_read await self._yield_after_acquire(self._RL) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = , lock_type = 1 async def _yield_after_acquire(self, lock_type: int) -> None: if self._do_yield: try: > await asyncio.sleep(0.0, loop=self._loop) E TypeError: sleep() got an unexpected keyword argument 'loop' aiorwlock/__init__.py:58: TypeError During handling of the above exception, another exception occurred: cls = func = . at 0xf616ac58>, when = 'call' reraise = (, ) @classmethod def from_call( cls, func: Callable[[], TResult], when: Literal["collect", "setup", "call", "teardown"], reraise: Optional[ Union[Type[BaseException], Tuple[Type[BaseException], ...]] ] = None, ) -> "CallInfo[TResult]": """Call func, wrapping the result in a CallInfo. :param func: The function to call. Called without arguments. :param when: The phase in which the function is called. :param reraise: Exception or exceptions that shall propagate if raised by the function, instead of being wrapped in the CallInfo. """ excinfo = None start = timing.time() precise_start = timing.perf_counter() try: > result: Optional[TResult] = func() /usr/lib/python3/dist-packages/_pytest/runner.py:341: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/dist-packages/_pytest/runner.py:241: in lambda: runtest_hook(item=item, **kwds), when=when, reraise=reraise /usr/lib/python3/dist-packages/pluggy/_hooks.py:513: in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) /usr/lib/python3/dist-packages/pluggy/_manager.py:120: in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) /usr/lib/python3/dist-packages/_pytest/threadexception.py:87: in pytest_runtest_call yield from thread_exception_runtest_hook() /usr/lib/python3/dist-packages/_pytest/threadexception.py:63: in thread_exception_runtest_hook yield /usr/lib/python3/dist-packages/_pytest/unraisableexception.py:90: in pytest_runtest_call yield from unraisable_exception_runtest_hook() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ def unraisable_exception_runtest_hook() -> Generator[None, None, None]: with catch_unraisable_exception() as cm: try: yield finally: if cm.unraisable: if cm.unraisable.err_msg is not None: err_msg = cm.unraisable.err_msg else: err_msg = "Exception ignored in" msg = f"{err_msg}: {cm.unraisable.object!r}\n\n" msg += "".join( traceback.format_exception( cm.unraisable.exc_type, cm.unraisable.exc_value, cm.unraisable.exc_traceback, ) ) > warnings.warn(pytest.PytestUnraisableExceptionWarning(msg)) E pytest.PytestUnraisableExceptionWarning: Exception ignored in: E E Traceback (most recent call last): E File "/usr/lib/python3.11/traceback.py", line 425, in _extract_from_extended_frame_gen E result.append(FrameSummary( E ^^^^^^^^^^^^^ E ResourceWarning: unclosed /usr/lib/python3/dist-packages/_pytest/unraisableexception.py:80: PytestUnraisableExceptionWarning ______________ test_read_upgrade_write_release[debug:true-pyloop] ______________ loop = <_UnixSelectorEventLoop running=False closed=False debug=True> @pytest.mark.asyncio async def test_read_upgrade_write_release(loop): rwlock = RWLock() > await rwlock.writer_lock.acquire() ../../../tests/test_rwlock.py:145: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ aiorwlock/__init__.py:234: in acquire await self._lock.acquire_write() aiorwlock/__init__.py:116: in acquire_write await self._yield_after_acquire(self._WL) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = , lock_type = 2 async def _yield_after_acquire(self, lock_type: int) -> None: if self._do_yield: try: > await asyncio.sleep(0.0, loop=self._loop) E TypeError: sleep() got an unexpected keyword argument 'loop' aiorwlock/__init__.py:58: TypeError ________________ test_writer_recursion_fail[debug:true-pyloop] _________________ loop = <_UnixSelectorEventLoop running=False closed=False debug=True> @pytest.mark.asyncio async def test_writer_recursion_fail(loop): rwlock = RWLock() N = 5 locked = [] async def f(): await rwlock.reader_lock.acquire() try: with pytest.raises(RuntimeError): await rwlock.writer_lock.acquire() locked.append(1) finally: rwlock.reader_lock.release() > await Bunch(f, N).wait_for_finished() ../../../tests/test_rwlock.py:260: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../../../tests/test_rwlock.py:41: in wait_for_finished await asyncio.gather(*self._futures) ../../../tests/test_rwlock.py:30: in task await f() ../../../tests/test_rwlock.py:252: in f await rwlock.reader_lock.acquire() aiorwlock/__init__.py:215: in acquire await self._lock.acquire_read() aiorwlock/__init__.py:81: in acquire_read await self._yield_after_acquire(self._RL) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = , lock_type = 1 async def _yield_after_acquire(self, lock_type: int) -> None: if self._do_yield: try: > await asyncio.sleep(0.0, loop=self._loop) E TypeError: sleep() got an unexpected keyword argument 'loop' aiorwlock/__init__.py:58: TypeError During handling of the above exception, another exception occurred: cls = func = . at 0xf660be38>, when = 'call' reraise = (, ) @classmethod def from_call( cls, func: Callable[[], TResult], when: Literal["collect", "setup", "call", "teardown"], reraise: Optional[ Union[Type[BaseException], Tuple[Type[BaseException], ...]] ] = None, ) -> "CallInfo[TResult]": """Call func, wrapping the result in a CallInfo. :param func: The function to call. Called without arguments. :param when: The phase in which the function is called. :param reraise: Exception or exceptions that shall propagate if raised by the function, instead of being wrapped in the CallInfo. """ excinfo = None start = timing.time() precise_start = timing.perf_counter() try: > result: Optional[TResult] = func() /usr/lib/python3/dist-packages/_pytest/runner.py:341: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/dist-packages/_pytest/runner.py:241: in lambda: runtest_hook(item=item, **kwds), when=when, reraise=reraise /usr/lib/python3/dist-packages/pluggy/_hooks.py:513: in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) /usr/lib/python3/dist-packages/pluggy/_manager.py:120: in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) /usr/lib/python3/dist-packages/_pytest/threadexception.py:87: in pytest_runtest_call yield from thread_exception_runtest_hook() /usr/lib/python3/dist-packages/_pytest/threadexception.py:63: in thread_exception_runtest_hook yield /usr/lib/python3/dist-packages/_pytest/unraisableexception.py:90: in pytest_runtest_call yield from unraisable_exception_runtest_hook() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ def unraisable_exception_runtest_hook() -> Generator[None, None, None]: with catch_unraisable_exception() as cm: try: yield finally: if cm.unraisable: if cm.unraisable.err_msg is not None: err_msg = cm.unraisable.err_msg else: err_msg = "Exception ignored in" msg = f"{err_msg}: {cm.unraisable.object!r}\n\n" msg += "".join( traceback.format_exception( cm.unraisable.exc_type, cm.unraisable.exc_value, cm.unraisable.exc_traceback, ) ) > warnings.warn(pytest.PytestUnraisableExceptionWarning(msg)) E pytest.PytestUnraisableExceptionWarning: Exception ignored in: E E Traceback (most recent call last): E File "/usr/lib/python3.11/traceback.py", line 425, in _extract_from_extended_frame_gen E result.append(FrameSummary( E ^^^^^^^^^^^^^ E ResourceWarning: unclosed /usr/lib/python3/dist-packages/_pytest/unraisableexception.py:80: PytestUnraisableExceptionWarning ____________________ test_writer_success[debug:true-pyloop] ____________________ loop = <_UnixSelectorEventLoop running=False closed=False debug=True> @pytest.mark.asyncio async def test_writer_success(loop): # Verify that a writer can get access rwlock = RWLock() N = 5 reads = 0 writes = 0 async def r(): # read until we achive write successes nonlocal reads, writes while writes < 2: # print("current pre-reads", reads) await rwlock.reader_lock.acquire() try: reads += 1 # print("current reads", reads) finally: rwlock.reader_lock.release() async def w(): nonlocal reads, writes while reads == 0: await _wait() for _ in range(2): await _wait() # print("current pre-writes", reads) await rwlock.writer_lock.acquire() try: writes += 1 # print("current writes", reads) finally: rwlock.writer_lock.release() b1 = Bunch(r, N) b2 = Bunch(w, 1) > await b1.wait_for_finished() ../../../tests/test_rwlock.py:356: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../../../tests/test_rwlock.py:41: in wait_for_finished await asyncio.gather(*self._futures) ../../../tests/test_rwlock.py:30: in task await f() ../../../tests/test_rwlock.py:330: in r await rwlock.reader_lock.acquire() aiorwlock/__init__.py:215: in acquire await self._lock.acquire_read() aiorwlock/__init__.py:81: in acquire_read await self._yield_after_acquire(self._RL) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = , lock_type = 1 async def _yield_after_acquire(self, lock_type: int) -> None: if self._do_yield: try: > await asyncio.sleep(0.0, loop=self._loop) E TypeError: sleep() got an unexpected keyword argument 'loop' aiorwlock/__init__.py:58: TypeError During handling of the above exception, another exception occurred: cls = func = . at 0xf660b848>, when = 'call' reraise = (, ) @classmethod def from_call( cls, func: Callable[[], TResult], when: Literal["collect", "setup", "call", "teardown"], reraise: Optional[ Union[Type[BaseException], Tuple[Type[BaseException], ...]] ] = None, ) -> "CallInfo[TResult]": """Call func, wrapping the result in a CallInfo. :param func: The function to call. Called without arguments. :param when: The phase in which the function is called. :param reraise: Exception or exceptions that shall propagate if raised by the function, instead of being wrapped in the CallInfo. """ excinfo = None start = timing.time() precise_start = timing.perf_counter() try: > result: Optional[TResult] = func() /usr/lib/python3/dist-packages/_pytest/runner.py:341: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/dist-packages/_pytest/runner.py:241: in lambda: runtest_hook(item=item, **kwds), when=when, reraise=reraise /usr/lib/python3/dist-packages/pluggy/_hooks.py:513: in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) /usr/lib/python3/dist-packages/pluggy/_manager.py:120: in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) /usr/lib/python3/dist-packages/_pytest/threadexception.py:87: in pytest_runtest_call yield from thread_exception_runtest_hook() /usr/lib/python3/dist-packages/_pytest/threadexception.py:63: in thread_exception_runtest_hook yield /usr/lib/python3/dist-packages/_pytest/unraisableexception.py:90: in pytest_runtest_call yield from unraisable_exception_runtest_hook() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ def unraisable_exception_runtest_hook() -> Generator[None, None, None]: with catch_unraisable_exception() as cm: try: yield finally: if cm.unraisable: if cm.unraisable.err_msg is not None: err_msg = cm.unraisable.err_msg else: err_msg = "Exception ignored in" msg = f"{err_msg}: {cm.unraisable.object!r}\n\n" msg += "".join( traceback.format_exception( cm.unraisable.exc_type, cm.unraisable.exc_value, cm.unraisable.exc_traceback, ) ) > warnings.warn(pytest.PytestUnraisableExceptionWarning(msg)) E pytest.PytestUnraisableExceptionWarning: Exception ignored in: E E Traceback (most recent call last): E File "/usr/lib/python3.11/traceback.py", line 425, in _extract_from_extended_frame_gen E result.append(FrameSummary( E ^^^^^^^^^^^^^ E ResourceWarning: unclosed /usr/lib/python3/dist-packages/_pytest/unraisableexception.py:80: PytestUnraisableExceptionWarning _________________ test_writer_success_fast[debug:true-pyloop] __________________ cls = func = . at 0xf660b3e8>, when = 'call' reraise = (, ) @classmethod def from_call( cls, func: Callable[[], TResult], when: Literal["collect", "setup", "call", "teardown"], reraise: Optional[ Union[Type[BaseException], Tuple[Type[BaseException], ...]] ] = None, ) -> "CallInfo[TResult]": """Call func, wrapping the result in a CallInfo. :param func: The function to call. Called without arguments. :param when: The phase in which the function is called. :param reraise: Exception or exceptions that shall propagate if raised by the function, instead of being wrapped in the CallInfo. """ excinfo = None start = timing.time() precise_start = timing.perf_counter() try: > result: Optional[TResult] = func() /usr/lib/python3/dist-packages/_pytest/runner.py:341: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/dist-packages/_pytest/runner.py:241: in lambda: runtest_hook(item=item, **kwds), when=when, reraise=reraise /usr/lib/python3/dist-packages/pluggy/_hooks.py:513: in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) /usr/lib/python3/dist-packages/pluggy/_manager.py:120: in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) /usr/lib/python3/dist-packages/_pytest/threadexception.py:87: in pytest_runtest_call yield from thread_exception_runtest_hook() /usr/lib/python3/dist-packages/_pytest/threadexception.py:63: in thread_exception_runtest_hook yield /usr/lib/python3/dist-packages/_pytest/unraisableexception.py:90: in pytest_runtest_call yield from unraisable_exception_runtest_hook() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ def unraisable_exception_runtest_hook() -> Generator[None, None, None]: with catch_unraisable_exception() as cm: try: yield finally: if cm.unraisable: if cm.unraisable.err_msg is not None: err_msg = cm.unraisable.err_msg else: err_msg = "Exception ignored in" msg = f"{err_msg}: {cm.unraisable.object!r}\n\n" msg += "".join( traceback.format_exception( cm.unraisable.exc_type, cm.unraisable.exc_value, cm.unraisable.exc_traceback, ) ) > warnings.warn(pytest.PytestUnraisableExceptionWarning(msg)) E pytest.PytestUnraisableExceptionWarning: Exception ignored in: E E Traceback (most recent call last): E File "/usr/lib/python3.11/traceback.py", line 425, in _extract_from_extended_frame_gen E result.append(FrameSummary( E ^^^^^^^^^^^^^ E ResourceWarning: unclosed /usr/lib/python3/dist-packages/_pytest/unraisableexception.py:80: PytestUnraisableExceptionWarning ---------------------------- Captured log teardown ----------------------------- ERROR asyncio:base_events.py:1785 Task was destroyed but it is pending! source_traceback: Object created at (most recent call last): File "", line 198, in _run_module_as_main File "", line 88, in _run_code File "/usr/lib/python3/dist-packages/pytest/__main__.py", line 7, in raise SystemExit(pytest.console_main()) File "/usr/lib/python3/dist-packages/_pytest/config/__init__.py", line 206, in console_main code = main() File "/usr/lib/python3/dist-packages/_pytest/config/__init__.py", line 178, in main ret: Union[ExitCode, int] = config.hook.pytest_cmdline_main( File "/usr/lib/python3/dist-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3/dist-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3/dist-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3/dist-packages/_pytest/main.py", line 332, in pytest_cmdline_main return wrap_session(config, _main) File "/usr/lib/python3/dist-packages/_pytest/main.py", line 285, in wrap_session session.exitstatus = doit(config, session) or 0 File "/usr/lib/python3/dist-packages/_pytest/main.py", line 339, in _main config.hook.pytest_runtestloop(session=session) File "/usr/lib/python3/dist-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3/dist-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3/dist-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3/dist-packages/_pytest/main.py", line 364, in pytest_runtestloop item.config.hook.pytest_runtest_protocol(item=item, nextitem=nextitem) File "/usr/lib/python3/dist-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3/dist-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3/dist-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3/dist-packages/_pytest/runner.py", line 116, in pytest_runtest_protocol runtestprotocol(item, nextitem=nextitem) File "/usr/lib/python3/dist-packages/_pytest/runner.py", line 135, in runtestprotocol reports.append(call_and_report(item, "call", log)) File "/usr/lib/python3/dist-packages/_pytest/runner.py", line 240, in call_and_report call = CallInfo.from_call( File "/usr/lib/python3/dist-packages/_pytest/runner.py", line 341, in from_call result: Optional[TResult] = func() File "/usr/lib/python3/dist-packages/_pytest/runner.py", line 241, in lambda: runtest_hook(item=item, **kwds), when=when, reraise=reraise File "/usr/lib/python3/dist-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3/dist-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3/dist-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3/dist-packages/_pytest/runner.py", line 173, in pytest_runtest_call item.runtest() File "/usr/lib/python3/dist-packages/_pytest/python.py", line 1632, in runtest self.ihook.pytest_pyfunc_call(pyfuncitem=self) File "/usr/lib/python3/dist-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3/dist-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3/dist-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3/dist-packages/_pytest/python.py", line 162, in pytest_pyfunc_call result = testfunction(**testargs) File "/usr/lib/python3/dist-packages/pytest_asyncio/plugin.py", line 478, in inner _loop.run_until_complete(task) File "/usr/lib/python3.11/asyncio/base_events.py", line 641, in run_until_complete self.run_forever() File "/usr/lib/python3.11/asyncio/base_events.py", line 608, in run_forever self._run_once() File "/usr/lib/python3.11/asyncio/base_events.py", line 1928, in _run_once handle._run() File "/usr/lib/python3.11/asyncio/events.py", line 84, in _run self._context.run(self._callback, *self._args) File "/build/reproducible-path/aiorwlock-1.0.0/tests/test_rwlock.py", line 354, in test_writer_success b2 = Bunch(w, 1) File "/build/reproducible-path/aiorwlock-1.0.0/tests/test_rwlock.py", line 37, in __init__ t = asyncio.Task(task()) task: .task() running at /build/reproducible-path/aiorwlock-1.0.0/tests/test_rwlock.py:30> wait_for= created at /build/reproducible-path/aiorwlock-1.0.0/tests/test_rwlock.py:37> ____________ test_writer_success_with_statement[debug:true-pyloop] _____________ loop = <_UnixSelectorEventLoop running=False closed=False debug=True> @pytest.mark.asyncio async def test_writer_success_with_statement(loop): # Verify that a writer can get access rwlock = RWLock() N = 5 reads = 0 writes = 0 async def r(): # read until we achive write successes nonlocal reads, writes while writes < 2: # print("current pre-reads", reads) async with rwlock.reader_lock: reads += 1 # print("current reads", reads) async def w(): nonlocal reads, writes while reads == 0: await _wait() for _ in range(2): await _wait() # print("current pre-writes", reads) async with rwlock.writer_lock: writes += 1 b1 = Bunch(r, N) b2 = Bunch(w, 1) > await b1.wait_for_finished() ../../../tests/test_rwlock.py:442: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../../../tests/test_rwlock.py:41: in wait_for_finished await asyncio.gather(*self._futures) ../../../tests/test_rwlock.py:30: in task await f() ../../../tests/test_rwlock.py:423: in r async with rwlock.reader_lock: aiorwlock/__init__.py:190: in __aenter__ await self.acquire() aiorwlock/__init__.py:215: in acquire await self._lock.acquire_read() aiorwlock/__init__.py:81: in acquire_read await self._yield_after_acquire(self._RL) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = , lock_type = 1 async def _yield_after_acquire(self, lock_type: int) -> None: if self._do_yield: try: > await asyncio.sleep(0.0, loop=self._loop) E TypeError: sleep() got an unexpected keyword argument 'loop' aiorwlock/__init__.py:58: TypeError During handling of the above exception, another exception occurred: cls = func = . at 0xf660b898>, when = 'call' reraise = (, ) @classmethod def from_call( cls, func: Callable[[], TResult], when: Literal["collect", "setup", "call", "teardown"], reraise: Optional[ Union[Type[BaseException], Tuple[Type[BaseException], ...]] ] = None, ) -> "CallInfo[TResult]": """Call func, wrapping the result in a CallInfo. :param func: The function to call. Called without arguments. :param when: The phase in which the function is called. :param reraise: Exception or exceptions that shall propagate if raised by the function, instead of being wrapped in the CallInfo. """ excinfo = None start = timing.time() precise_start = timing.perf_counter() try: > result: Optional[TResult] = func() /usr/lib/python3/dist-packages/_pytest/runner.py:341: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/dist-packages/_pytest/runner.py:241: in lambda: runtest_hook(item=item, **kwds), when=when, reraise=reraise /usr/lib/python3/dist-packages/pluggy/_hooks.py:513: in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) /usr/lib/python3/dist-packages/pluggy/_manager.py:120: in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) /usr/lib/python3/dist-packages/_pytest/threadexception.py:87: in pytest_runtest_call yield from thread_exception_runtest_hook() /usr/lib/python3/dist-packages/_pytest/threadexception.py:63: in thread_exception_runtest_hook yield /usr/lib/python3/dist-packages/_pytest/unraisableexception.py:90: in pytest_runtest_call yield from unraisable_exception_runtest_hook() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ def unraisable_exception_runtest_hook() -> Generator[None, None, None]: with catch_unraisable_exception() as cm: try: yield finally: if cm.unraisable: if cm.unraisable.err_msg is not None: err_msg = cm.unraisable.err_msg else: err_msg = "Exception ignored in" msg = f"{err_msg}: {cm.unraisable.object!r}\n\n" msg += "".join( traceback.format_exception( cm.unraisable.exc_type, cm.unraisable.exc_value, cm.unraisable.exc_traceback, ) ) > warnings.warn(pytest.PytestUnraisableExceptionWarning(msg)) E pytest.PytestUnraisableExceptionWarning: Exception ignored in: E E Traceback (most recent call last): E File "/build/reproducible-path/aiorwlock-1.0.0/tests/test_rwlock.py", line 423, in r E async with rwlock.reader_lock: E ResourceWarning: unclosed /usr/lib/python3/dist-packages/_pytest/unraisableexception.py:80: PytestUnraisableExceptionWarning _________________ test_get_write_then_read[debug:false-pyloop] _________________ loop = <_UnixSelectorEventLoop running=False closed=False debug=False> @pytest.mark.asyncio async def test_get_write_then_read(loop): rwlock = RWLock() rl = rwlock.reader wl = rwlock.writer > async with wl: ../../../tests/test_corner_cases.py:32: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ aiorwlock/__init__.py:190: in __aenter__ await self.acquire() aiorwlock/__init__.py:234: in acquire await self._lock.acquire_write() aiorwlock/__init__.py:116: in acquire_write await self._yield_after_acquire(self._WL) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = , lock_type = 2 async def _yield_after_acquire(self, lock_type: int) -> None: if self._do_yield: try: > await asyncio.sleep(0.0, loop=self._loop) E TypeError: sleep() got an unexpected keyword argument 'loop' aiorwlock/__init__.py:58: TypeError _________ test_get_write_then_read_and_write_again[debug:false-pyloop] _________ loop = <_UnixSelectorEventLoop running=False closed=False debug=False> @pytest.mark.asyncio async def test_get_write_then_read_and_write_again(loop): rwlock = RWLock() rl = rwlock.reader wl = rwlock.writer f = loop.create_future() writes = [] async def get_write_lock(): await f with should_fail(0.1, loop): async with wl: assert wl.locked writes.append('should not be here') ensure_future(get_write_lock()) > async with wl: ../../../tests/test_corner_cases.py:59: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ aiorwlock/__init__.py:190: in __aenter__ await self.acquire() aiorwlock/__init__.py:234: in acquire await self._lock.acquire_write() aiorwlock/__init__.py:116: in acquire_write await self._yield_after_acquire(self._WL) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = , lock_type = 2 async def _yield_after_acquire(self, lock_type: int) -> None: if self._do_yield: try: > await asyncio.sleep(0.0, loop=self._loop) E TypeError: sleep() got an unexpected keyword argument 'loop' aiorwlock/__init__.py:58: TypeError __________________ test_writers_deadlock[debug:false-pyloop] ___________________ loop = <_UnixSelectorEventLoop running=False closed=False debug=False> @pytest.mark.asyncio async def test_writers_deadlock(loop): rwlock = RWLock() rl = rwlock.reader wl = rwlock.writer # Scenario: # - task A (this) acquires read lock # - task B,C wait for write lock # # A releases the lock and, in the same loop interation, # task B gets cancelled (eg: by timeout); # B gets cancelled without waking up next waiter -- deadlock; # # See asyncio.Lock deadlock issue: # https://github.com/python/cpython/pull/1031 async def coro(): async with wl: assert wl.locked await asyncio.sleep(0.2, loop) > async with rl: ../../../tests/test_corner_cases.py:92: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ aiorwlock/__init__.py:190: in __aenter__ await self.acquire() aiorwlock/__init__.py:215: in acquire await self._lock.acquire_read() aiorwlock/__init__.py:81: in acquire_read await self._yield_after_acquire(self._RL) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = , lock_type = 1 async def _yield_after_acquire(self, lock_type: int) -> None: if self._do_yield: try: > await asyncio.sleep(0.0, loop=self._loop) E TypeError: sleep() got an unexpected keyword argument 'loop' aiorwlock/__init__.py:58: TypeError ---------------------------- Captured log teardown ----------------------------- ERROR asyncio:base_events.py:1785 Task was destroyed but it is pending! task: .get_write_lock() running at /build/reproducible-path/aiorwlock-1.0.0/tests/test_corner_cases.py:51> wait_for=> ___________________ test_readers_cancel[debug:false-pyloop] ____________________ loop = <_UnixSelectorEventLoop running=False closed=False debug=False> @pytest.mark.asyncio async def test_readers_cancel(loop): rwlock = RWLock() rl = rwlock.reader wl = rwlock.writer async def coro(lock): async with lock: assert lock.locked await asyncio.sleep(0.2, loop) > async with wl: ../../../tests/test_corner_cases.py:119: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ aiorwlock/__init__.py:190: in __aenter__ await self.acquire() aiorwlock/__init__.py:234: in acquire await self._lock.acquire_write() aiorwlock/__init__.py:116: in acquire_write await self._yield_after_acquire(self._WL) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = , lock_type = 2 async def _yield_after_acquire(self, lock_type: int) -> None: if self._do_yield: try: > await asyncio.sleep(0.0, loop=self._loop) E TypeError: sleep() got an unexpected keyword argument 'loop' aiorwlock/__init__.py:58: TypeError _______________ test_canceled_inside_acquire[debug:false-pyloop] _______________ loop = <_UnixSelectorEventLoop running=False closed=False debug=False> @pytest.mark.asyncio async def test_canceled_inside_acquire(loop): rwlock = RWLock() rl = rwlock.reader async def coro(lock): async with lock: pass task = ensure_future(coro(rl)) await asyncio.sleep(0) task.cancel() try: > await task ../../../tests/test_corner_cases.py:148: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../../../tests/test_corner_cases.py:140: in coro async with lock: aiorwlock/__init__.py:190: in __aenter__ await self.acquire() aiorwlock/__init__.py:215: in acquire await self._lock.acquire_read() aiorwlock/__init__.py:81: in acquire_read await self._yield_after_acquire(self._RL) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = , lock_type = 1 async def _yield_after_acquire(self, lock_type: int) -> None: if self._do_yield: try: > await asyncio.sleep(0.0, loop=self._loop) E TypeError: sleep() got an unexpected keyword argument 'loop' aiorwlock/__init__.py:58: TypeError _________________ test_get_write_then_read[debug:false-uvloop] _________________ loop = @pytest.mark.asyncio async def test_get_write_then_read(loop): rwlock = RWLock() rl = rwlock.reader wl = rwlock.writer > async with wl: ../../../tests/test_corner_cases.py:32: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ aiorwlock/__init__.py:190: in __aenter__ await self.acquire() aiorwlock/__init__.py:234: in acquire await self._lock.acquire_write() aiorwlock/__init__.py:116: in acquire_write await self._yield_after_acquire(self._WL) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = , lock_type = 2 async def _yield_after_acquire(self, lock_type: int) -> None: if self._do_yield: try: > await asyncio.sleep(0.0, loop=self._loop) E TypeError: sleep() got an unexpected keyword argument 'loop' aiorwlock/__init__.py:58: TypeError _________ test_get_write_then_read_and_write_again[debug:false-uvloop] _________ loop = @pytest.mark.asyncio async def test_get_write_then_read_and_write_again(loop): rwlock = RWLock() rl = rwlock.reader wl = rwlock.writer f = loop.create_future() writes = [] async def get_write_lock(): await f with should_fail(0.1, loop): async with wl: assert wl.locked writes.append('should not be here') ensure_future(get_write_lock()) > async with wl: ../../../tests/test_corner_cases.py:59: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ aiorwlock/__init__.py:190: in __aenter__ await self.acquire() aiorwlock/__init__.py:234: in acquire await self._lock.acquire_write() aiorwlock/__init__.py:116: in acquire_write await self._yield_after_acquire(self._WL) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = , lock_type = 2 async def _yield_after_acquire(self, lock_type: int) -> None: if self._do_yield: try: > await asyncio.sleep(0.0, loop=self._loop) E TypeError: sleep() got an unexpected keyword argument 'loop' aiorwlock/__init__.py:58: TypeError __________________ test_writers_deadlock[debug:false-uvloop] ___________________ loop = @pytest.mark.asyncio async def test_writers_deadlock(loop): rwlock = RWLock() rl = rwlock.reader wl = rwlock.writer # Scenario: # - task A (this) acquires read lock # - task B,C wait for write lock # # A releases the lock and, in the same loop interation, # task B gets cancelled (eg: by timeout); # B gets cancelled without waking up next waiter -- deadlock; # # See asyncio.Lock deadlock issue: # https://github.com/python/cpython/pull/1031 async def coro(): async with wl: assert wl.locked await asyncio.sleep(0.2, loop) > async with rl: ../../../tests/test_corner_cases.py:92: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ aiorwlock/__init__.py:190: in __aenter__ await self.acquire() aiorwlock/__init__.py:215: in acquire await self._lock.acquire_read() aiorwlock/__init__.py:81: in acquire_read await self._yield_after_acquire(self._RL) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = , lock_type = 1 async def _yield_after_acquire(self, lock_type: int) -> None: if self._do_yield: try: > await asyncio.sleep(0.0, loop=self._loop) E TypeError: sleep() got an unexpected keyword argument 'loop' aiorwlock/__init__.py:58: TypeError ---------------------------- Captured log teardown ----------------------------- ERROR asyncio:conftest.py:44 Task was destroyed but it is pending! task: .get_write_lock() running at /build/reproducible-path/aiorwlock-1.0.0/tests/test_corner_cases.py:51> wait_for=> ___________________ test_readers_cancel[debug:false-uvloop] ____________________ loop = @pytest.mark.asyncio async def test_readers_cancel(loop): rwlock = RWLock() rl = rwlock.reader wl = rwlock.writer async def coro(lock): async with lock: assert lock.locked await asyncio.sleep(0.2, loop) > async with wl: ../../../tests/test_corner_cases.py:119: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ aiorwlock/__init__.py:190: in __aenter__ await self.acquire() aiorwlock/__init__.py:234: in acquire await self._lock.acquire_write() aiorwlock/__init__.py:116: in acquire_write await self._yield_after_acquire(self._WL) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = , lock_type = 2 async def _yield_after_acquire(self, lock_type: int) -> None: if self._do_yield: try: > await asyncio.sleep(0.0, loop=self._loop) E TypeError: sleep() got an unexpected keyword argument 'loop' aiorwlock/__init__.py:58: TypeError _______________ test_canceled_inside_acquire[debug:false-uvloop] _______________ loop = @pytest.mark.asyncio async def test_canceled_inside_acquire(loop): rwlock = RWLock() rl = rwlock.reader async def coro(lock): async with lock: pass task = ensure_future(coro(rl)) await asyncio.sleep(0) task.cancel() try: > await task ../../../tests/test_corner_cases.py:148: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../../../tests/test_corner_cases.py:140: in coro async with lock: aiorwlock/__init__.py:190: in __aenter__ await self.acquire() aiorwlock/__init__.py:215: in acquire await self._lock.acquire_read() aiorwlock/__init__.py:81: in acquire_read await self._yield_after_acquire(self._RL) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = , lock_type = 1 async def _yield_after_acquire(self, lock_type: int) -> None: if self._do_yield: try: > await asyncio.sleep(0.0, loop=self._loop) E TypeError: sleep() got an unexpected keyword argument 'loop' aiorwlock/__init__.py:58: TypeError ________________________ test_repr[debug:false-pyloop] _________________________ loop = <_UnixSelectorEventLoop running=False closed=False debug=False> @pytest.mark.asyncio async def test_repr(loop): rwlock = RWLock() assert 'RWLock' in rwlock.__repr__() assert 'WriterLock: [unlocked' in rwlock.__repr__() assert 'ReaderLock: [unlocked' in rwlock.__repr__() # reader lock __repr__ > await rwlock.reader_lock.acquire() ../../../tests/test_rwlock.py:101: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ aiorwlock/__init__.py:215: in acquire await self._lock.acquire_read() aiorwlock/__init__.py:81: in acquire_read await self._yield_after_acquire(self._RL) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = , lock_type = 1 async def _yield_after_acquire(self, lock_type: int) -> None: if self._do_yield: try: > await asyncio.sleep(0.0, loop=self._loop) E TypeError: sleep() got an unexpected keyword argument 'loop' aiorwlock/__init__.py:58: TypeError ________________________ test_repr[debug:false-uvloop] _________________________ loop = @pytest.mark.asyncio async def test_repr(loop): rwlock = RWLock() assert 'RWLock' in rwlock.__repr__() assert 'WriterLock: [unlocked' in rwlock.__repr__() assert 'ReaderLock: [unlocked' in rwlock.__repr__() # reader lock __repr__ > await rwlock.reader_lock.acquire() ../../../tests/test_rwlock.py:101: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ aiorwlock/__init__.py:215: in acquire await self._lock.acquire_read() aiorwlock/__init__.py:81: in acquire_read await self._yield_after_acquire(self._RL) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = , lock_type = 1 async def _yield_after_acquire(self, lock_type: int) -> None: if self._do_yield: try: > await asyncio.sleep(0.0, loop=self._loop) E TypeError: sleep() got an unexpected keyword argument 'loop' aiorwlock/__init__.py:58: TypeError __________________ test_many_readers[debug:false-slow-uvloop] __________________ loop = , fast_track = False @pytest.mark.asyncio async def test_many_readers(loop, fast_track): rwlock = RWLock(fast=fast_track) N = 5 locked = [] nlocked = [] async def f(): await rwlock.reader_lock.acquire() try: locked.append(1) await _wait() nlocked.append(len(locked)) await _wait() locked.pop(-1) finally: rwlock.reader_lock.release() > await Bunch(f, N).wait_for_finished() ../../../tests/test_rwlock.py:138: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../../../tests/test_rwlock.py:41: in wait_for_finished await asyncio.gather(*self._futures) ../../../tests/test_rwlock.py:30: in task await f() ../../../tests/test_rwlock.py:128: in f await rwlock.reader_lock.acquire() aiorwlock/__init__.py:215: in acquire await self._lock.acquire_read() aiorwlock/__init__.py:81: in acquire_read await self._yield_after_acquire(self._RL) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = , lock_type = 1 async def _yield_after_acquire(self, lock_type: int) -> None: if self._do_yield: try: > await asyncio.sleep(0.0, loop=self._loop) E TypeError: sleep() got an unexpected keyword argument 'loop' aiorwlock/__init__.py:58: TypeError ________________ test_reader_recursion[debug:false-slow-uvloop] ________________ loop = , fast_track = False @pytest.mark.asyncio async def test_reader_recursion(loop, fast_track): rwlock = RWLock(fast=fast_track) N = 5 locked = [] nlocked = [] async def f(): await rwlock.reader_lock.acquire() try: await rwlock.reader_lock.acquire() try: locked.append(1) await _wait() nlocked.append(len(locked)) await _wait() locked.pop(-1) finally: rwlock.reader_lock.release() finally: rwlock.reader_lock.release() > await Bunch(f, N).wait_for_finished() ../../../tests/test_rwlock.py:189: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../../../tests/test_rwlock.py:41: in wait_for_finished await asyncio.gather(*self._futures) ../../../tests/test_rwlock.py:30: in task await f() ../../../tests/test_rwlock.py:175: in f await rwlock.reader_lock.acquire() aiorwlock/__init__.py:215: in acquire await self._lock.acquire_read() aiorwlock/__init__.py:81: in acquire_read await self._yield_after_acquire(self._RL) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = , lock_type = 1 async def _yield_after_acquire(self, lock_type: int) -> None: if self._do_yield: try: > await asyncio.sleep(0.0, loop=self._loop) E TypeError: sleep() got an unexpected keyword argument 'loop' aiorwlock/__init__.py:58: TypeError ________________ test_writer_recursion[debug:false-slow-uvloop] ________________ loop = , fast_track = False @pytest.mark.asyncio async def test_writer_recursion(loop, fast_track): rwlock = RWLock(fast=fast_track) N = 5 locked = [] nlocked = [] async def f(): await rwlock.writer_lock.acquire() try: await rwlock.writer_lock.acquire() try: locked.append(1) await _wait() nlocked.append(len(locked)) await _wait() locked.pop(-1) finally: rwlock.writer_lock.release() finally: rwlock.writer_lock.release() > await Bunch(f, N).wait_for_finished() ../../../tests/test_rwlock.py:215: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../../../tests/test_rwlock.py:41: in wait_for_finished await asyncio.gather(*self._futures) ../../../tests/test_rwlock.py:30: in task await f() ../../../tests/test_rwlock.py:201: in f await rwlock.writer_lock.acquire() aiorwlock/__init__.py:234: in acquire await self._lock.acquire_write() aiorwlock/__init__.py:116: in acquire_write await self._yield_after_acquire(self._WL) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = , lock_type = 2 async def _yield_after_acquire(self, lock_type: int) -> None: if self._do_yield: try: > await asyncio.sleep(0.0, loop=self._loop) E TypeError: sleep() got an unexpected keyword argument 'loop' aiorwlock/__init__.py:58: TypeError __________ test_writer_then_reader_recursion[debug:false-slow-uvloop] __________ loop = , fast_track = False @pytest.mark.asyncio async def test_writer_then_reader_recursion(loop, fast_track): rwlock = RWLock(fast=fast_track) N = 5 locked = [] nlocked = [] async def f(): await rwlock.writer_lock.acquire() try: await rwlock.reader_lock.acquire() try: locked.append(1) await _wait() nlocked.append(len(locked)) await _wait() locked.pop(-1) finally: rwlock.reader_lock.release() finally: rwlock.writer_lock.release() > await Bunch(f, N).wait_for_finished() ../../../tests/test_rwlock.py:241: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../../../tests/test_rwlock.py:41: in wait_for_finished await asyncio.gather(*self._futures) ../../../tests/test_rwlock.py:30: in task await f() ../../../tests/test_rwlock.py:227: in f await rwlock.writer_lock.acquire() aiorwlock/__init__.py:234: in acquire await self._lock.acquire_write() aiorwlock/__init__.py:116: in acquire_write await self._yield_after_acquire(self._WL) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = , lock_type = 2 async def _yield_after_acquire(self, lock_type: int) -> None: if self._do_yield: try: > await asyncio.sleep(0.0, loop=self._loop) E TypeError: sleep() got an unexpected keyword argument 'loop' aiorwlock/__init__.py:58: TypeError ________________ test_readers_writers[debug:false-slow-uvloop] _________________ loop = , fast_track = False @pytest.mark.asyncio async def test_readers_writers(loop, fast_track): rwlock = RWLock(fast=fast_track) N = 5 rlocked = [] wlocked = [] nlocked = [] async def r(): await rwlock.reader_lock.acquire() try: rlocked.append(1) await _wait() nlocked.append((len(rlocked), len(wlocked))) await _wait() rlocked.pop(-1) finally: rwlock.reader_lock.release() async def w(): await rwlock.writer_lock.acquire() try: wlocked.append(1) await _wait() nlocked.append((len(rlocked), len(wlocked))) await _wait() wlocked.pop(-1) finally: rwlock.writer_lock.release() b1 = Bunch(r, N) b2 = Bunch(w, N) await asyncio.sleep(0.0001) > await b1.wait_for_finished() ../../../tests/test_rwlock.py:299: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../../../tests/test_rwlock.py:41: in wait_for_finished await asyncio.gather(*self._futures) ../../../tests/test_rwlock.py:30: in task await f() ../../../tests/test_rwlock.py:273: in r await rwlock.reader_lock.acquire() aiorwlock/__init__.py:215: in acquire await self._lock.acquire_read() aiorwlock/__init__.py:81: in acquire_read await self._yield_after_acquire(self._RL) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = , lock_type = 1 async def _yield_after_acquire(self, lock_type: int) -> None: if self._do_yield: try: > await asyncio.sleep(0.0, loop=self._loop) E TypeError: sleep() got an unexpected keyword argument 'loop' aiorwlock/__init__.py:58: TypeError __________________ test_read_locked[debug:false-slow-uvloop] ___________________ loop = , fast_track = False @pytest.mark.asyncio async def test_read_locked(loop, fast_track): rwlock = RWLock(fast=fast_track) assert not rwlock.reader_lock.locked > async with rwlock.reader_lock: ../../../tests/test_rwlock.py:469: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ aiorwlock/__init__.py:190: in __aenter__ await self.acquire() aiorwlock/__init__.py:215: in acquire await self._lock.acquire_read() aiorwlock/__init__.py:81: in acquire_read await self._yield_after_acquire(self._RL) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = , lock_type = 1 async def _yield_after_acquire(self, lock_type: int) -> None: if self._do_yield: try: > await asyncio.sleep(0.0, loop=self._loop) E TypeError: sleep() got an unexpected keyword argument 'loop' aiorwlock/__init__.py:58: TypeError __________________ test_write_locked[debug:false-slow-uvloop] __________________ loop = , fast_track = False @pytest.mark.asyncio async def test_write_locked(loop, fast_track): rwlock = RWLock(fast=fast_track) assert not rwlock.writer_lock.locked > async with rwlock.writer_lock: ../../../tests/test_rwlock.py:477: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ aiorwlock/__init__.py:190: in __aenter__ await self.acquire() aiorwlock/__init__.py:234: in acquire await self._lock.acquire_write() aiorwlock/__init__.py:116: in acquire_write await self._yield_after_acquire(self._WL) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = , lock_type = 2 async def _yield_after_acquire(self, lock_type: int) -> None: if self._do_yield: try: > await asyncio.sleep(0.0, loop=self._loop) E TypeError: sleep() got an unexpected keyword argument 'loop' aiorwlock/__init__.py:58: TypeError _________ test_write_read_lock_multiple_tasks[debug:false-slow-uvloop] _________ loop = , fast_track = False @pytest.mark.asyncio async def test_write_read_lock_multiple_tasks(loop, fast_track): rwlock = RWLock(fast=fast_track) rl = rwlock.reader wl = rwlock.writer async def coro(): async with rl: assert not wl.locked assert rl.locked await asyncio.sleep(0.2, loop) > async with wl: ../../../tests/test_rwlock.py:493: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ aiorwlock/__init__.py:190: in __aenter__ await self.acquire() aiorwlock/__init__.py:234: in acquire await self._lock.acquire_write() aiorwlock/__init__.py:116: in acquire_write await self._yield_after_acquire(self._WL) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = , lock_type = 2 async def _yield_after_acquire(self, lock_type: int) -> None: if self._do_yield: try: > await asyncio.sleep(0.0, loop=self._loop) E TypeError: sleep() got an unexpected keyword argument 'loop' aiorwlock/__init__.py:58: TypeError ______________ test_read_context_manager[debug:false-slow-uvloop] ______________ loop = , fast_track = False @pytest.mark.asyncio async def test_read_context_manager(loop, fast_track): rwlock = RWLock(fast=fast_track) reader = rwlock.reader_lock assert not reader.locked > async with reader: ../../../tests/test_rwlock.py:516: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ aiorwlock/__init__.py:190: in __aenter__ await self.acquire() aiorwlock/__init__.py:215: in acquire await self._lock.acquire_read() aiorwlock/__init__.py:81: in acquire_read await self._yield_after_acquire(self._RL) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = , lock_type = 1 async def _yield_after_acquire(self, lock_type: int) -> None: if self._do_yield: try: > await asyncio.sleep(0.0, loop=self._loop) E TypeError: sleep() got an unexpected keyword argument 'loop' aiorwlock/__init__.py:58: TypeError _____________ test_write_context_manager[debug:false-slow-uvloop] ______________ loop = , fast_track = False @pytest.mark.asyncio async def test_write_context_manager(loop, fast_track): rwlock = RWLock(fast=fast_track) writer = rwlock.writer_lock assert not writer.locked > async with writer: ../../../tests/test_rwlock.py:525: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ aiorwlock/__init__.py:190: in __aenter__ await self.acquire() aiorwlock/__init__.py:234: in acquire await self._lock.acquire_write() aiorwlock/__init__.py:116: in acquire_write await self._yield_after_acquire(self._WL) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = , lock_type = 2 async def _yield_after_acquire(self, lock_type: int) -> None: if self._do_yield: try: > await asyncio.sleep(0.0, loop=self._loop) E TypeError: sleep() got an unexpected keyword argument 'loop' aiorwlock/__init__.py:58: TypeError ________________ test_await_read_lock[debug:false-slow-uvloop] _________________ loop = , fast_track = False @pytest.mark.asyncio async def test_await_read_lock(loop, fast_track): rwlock = RWLock(fast=fast_track) reader = rwlock.reader_lock assert not reader.locked > async with reader: ../../../tests/test_rwlock.py:534: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ aiorwlock/__init__.py:190: in __aenter__ await self.acquire() aiorwlock/__init__.py:215: in acquire await self._lock.acquire_read() aiorwlock/__init__.py:81: in acquire_read await self._yield_after_acquire(self._RL) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = , lock_type = 1 async def _yield_after_acquire(self, lock_type: int) -> None: if self._do_yield: try: > await asyncio.sleep(0.0, loop=self._loop) E TypeError: sleep() got an unexpected keyword argument 'loop' aiorwlock/__init__.py:58: TypeError ________________ test_await_write_lock[debug:false-slow-uvloop] ________________ loop = , fast_track = False @pytest.mark.asyncio async def test_await_write_lock(loop, fast_track): rwlock = RWLock(fast=fast_track) writer = rwlock.writer_lock assert not writer.locked > async with writer: ../../../tests/test_rwlock.py:543: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ aiorwlock/__init__.py:190: in __aenter__ await self.acquire() aiorwlock/__init__.py:234: in acquire await self._lock.acquire_write() aiorwlock/__init__.py:116: in acquire_write await self._yield_after_acquire(self._WL) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = , lock_type = 2 async def _yield_after_acquire(self, lock_type: int) -> None: if self._do_yield: try: > await asyncio.sleep(0.0, loop=self._loop) E TypeError: sleep() got an unexpected keyword argument 'loop' aiorwlock/__init__.py:58: TypeError __________________ test_many_readers[debug:false-slow-pyloop] __________________ loop = <_UnixSelectorEventLoop running=False closed=False debug=False> fast_track = False @pytest.mark.asyncio async def test_many_readers(loop, fast_track): rwlock = RWLock(fast=fast_track) N = 5 locked = [] nlocked = [] async def f(): await rwlock.reader_lock.acquire() try: locked.append(1) await _wait() nlocked.append(len(locked)) await _wait() locked.pop(-1) finally: rwlock.reader_lock.release() > await Bunch(f, N).wait_for_finished() ../../../tests/test_rwlock.py:138: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../../../tests/test_rwlock.py:41: in wait_for_finished await asyncio.gather(*self._futures) ../../../tests/test_rwlock.py:30: in task await f() ../../../tests/test_rwlock.py:128: in f await rwlock.reader_lock.acquire() aiorwlock/__init__.py:215: in acquire await self._lock.acquire_read() aiorwlock/__init__.py:81: in acquire_read await self._yield_after_acquire(self._RL) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = , lock_type = 1 async def _yield_after_acquire(self, lock_type: int) -> None: if self._do_yield: try: > await asyncio.sleep(0.0, loop=self._loop) E TypeError: sleep() got an unexpected keyword argument 'loop' aiorwlock/__init__.py:58: TypeError ________________ test_reader_recursion[debug:false-slow-pyloop] ________________ loop = <_UnixSelectorEventLoop running=False closed=False debug=False> fast_track = False @pytest.mark.asyncio async def test_reader_recursion(loop, fast_track): rwlock = RWLock(fast=fast_track) N = 5 locked = [] nlocked = [] async def f(): await rwlock.reader_lock.acquire() try: await rwlock.reader_lock.acquire() try: locked.append(1) await _wait() nlocked.append(len(locked)) await _wait() locked.pop(-1) finally: rwlock.reader_lock.release() finally: rwlock.reader_lock.release() > await Bunch(f, N).wait_for_finished() ../../../tests/test_rwlock.py:189: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../../../tests/test_rwlock.py:41: in wait_for_finished await asyncio.gather(*self._futures) ../../../tests/test_rwlock.py:30: in task await f() ../../../tests/test_rwlock.py:175: in f await rwlock.reader_lock.acquire() aiorwlock/__init__.py:215: in acquire await self._lock.acquire_read() aiorwlock/__init__.py:81: in acquire_read await self._yield_after_acquire(self._RL) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = , lock_type = 1 async def _yield_after_acquire(self, lock_type: int) -> None: if self._do_yield: try: > await asyncio.sleep(0.0, loop=self._loop) E TypeError: sleep() got an unexpected keyword argument 'loop' aiorwlock/__init__.py:58: TypeError ________________ test_writer_recursion[debug:false-slow-pyloop] ________________ loop = <_UnixSelectorEventLoop running=False closed=False debug=False> fast_track = False @pytest.mark.asyncio async def test_writer_recursion(loop, fast_track): rwlock = RWLock(fast=fast_track) N = 5 locked = [] nlocked = [] async def f(): await rwlock.writer_lock.acquire() try: await rwlock.writer_lock.acquire() try: locked.append(1) await _wait() nlocked.append(len(locked)) await _wait() locked.pop(-1) finally: rwlock.writer_lock.release() finally: rwlock.writer_lock.release() > await Bunch(f, N).wait_for_finished() ../../../tests/test_rwlock.py:215: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../../../tests/test_rwlock.py:41: in wait_for_finished await asyncio.gather(*self._futures) ../../../tests/test_rwlock.py:30: in task await f() ../../../tests/test_rwlock.py:201: in f await rwlock.writer_lock.acquire() aiorwlock/__init__.py:234: in acquire await self._lock.acquire_write() aiorwlock/__init__.py:116: in acquire_write await self._yield_after_acquire(self._WL) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = , lock_type = 2 async def _yield_after_acquire(self, lock_type: int) -> None: if self._do_yield: try: > await asyncio.sleep(0.0, loop=self._loop) E TypeError: sleep() got an unexpected keyword argument 'loop' aiorwlock/__init__.py:58: TypeError __________ test_writer_then_reader_recursion[debug:false-slow-pyloop] __________ loop = <_UnixSelectorEventLoop running=False closed=False debug=False> fast_track = False @pytest.mark.asyncio async def test_writer_then_reader_recursion(loop, fast_track): rwlock = RWLock(fast=fast_track) N = 5 locked = [] nlocked = [] async def f(): await rwlock.writer_lock.acquire() try: await rwlock.reader_lock.acquire() try: locked.append(1) await _wait() nlocked.append(len(locked)) await _wait() locked.pop(-1) finally: rwlock.reader_lock.release() finally: rwlock.writer_lock.release() > await Bunch(f, N).wait_for_finished() ../../../tests/test_rwlock.py:241: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../../../tests/test_rwlock.py:41: in wait_for_finished await asyncio.gather(*self._futures) ../../../tests/test_rwlock.py:30: in task await f() ../../../tests/test_rwlock.py:227: in f await rwlock.writer_lock.acquire() aiorwlock/__init__.py:234: in acquire await self._lock.acquire_write() aiorwlock/__init__.py:116: in acquire_write await self._yield_after_acquire(self._WL) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = , lock_type = 2 async def _yield_after_acquire(self, lock_type: int) -> None: if self._do_yield: try: > await asyncio.sleep(0.0, loop=self._loop) E TypeError: sleep() got an unexpected keyword argument 'loop' aiorwlock/__init__.py:58: TypeError ---------------------------- Captured log teardown ----------------------------- ERROR asyncio:base_events.py:1785 Task was destroyed but it is pending! task: .task() running at /build/reproducible-path/aiorwlock-1.0.0/tests/test_rwlock.py:30> wait_for= cb=[gather.._done_callback() at /usr/lib/python3.11/asyncio/tasks.py:764]> ERROR asyncio:base_events.py:1785 Task was destroyed but it is pending! task: .task() running at /build/reproducible-path/aiorwlock-1.0.0/tests/test_rwlock.py:30> wait_for= cb=[gather.._done_callback() at /usr/lib/python3.11/asyncio/tasks.py:764]> ERROR asyncio:base_events.py:1785 Task was destroyed but it is pending! task: .task() running at /build/reproducible-path/aiorwlock-1.0.0/tests/test_rwlock.py:30> wait_for= cb=[gather.._done_callback() at /usr/lib/python3.11/asyncio/tasks.py:764]> ERROR asyncio:base_events.py:1785 Task was destroyed but it is pending! task: .task() running at /build/reproducible-path/aiorwlock-1.0.0/tests/test_rwlock.py:30> wait_for= cb=[gather.._done_callback() at /usr/lib/python3.11/asyncio/tasks.py:764]> ________________ test_readers_writers[debug:false-slow-pyloop] _________________ loop = <_UnixSelectorEventLoop running=False closed=False debug=False> fast_track = False @pytest.mark.asyncio async def test_readers_writers(loop, fast_track): rwlock = RWLock(fast=fast_track) N = 5 rlocked = [] wlocked = [] nlocked = [] async def r(): await rwlock.reader_lock.acquire() try: rlocked.append(1) await _wait() nlocked.append((len(rlocked), len(wlocked))) await _wait() rlocked.pop(-1) finally: rwlock.reader_lock.release() async def w(): await rwlock.writer_lock.acquire() try: wlocked.append(1) await _wait() nlocked.append((len(rlocked), len(wlocked))) await _wait() wlocked.pop(-1) finally: rwlock.writer_lock.release() b1 = Bunch(r, N) b2 = Bunch(w, N) await asyncio.sleep(0.0001) > await b1.wait_for_finished() ../../../tests/test_rwlock.py:299: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../../../tests/test_rwlock.py:41: in wait_for_finished await asyncio.gather(*self._futures) ../../../tests/test_rwlock.py:30: in task await f() ../../../tests/test_rwlock.py:273: in r await rwlock.reader_lock.acquire() aiorwlock/__init__.py:215: in acquire await self._lock.acquire_read() aiorwlock/__init__.py:81: in acquire_read await self._yield_after_acquire(self._RL) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = , lock_type = 1 async def _yield_after_acquire(self, lock_type: int) -> None: if self._do_yield: try: > await asyncio.sleep(0.0, loop=self._loop) E TypeError: sleep() got an unexpected keyword argument 'loop' aiorwlock/__init__.py:58: TypeError ---------------------------- Captured log teardown ----------------------------- ERROR asyncio:base_events.py:1785 Task was destroyed but it is pending! task: .task() running at /build/reproducible-path/aiorwlock-1.0.0/tests/test_rwlock.py:30> wait_for= cb=[gather.._done_callback() at /usr/lib/python3.11/asyncio/tasks.py:764]> ERROR asyncio:base_events.py:1785 Task was destroyed but it is pending! task: .task() running at /build/reproducible-path/aiorwlock-1.0.0/tests/test_rwlock.py:30> wait_for= cb=[gather.._done_callback() at /usr/lib/python3.11/asyncio/tasks.py:764]> ERROR asyncio:base_events.py:1785 Task was destroyed but it is pending! task: .task() running at /build/reproducible-path/aiorwlock-1.0.0/tests/test_rwlock.py:30> wait_for= cb=[gather.._done_callback() at /usr/lib/python3.11/asyncio/tasks.py:764]> ERROR asyncio:base_events.py:1785 Task was destroyed but it is pending! task: .task() running at /build/reproducible-path/aiorwlock-1.0.0/tests/test_rwlock.py:30> wait_for= cb=[gather.._done_callback() at /usr/lib/python3.11/asyncio/tasks.py:764]> __________________ test_read_locked[debug:false-slow-pyloop] ___________________ loop = <_UnixSelectorEventLoop running=False closed=False debug=False> fast_track = False @pytest.mark.asyncio async def test_read_locked(loop, fast_track): rwlock = RWLock(fast=fast_track) assert not rwlock.reader_lock.locked > async with rwlock.reader_lock: ../../../tests/test_rwlock.py:469: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ aiorwlock/__init__.py:190: in __aenter__ await self.acquire() aiorwlock/__init__.py:215: in acquire await self._lock.acquire_read() aiorwlock/__init__.py:81: in acquire_read await self._yield_after_acquire(self._RL) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = , lock_type = 1 async def _yield_after_acquire(self, lock_type: int) -> None: if self._do_yield: try: > await asyncio.sleep(0.0, loop=self._loop) E TypeError: sleep() got an unexpected keyword argument 'loop' aiorwlock/__init__.py:58: TypeError __________________ test_write_locked[debug:false-slow-pyloop] __________________ loop = <_UnixSelectorEventLoop running=False closed=False debug=False> fast_track = False @pytest.mark.asyncio async def test_write_locked(loop, fast_track): rwlock = RWLock(fast=fast_track) assert not rwlock.writer_lock.locked > async with rwlock.writer_lock: ../../../tests/test_rwlock.py:477: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ aiorwlock/__init__.py:190: in __aenter__ await self.acquire() aiorwlock/__init__.py:234: in acquire await self._lock.acquire_write() aiorwlock/__init__.py:116: in acquire_write await self._yield_after_acquire(self._WL) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = , lock_type = 2 async def _yield_after_acquire(self, lock_type: int) -> None: if self._do_yield: try: > await asyncio.sleep(0.0, loop=self._loop) E TypeError: sleep() got an unexpected keyword argument 'loop' aiorwlock/__init__.py:58: TypeError _________ test_write_read_lock_multiple_tasks[debug:false-slow-pyloop] _________ loop = <_UnixSelectorEventLoop running=False closed=False debug=False> fast_track = False @pytest.mark.asyncio async def test_write_read_lock_multiple_tasks(loop, fast_track): rwlock = RWLock(fast=fast_track) rl = rwlock.reader wl = rwlock.writer async def coro(): async with rl: assert not wl.locked assert rl.locked await asyncio.sleep(0.2, loop) > async with wl: ../../../tests/test_rwlock.py:493: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ aiorwlock/__init__.py:190: in __aenter__ await self.acquire() aiorwlock/__init__.py:234: in acquire await self._lock.acquire_write() aiorwlock/__init__.py:116: in acquire_write await self._yield_after_acquire(self._WL) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = , lock_type = 2 async def _yield_after_acquire(self, lock_type: int) -> None: if self._do_yield: try: > await asyncio.sleep(0.0, loop=self._loop) E TypeError: sleep() got an unexpected keyword argument 'loop' aiorwlock/__init__.py:58: TypeError ______________ test_read_context_manager[debug:false-slow-pyloop] ______________ loop = <_UnixSelectorEventLoop running=False closed=False debug=False> fast_track = False @pytest.mark.asyncio async def test_read_context_manager(loop, fast_track): rwlock = RWLock(fast=fast_track) reader = rwlock.reader_lock assert not reader.locked > async with reader: ../../../tests/test_rwlock.py:516: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ aiorwlock/__init__.py:190: in __aenter__ await self.acquire() aiorwlock/__init__.py:215: in acquire await self._lock.acquire_read() aiorwlock/__init__.py:81: in acquire_read await self._yield_after_acquire(self._RL) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = , lock_type = 1 async def _yield_after_acquire(self, lock_type: int) -> None: if self._do_yield: try: > await asyncio.sleep(0.0, loop=self._loop) E TypeError: sleep() got an unexpected keyword argument 'loop' aiorwlock/__init__.py:58: TypeError _____________ test_write_context_manager[debug:false-slow-pyloop] ______________ loop = <_UnixSelectorEventLoop running=False closed=False debug=False> fast_track = False @pytest.mark.asyncio async def test_write_context_manager(loop, fast_track): rwlock = RWLock(fast=fast_track) writer = rwlock.writer_lock assert not writer.locked > async with writer: ../../../tests/test_rwlock.py:525: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ aiorwlock/__init__.py:190: in __aenter__ await self.acquire() aiorwlock/__init__.py:234: in acquire await self._lock.acquire_write() aiorwlock/__init__.py:116: in acquire_write await self._yield_after_acquire(self._WL) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = , lock_type = 2 async def _yield_after_acquire(self, lock_type: int) -> None: if self._do_yield: try: > await asyncio.sleep(0.0, loop=self._loop) E TypeError: sleep() got an unexpected keyword argument 'loop' aiorwlock/__init__.py:58: TypeError ________________ test_await_read_lock[debug:false-slow-pyloop] _________________ loop = <_UnixSelectorEventLoop running=False closed=False debug=False> fast_track = False @pytest.mark.asyncio async def test_await_read_lock(loop, fast_track): rwlock = RWLock(fast=fast_track) reader = rwlock.reader_lock assert not reader.locked > async with reader: ../../../tests/test_rwlock.py:534: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ aiorwlock/__init__.py:190: in __aenter__ await self.acquire() aiorwlock/__init__.py:215: in acquire await self._lock.acquire_read() aiorwlock/__init__.py:81: in acquire_read await self._yield_after_acquire(self._RL) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = , lock_type = 1 async def _yield_after_acquire(self, lock_type: int) -> None: if self._do_yield: try: > await asyncio.sleep(0.0, loop=self._loop) E TypeError: sleep() got an unexpected keyword argument 'loop' aiorwlock/__init__.py:58: TypeError ________________ test_await_write_lock[debug:false-slow-pyloop] ________________ loop = <_UnixSelectorEventLoop running=False closed=False debug=False> fast_track = False @pytest.mark.asyncio async def test_await_write_lock(loop, fast_track): rwlock = RWLock(fast=fast_track) writer = rwlock.writer_lock assert not writer.locked > async with writer: ../../../tests/test_rwlock.py:543: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ aiorwlock/__init__.py:190: in __aenter__ await self.acquire() aiorwlock/__init__.py:234: in acquire await self._lock.acquire_write() aiorwlock/__init__.py:116: in acquire_write await self._yield_after_acquire(self._WL) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = , lock_type = 2 async def _yield_after_acquire(self, lock_type: int) -> None: if self._do_yield: try: > await asyncio.sleep(0.0, loop=self._loop) E TypeError: sleep() got an unexpected keyword argument 'loop' aiorwlock/__init__.py:58: TypeError _____________ test_read_upgrade_write_release[debug:false-uvloop] ______________ loop = @pytest.mark.asyncio async def test_read_upgrade_write_release(loop): rwlock = RWLock() > await rwlock.writer_lock.acquire() ../../../tests/test_rwlock.py:145: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ aiorwlock/__init__.py:234: in acquire await self._lock.acquire_write() aiorwlock/__init__.py:116: in acquire_write await self._yield_after_acquire(self._WL) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = , lock_type = 2 async def _yield_after_acquire(self, lock_type: int) -> None: if self._do_yield: try: > await asyncio.sleep(0.0, loop=self._loop) E TypeError: sleep() got an unexpected keyword argument 'loop' aiorwlock/__init__.py:58: TypeError ________________ test_writer_recursion_fail[debug:false-uvloop] ________________ loop = @pytest.mark.asyncio async def test_writer_recursion_fail(loop): rwlock = RWLock() N = 5 locked = [] async def f(): await rwlock.reader_lock.acquire() try: with pytest.raises(RuntimeError): await rwlock.writer_lock.acquire() locked.append(1) finally: rwlock.reader_lock.release() > await Bunch(f, N).wait_for_finished() ../../../tests/test_rwlock.py:260: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../../../tests/test_rwlock.py:41: in wait_for_finished await asyncio.gather(*self._futures) ../../../tests/test_rwlock.py:30: in task await f() ../../../tests/test_rwlock.py:252: in f await rwlock.reader_lock.acquire() aiorwlock/__init__.py:215: in acquire await self._lock.acquire_read() aiorwlock/__init__.py:81: in acquire_read await self._yield_after_acquire(self._RL) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = , lock_type = 1 async def _yield_after_acquire(self, lock_type: int) -> None: if self._do_yield: try: > await asyncio.sleep(0.0, loop=self._loop) E TypeError: sleep() got an unexpected keyword argument 'loop' aiorwlock/__init__.py:58: TypeError ___________________ test_writer_success[debug:false-uvloop] ____________________ loop = @pytest.mark.asyncio async def test_writer_success(loop): # Verify that a writer can get access rwlock = RWLock() N = 5 reads = 0 writes = 0 async def r(): # read until we achive write successes nonlocal reads, writes while writes < 2: # print("current pre-reads", reads) await rwlock.reader_lock.acquire() try: reads += 1 # print("current reads", reads) finally: rwlock.reader_lock.release() async def w(): nonlocal reads, writes while reads == 0: await _wait() for _ in range(2): await _wait() # print("current pre-writes", reads) await rwlock.writer_lock.acquire() try: writes += 1 # print("current writes", reads) finally: rwlock.writer_lock.release() b1 = Bunch(r, N) b2 = Bunch(w, 1) > await b1.wait_for_finished() ../../../tests/test_rwlock.py:356: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../../../tests/test_rwlock.py:41: in wait_for_finished await asyncio.gather(*self._futures) ../../../tests/test_rwlock.py:30: in task await f() ../../../tests/test_rwlock.py:330: in r await rwlock.reader_lock.acquire() aiorwlock/__init__.py:215: in acquire await self._lock.acquire_read() aiorwlock/__init__.py:81: in acquire_read await self._yield_after_acquire(self._RL) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = , lock_type = 1 async def _yield_after_acquire(self, lock_type: int) -> None: if self._do_yield: try: > await asyncio.sleep(0.0, loop=self._loop) E TypeError: sleep() got an unexpected keyword argument 'loop' aiorwlock/__init__.py:58: TypeError ____________ test_writer_success_with_statement[debug:false-uvloop] ____________ loop = @pytest.mark.asyncio async def test_writer_success_with_statement(loop): # Verify that a writer can get access rwlock = RWLock() N = 5 reads = 0 writes = 0 async def r(): # read until we achive write successes nonlocal reads, writes while writes < 2: # print("current pre-reads", reads) async with rwlock.reader_lock: reads += 1 # print("current reads", reads) async def w(): nonlocal reads, writes while reads == 0: await _wait() for _ in range(2): await _wait() # print("current pre-writes", reads) async with rwlock.writer_lock: writes += 1 b1 = Bunch(r, N) b2 = Bunch(w, 1) > await b1.wait_for_finished() ../../../tests/test_rwlock.py:442: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../../../tests/test_rwlock.py:41: in wait_for_finished await asyncio.gather(*self._futures) ../../../tests/test_rwlock.py:30: in task await f() ../../../tests/test_rwlock.py:423: in r async with rwlock.reader_lock: aiorwlock/__init__.py:190: in __aenter__ await self.acquire() aiorwlock/__init__.py:215: in acquire await self._lock.acquire_read() aiorwlock/__init__.py:81: in acquire_read await self._yield_after_acquire(self._RL) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = , lock_type = 1 async def _yield_after_acquire(self, lock_type: int) -> None: if self._do_yield: try: > await asyncio.sleep(0.0, loop=self._loop) E TypeError: sleep() got an unexpected keyword argument 'loop' aiorwlock/__init__.py:58: TypeError _____________ test_read_upgrade_write_release[debug:false-pyloop] ______________ loop = <_UnixSelectorEventLoop running=False closed=False debug=False> @pytest.mark.asyncio async def test_read_upgrade_write_release(loop): rwlock = RWLock() > await rwlock.writer_lock.acquire() ../../../tests/test_rwlock.py:145: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ aiorwlock/__init__.py:234: in acquire await self._lock.acquire_write() aiorwlock/__init__.py:116: in acquire_write await self._yield_after_acquire(self._WL) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = , lock_type = 2 async def _yield_after_acquire(self, lock_type: int) -> None: if self._do_yield: try: > await asyncio.sleep(0.0, loop=self._loop) E TypeError: sleep() got an unexpected keyword argument 'loop' aiorwlock/__init__.py:58: TypeError ________________ test_writer_recursion_fail[debug:false-pyloop] ________________ loop = <_UnixSelectorEventLoop running=False closed=False debug=False> @pytest.mark.asyncio async def test_writer_recursion_fail(loop): rwlock = RWLock() N = 5 locked = [] async def f(): await rwlock.reader_lock.acquire() try: with pytest.raises(RuntimeError): await rwlock.writer_lock.acquire() locked.append(1) finally: rwlock.reader_lock.release() > await Bunch(f, N).wait_for_finished() ../../../tests/test_rwlock.py:260: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../../../tests/test_rwlock.py:41: in wait_for_finished await asyncio.gather(*self._futures) ../../../tests/test_rwlock.py:30: in task await f() ../../../tests/test_rwlock.py:252: in f await rwlock.reader_lock.acquire() aiorwlock/__init__.py:215: in acquire await self._lock.acquire_read() aiorwlock/__init__.py:81: in acquire_read await self._yield_after_acquire(self._RL) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = , lock_type = 1 async def _yield_after_acquire(self, lock_type: int) -> None: if self._do_yield: try: > await asyncio.sleep(0.0, loop=self._loop) E TypeError: sleep() got an unexpected keyword argument 'loop' aiorwlock/__init__.py:58: TypeError ___________________ test_writer_success[debug:false-pyloop] ____________________ loop = <_UnixSelectorEventLoop running=False closed=False debug=False> @pytest.mark.asyncio async def test_writer_success(loop): # Verify that a writer can get access rwlock = RWLock() N = 5 reads = 0 writes = 0 async def r(): # read until we achive write successes nonlocal reads, writes while writes < 2: # print("current pre-reads", reads) await rwlock.reader_lock.acquire() try: reads += 1 # print("current reads", reads) finally: rwlock.reader_lock.release() async def w(): nonlocal reads, writes while reads == 0: await _wait() for _ in range(2): await _wait() # print("current pre-writes", reads) await rwlock.writer_lock.acquire() try: writes += 1 # print("current writes", reads) finally: rwlock.writer_lock.release() b1 = Bunch(r, N) b2 = Bunch(w, 1) > await b1.wait_for_finished() ../../../tests/test_rwlock.py:356: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../../../tests/test_rwlock.py:41: in wait_for_finished await asyncio.gather(*self._futures) ../../../tests/test_rwlock.py:30: in task await f() ../../../tests/test_rwlock.py:330: in r await rwlock.reader_lock.acquire() aiorwlock/__init__.py:215: in acquire await self._lock.acquire_read() aiorwlock/__init__.py:81: in acquire_read await self._yield_after_acquire(self._RL) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = , lock_type = 1 async def _yield_after_acquire(self, lock_type: int) -> None: if self._do_yield: try: > await asyncio.sleep(0.0, loop=self._loop) E TypeError: sleep() got an unexpected keyword argument 'loop' aiorwlock/__init__.py:58: TypeError ____________ test_writer_success_with_statement[debug:false-pyloop] ____________ loop = <_UnixSelectorEventLoop running=False closed=False debug=False> @pytest.mark.asyncio async def test_writer_success_with_statement(loop): # Verify that a writer can get access rwlock = RWLock() N = 5 reads = 0 writes = 0 async def r(): # read until we achive write successes nonlocal reads, writes while writes < 2: # print("current pre-reads", reads) async with rwlock.reader_lock: reads += 1 # print("current reads", reads) async def w(): nonlocal reads, writes while reads == 0: await _wait() for _ in range(2): await _wait() # print("current pre-writes", reads) async with rwlock.writer_lock: writes += 1 b1 = Bunch(r, N) b2 = Bunch(w, 1) > await b1.wait_for_finished() ../../../tests/test_rwlock.py:442: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../../../tests/test_rwlock.py:41: in wait_for_finished await asyncio.gather(*self._futures) ../../../tests/test_rwlock.py:30: in task await f() ../../../tests/test_rwlock.py:423: in r async with rwlock.reader_lock: aiorwlock/__init__.py:190: in __aenter__ await self.acquire() aiorwlock/__init__.py:215: in acquire await self._lock.acquire_read() aiorwlock/__init__.py:81: in acquire_read await self._yield_after_acquire(self._RL) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = , lock_type = 1 async def _yield_after_acquire(self, lock_type: int) -> None: if self._do_yield: try: > await asyncio.sleep(0.0, loop=self._loop) E TypeError: sleep() got an unexpected keyword argument 'loop' aiorwlock/__init__.py:58: TypeError =========================== short test summary info ============================ FAILED ../../../tests/test_corner_cases.py::test_get_write_then_read[debug:true-pyloop] FAILED ../../../tests/test_corner_cases.py::test_get_write_then_read_and_write_again[debug:true-pyloop] FAILED ../../../tests/test_corner_cases.py::test_writers_deadlock[debug:true-pyloop] FAILED ../../../tests/test_corner_cases.py::test_readers_cancel[debug:true-pyloop] FAILED ../../../tests/test_corner_cases.py::test_canceled_inside_acquire[debug:true-pyloop] FAILED ../../../tests/test_corner_cases.py::test_get_write_then_read[debug:true-uvloop] FAILED ../../../tests/test_corner_cases.py::test_get_write_then_read_and_write_again[debug:true-uvloop] FAILED ../../../tests/test_corner_cases.py::test_writers_deadlock[debug:true-uvloop] FAILED ../../../tests/test_corner_cases.py::test_readers_cancel[debug:true-uvloop] FAILED ../../../tests/test_corner_cases.py::test_canceled_inside_acquire[debug:true-uvloop] FAILED ../../../tests/test_rwlock.py::test_repr[debug:true-pyloop] - TypeErro... FAILED ../../../tests/test_rwlock.py::test_many_readers[debug:true-fast-uvloop] FAILED ../../../tests/test_rwlock.py::test_reader_recursion[debug:true-fast-uvloop] FAILED ../../../tests/test_rwlock.py::test_writer_recursion[debug:true-fast-uvloop] FAILED ../../../tests/test_rwlock.py::test_writer_then_reader_recursion[debug:true-fast-uvloop] FAILED ../../../tests/test_rwlock.py::test_readers_writers[debug:true-fast-uvloop] FAILED ../../../tests/test_rwlock.py::test_repr[debug:true-uvloop] - TypeErro... FAILED ../../../tests/test_rwlock.py::test_many_readers[debug:true-slow-uvloop] FAILED ../../../tests/test_rwlock.py::test_reader_recursion[debug:true-slow-uvloop] FAILED ../../../tests/test_rwlock.py::test_writer_recursion[debug:true-slow-uvloop] FAILED ../../../tests/test_rwlock.py::test_writer_then_reader_recursion[debug:true-slow-uvloop] FAILED ../../../tests/test_rwlock.py::test_readers_writers[debug:true-slow-uvloop] FAILED ../../../tests/test_rwlock.py::test_read_locked[debug:true-slow-uvloop] FAILED ../../../tests/test_rwlock.py::test_write_locked[debug:true-slow-uvloop] FAILED ../../../tests/test_rwlock.py::test_write_read_lock_multiple_tasks[debug:true-slow-uvloop] FAILED ../../../tests/test_rwlock.py::test_read_context_manager[debug:true-slow-uvloop] FAILED ../../../tests/test_rwlock.py::test_write_context_manager[debug:true-slow-uvloop] FAILED ../../../tests/test_rwlock.py::test_await_read_lock[debug:true-slow-uvloop] FAILED ../../../tests/test_rwlock.py::test_await_write_lock[debug:true-slow-uvloop] FAILED ../../../tests/test_rwlock.py::test_many_readers[debug:true-slow-pyloop] FAILED ../../../tests/test_rwlock.py::test_reader_recursion[debug:true-slow-pyloop] FAILED ../../../tests/test_rwlock.py::test_writer_recursion[debug:true-slow-pyloop] FAILED ../../../tests/test_rwlock.py::test_writer_then_reader_recursion[debug:true-slow-pyloop] FAILED ../../../tests/test_rwlock.py::test_readers_writers[debug:true-slow-pyloop] FAILED ../../../tests/test_rwlock.py::test_read_locked[debug:true-slow-pyloop] FAILED ../../../tests/test_rwlock.py::test_write_locked[debug:true-slow-pyloop] FAILED ../../../tests/test_rwlock.py::test_write_read_lock_multiple_tasks[debug:true-slow-pyloop] FAILED ../../../tests/test_rwlock.py::test_read_context_manager[debug:true-slow-pyloop] FAILED ../../../tests/test_rwlock.py::test_write_context_manager[debug:true-slow-pyloop] FAILED ../../../tests/test_rwlock.py::test_await_read_lock[debug:true-slow-pyloop] FAILED ../../../tests/test_rwlock.py::test_await_write_lock[debug:true-slow-pyloop] FAILED ../../../tests/test_rwlock.py::test_read_upgrade_write_release[debug:true-uvloop] FAILED ../../../tests/test_rwlock.py::test_writer_recursion_fail[debug:true-uvloop] FAILED ../../../tests/test_rwlock.py::test_writer_success[debug:true-uvloop] FAILED ../../../tests/test_rwlock.py::test_writer_success_fast[debug:true-uvloop] FAILED ../../../tests/test_rwlock.py::test_writer_success_with_statement[debug:true-uvloop] FAILED ../../../tests/test_rwlock.py::test_read_upgrade_write_release[debug:true-pyloop] FAILED ../../../tests/test_rwlock.py::test_writer_recursion_fail[debug:true-pyloop] FAILED ../../../tests/test_rwlock.py::test_writer_success[debug:true-pyloop] FAILED ../../../tests/test_rwlock.py::test_writer_success_fast[debug:true-pyloop] FAILED ../../../tests/test_rwlock.py::test_writer_success_with_statement[debug:true-pyloop] FAILED ../../../tests/test_corner_cases.py::test_get_write_then_read[debug:false-pyloop] FAILED ../../../tests/test_corner_cases.py::test_get_write_then_read_and_write_again[debug:false-pyloop] FAILED ../../../tests/test_corner_cases.py::test_writers_deadlock[debug:false-pyloop] FAILED ../../../tests/test_corner_cases.py::test_readers_cancel[debug:false-pyloop] FAILED ../../../tests/test_corner_cases.py::test_canceled_inside_acquire[debug:false-pyloop] FAILED ../../../tests/test_corner_cases.py::test_get_write_then_read[debug:false-uvloop] FAILED ../../../tests/test_corner_cases.py::test_get_write_then_read_and_write_again[debug:false-uvloop] FAILED ../../../tests/test_corner_cases.py::test_writers_deadlock[debug:false-uvloop] FAILED ../../../tests/test_corner_cases.py::test_readers_cancel[debug:false-uvloop] FAILED ../../../tests/test_corner_cases.py::test_canceled_inside_acquire[debug:false-uvloop] FAILED ../../../tests/test_rwlock.py::test_repr[debug:false-pyloop] - TypeErr... FAILED ../../../tests/test_rwlock.py::test_repr[debug:false-uvloop] - TypeErr... FAILED ../../../tests/test_rwlock.py::test_many_readers[debug:false-slow-uvloop] FAILED ../../../tests/test_rwlock.py::test_reader_recursion[debug:false-slow-uvloop] FAILED ../../../tests/test_rwlock.py::test_writer_recursion[debug:false-slow-uvloop] FAILED ../../../tests/test_rwlock.py::test_writer_then_reader_recursion[debug:false-slow-uvloop] FAILED ../../../tests/test_rwlock.py::test_readers_writers[debug:false-slow-uvloop] FAILED ../../../tests/test_rwlock.py::test_read_locked[debug:false-slow-uvloop] FAILED ../../../tests/test_rwlock.py::test_write_locked[debug:false-slow-uvloop] FAILED ../../../tests/test_rwlock.py::test_write_read_lock_multiple_tasks[debug:false-slow-uvloop] FAILED ../../../tests/test_rwlock.py::test_read_context_manager[debug:false-slow-uvloop] FAILED ../../../tests/test_rwlock.py::test_write_context_manager[debug:false-slow-uvloop] FAILED ../../../tests/test_rwlock.py::test_await_read_lock[debug:false-slow-uvloop] FAILED ../../../tests/test_rwlock.py::test_await_write_lock[debug:false-slow-uvloop] FAILED ../../../tests/test_rwlock.py::test_many_readers[debug:false-slow-pyloop] FAILED ../../../tests/test_rwlock.py::test_reader_recursion[debug:false-slow-pyloop] FAILED ../../../tests/test_rwlock.py::test_writer_recursion[debug:false-slow-pyloop] FAILED ../../../tests/test_rwlock.py::test_writer_then_reader_recursion[debug:false-slow-pyloop] FAILED ../../../tests/test_rwlock.py::test_readers_writers[debug:false-slow-pyloop] FAILED ../../../tests/test_rwlock.py::test_read_locked[debug:false-slow-pyloop] FAILED ../../../tests/test_rwlock.py::test_write_locked[debug:false-slow-pyloop] FAILED ../../../tests/test_rwlock.py::test_write_read_lock_multiple_tasks[debug:false-slow-pyloop] FAILED ../../../tests/test_rwlock.py::test_read_context_manager[debug:false-slow-pyloop] FAILED ../../../tests/test_rwlock.py::test_write_context_manager[debug:false-slow-pyloop] FAILED ../../../tests/test_rwlock.py::test_await_read_lock[debug:false-slow-pyloop] FAILED ../../../tests/test_rwlock.py::test_await_write_lock[debug:false-slow-pyloop] FAILED ../../../tests/test_rwlock.py::test_read_upgrade_write_release[debug:false-uvloop] FAILED ../../../tests/test_rwlock.py::test_writer_recursion_fail[debug:false-uvloop] FAILED ../../../tests/test_rwlock.py::test_writer_success[debug:false-uvloop] FAILED ../../../tests/test_rwlock.py::test_writer_success_with_statement[debug:false-uvloop] FAILED ../../../tests/test_rwlock.py::test_read_upgrade_write_release[debug:false-pyloop] FAILED ../../../tests/test_rwlock.py::test_writer_recursion_fail[debug:false-pyloop] FAILED ../../../tests/test_rwlock.py::test_writer_success[debug:false-pyloop] FAILED ../../../tests/test_rwlock.py::test_writer_success_with_statement[debug:false-pyloop] ERROR ../../../tests/test_rwlock.py::test_ctor_deprecated_implicit_not_running[debug:true-pyloop] ERROR ../../../tests/test_rwlock.py::test_ctor_deprecated_explicit_non_running[debug:true-pyloop] ERROR ../../../tests/test_rwlock.py::test_ctor_loop_deprecated_arg[debug:true-pyloop] ERROR ../../../tests/test_rwlock.py::test_ctor_loop_reader[debug:true-pyloop] ERROR ../../../tests/test_rwlock.py::test_ctor_noloop_reader[debug:true-pyloop] ERROR ../../../tests/test_rwlock.py::test_ctor_loop_writer[debug:true-pyloop] ERROR ../../../tests/test_rwlock.py::test_ctor_noloop_writer[debug:true-pyloop] ERROR ../../../tests/test_rwlock.py::test_repr[debug:true-pyloop] - pytest.Py... ERROR ../../../tests/test_rwlock.py::test_release_unlocked[debug:true-pyloop] ERROR ../../../tests/test_rwlock.py::test_many_readers[debug:true-fast-pyloop] ERROR ../../../tests/test_rwlock.py::test_reader_recursion[debug:true-fast-pyloop] ERROR ../../../tests/test_rwlock.py::test_writer_recursion[debug:true-fast-pyloop] ERROR ../../../tests/test_rwlock.py::test_writer_then_reader_recursion[debug:true-fast-pyloop] ERROR ../../../tests/test_rwlock.py::test_readers_writers[debug:true-fast-pyloop] ERROR ../../../tests/test_rwlock.py::test_raise_error_on_with_for_reader_lock[debug:true-fast-pyloop] ERROR ../../../tests/test_rwlock.py::test_raise_error_on_with_for_writer_lock[debug:true-fast-pyloop] ERROR ../../../tests/test_rwlock.py::test_read_locked[debug:true-fast-pyloop] ERROR ../../../tests/test_rwlock.py::test_write_locked[debug:true-fast-pyloop] ERROR ../../../tests/test_rwlock.py::test_write_read_lock_multiple_tasks[debug:true-fast-pyloop] ERROR ../../../tests/test_rwlock.py::test_read_context_manager[debug:true-fast-pyloop] ERROR ../../../tests/test_rwlock.py::test_write_context_manager[debug:true-fast-pyloop] ERROR ../../../tests/test_rwlock.py::test_await_read_lock[debug:true-fast-pyloop] ERROR ../../../tests/test_rwlock.py::test_await_write_lock[debug:true-fast-pyloop] ERROR ../../../tests/test_rwlock.py::test_raise_error_on_with_for_reader_lock[debug:true-fast-uvloop] ERROR ../../../tests/test_rwlock.py::test_raise_error_on_with_for_writer_lock[debug:true-fast-uvloop] ERROR ../../../tests/test_rwlock.py::test_read_locked[debug:true-fast-uvloop] ERROR ../../../tests/test_rwlock.py::test_write_locked[debug:true-fast-uvloop] ERROR ../../../tests/test_rwlock.py::test_write_read_lock_multiple_tasks[debug:true-fast-uvloop] ERROR ../../../tests/test_rwlock.py::test_read_context_manager[debug:true-fast-uvloop] ERROR ../../../tests/test_rwlock.py::test_write_context_manager[debug:true-fast-uvloop] ERROR ../../../tests/test_rwlock.py::test_await_read_lock[debug:true-fast-uvloop] ERROR ../../../tests/test_rwlock.py::test_await_write_lock[debug:true-fast-uvloop] ERROR ../../../tests/test_rwlock.py::test_ctor_deprecated_implicit_not_running[debug:true-uvloop] ERROR ../../../tests/test_rwlock.py::test_ctor_deprecated_explicit_non_running[debug:true-uvloop] ERROR ../../../tests/test_rwlock.py::test_ctor_loop_deprecated_arg[debug:true-uvloop] ERROR ../../../tests/test_rwlock.py::test_ctor_loop_reader[debug:true-uvloop] ERROR ../../../tests/test_rwlock.py::test_ctor_noloop_reader[debug:true-uvloop] ERROR ../../../tests/test_rwlock.py::test_ctor_loop_writer[debug:true-uvloop] ERROR ../../../tests/test_rwlock.py::test_ctor_noloop_writer[debug:true-uvloop] ERROR ../../../tests/test_rwlock.py::test_repr[debug:true-uvloop] - pytest.Py... ERROR ../../../tests/test_rwlock.py::test_release_unlocked[debug:true-uvloop] ERROR ../../../tests/test_rwlock.py::test_many_readers[debug:true-slow-uvloop] ERROR ../../../tests/test_rwlock.py::test_reader_recursion[debug:true-slow-uvloop] ERROR ../../../tests/test_rwlock.py::test_writer_recursion[debug:true-slow-uvloop] ERROR ../../../tests/test_rwlock.py::test_writer_then_reader_recursion[debug:true-slow-uvloop] ERROR ../../../tests/test_rwlock.py::test_readers_writers[debug:true-slow-uvloop] ERROR ../../../tests/test_rwlock.py::test_raise_error_on_with_for_reader_lock[debug:true-slow-uvloop] ERROR ../../../tests/test_rwlock.py::test_raise_error_on_with_for_writer_lock[debug:true-slow-uvloop] ERROR ../../../tests/test_rwlock.py::test_read_locked[debug:true-slow-uvloop] ERROR ../../../tests/test_rwlock.py::test_write_locked[debug:true-slow-uvloop] ERROR ../../../tests/test_rwlock.py::test_write_read_lock_multiple_tasks[debug:true-slow-uvloop] ERROR ../../../tests/test_rwlock.py::test_read_context_manager[debug:true-slow-uvloop] ERROR ../../../tests/test_rwlock.py::test_write_context_manager[debug:true-slow-uvloop] ERROR ../../../tests/test_rwlock.py::test_await_read_lock[debug:true-slow-uvloop] ERROR ../../../tests/test_rwlock.py::test_await_write_lock[debug:true-slow-uvloop] ERROR ../../../tests/test_rwlock.py::test_raise_error_on_with_for_reader_lock[debug:true-slow-pyloop] ERROR ../../../tests/test_rwlock.py::test_raise_error_on_with_for_writer_lock[debug:true-slow-pyloop] ERROR ../../../tests/test_rwlock.py::test_read_locked[debug:true-slow-pyloop] ERROR ../../../tests/test_rwlock.py::test_write_locked[debug:true-slow-pyloop] ERROR ../../../tests/test_rwlock.py::test_write_read_lock_multiple_tasks[debug:true-slow-pyloop] ERROR ../../../tests/test_rwlock.py::test_read_context_manager[debug:true-slow-pyloop] ERROR ../../../tests/test_rwlock.py::test_write_context_manager[debug:true-slow-pyloop] ERROR ../../../tests/test_rwlock.py::test_await_read_lock[debug:true-slow-pyloop] ERROR ../../../tests/test_rwlock.py::test_await_write_lock[debug:true-slow-pyloop] ERROR ../../../tests/test_rwlock.py::test_current_task[debug:true-uvloop] - p... ERROR ../../../tests/test_rwlock.py::test_current_task[debug:true-pyloop] - p... ERROR ../../../tests/test_rwlock.py::test_ctor_deprecated_implicit_not_running[debug:false-pyloop] ERROR ../../../tests/test_rwlock.py::test_ctor_deprecated_explicit_non_running[debug:false-pyloop] ERROR ../../../tests/test_rwlock.py::test_ctor_loop_deprecated_arg[debug:false-pyloop] ERROR ../../../tests/test_rwlock.py::test_ctor_loop_reader[debug:false-pyloop] ERROR ../../../tests/test_rwlock.py::test_ctor_noloop_reader[debug:false-pyloop] ERROR ../../../tests/test_rwlock.py::test_ctor_loop_writer[debug:false-pyloop] ERROR ../../../tests/test_rwlock.py::test_ctor_noloop_writer[debug:false-pyloop] ERROR ../../../tests/test_rwlock.py::test_repr[debug:false-pyloop] - pytest.P... ERROR ../../../tests/test_rwlock.py::test_release_unlocked[debug:false-pyloop] ERROR ../../../tests/test_rwlock.py::test_many_readers[debug:false-fast-pyloop] ERROR ../../../tests/test_rwlock.py::test_reader_recursion[debug:false-fast-pyloop] ERROR ../../../tests/test_rwlock.py::test_writer_recursion[debug:false-fast-pyloop] ERROR ../../../tests/test_rwlock.py::test_writer_then_reader_recursion[debug:false-fast-pyloop] ERROR ../../../tests/test_rwlock.py::test_readers_writers[debug:false-fast-pyloop] ERROR ../../../tests/test_rwlock.py::test_raise_error_on_with_for_reader_lock[debug:false-fast-pyloop] ERROR ../../../tests/test_rwlock.py::test_raise_error_on_with_for_writer_lock[debug:false-fast-pyloop] ERROR ../../../tests/test_rwlock.py::test_read_locked[debug:false-fast-pyloop] ERROR ../../../tests/test_rwlock.py::test_write_locked[debug:false-fast-pyloop] ERROR ../../../tests/test_rwlock.py::test_write_read_lock_multiple_tasks[debug:false-fast-pyloop] ERROR ../../../tests/test_rwlock.py::test_read_context_manager[debug:false-fast-pyloop] ERROR ../../../tests/test_rwlock.py::test_write_context_manager[debug:false-fast-pyloop] ERROR ../../../tests/test_rwlock.py::test_await_read_lock[debug:false-fast-pyloop] ERROR ../../../tests/test_rwlock.py::test_await_write_lock[debug:false-fast-pyloop] ERROR ../../../tests/test_rwlock.py::test_many_readers[debug:false-fast-uvloop] ERROR ../../../tests/test_rwlock.py::test_reader_recursion[debug:false-fast-uvloop] ERROR ../../../tests/test_rwlock.py::test_writer_recursion[debug:false-fast-uvloop] ERROR ../../../tests/test_rwlock.py::test_writer_then_reader_recursion[debug:false-fast-uvloop] ERROR ../../../tests/test_rwlock.py::test_readers_writers[debug:false-fast-uvloop] ERROR ../../../tests/test_rwlock.py::test_raise_error_on_with_for_reader_lock[debug:false-fast-uvloop] ERROR ../../../tests/test_rwlock.py::test_raise_error_on_with_for_writer_lock[debug:false-fast-uvloop] ERROR ../../../tests/test_rwlock.py::test_read_locked[debug:false-fast-uvloop] ERROR ../../../tests/test_rwlock.py::test_write_locked[debug:false-fast-uvloop] ERROR ../../../tests/test_rwlock.py::test_write_read_lock_multiple_tasks[debug:false-fast-uvloop] ERROR ../../../tests/test_rwlock.py::test_read_context_manager[debug:false-fast-uvloop] ERROR ../../../tests/test_rwlock.py::test_write_context_manager[debug:false-fast-uvloop] ERROR ../../../tests/test_rwlock.py::test_await_read_lock[debug:false-fast-uvloop] ERROR ../../../tests/test_rwlock.py::test_await_write_lock[debug:false-fast-uvloop] ERROR ../../../tests/test_rwlock.py::test_ctor_deprecated_implicit_not_running[debug:false-uvloop] ERROR ../../../tests/test_rwlock.py::test_ctor_deprecated_explicit_non_running[debug:false-uvloop] ERROR ../../../tests/test_rwlock.py::test_ctor_loop_deprecated_arg[debug:false-uvloop] ERROR ../../../tests/test_rwlock.py::test_ctor_loop_reader[debug:false-uvloop] ERROR ../../../tests/test_rwlock.py::test_ctor_noloop_reader[debug:false-uvloop] ERROR ../../../tests/test_rwlock.py::test_ctor_loop_writer[debug:false-uvloop] ERROR ../../../tests/test_rwlock.py::test_ctor_noloop_writer[debug:false-uvloop] ERROR ../../../tests/test_rwlock.py::test_repr[debug:false-uvloop] - pytest.P... ERROR ../../../tests/test_rwlock.py::test_release_unlocked[debug:false-uvloop] ERROR ../../../tests/test_rwlock.py::test_many_readers[debug:false-slow-uvloop] ERROR ../../../tests/test_rwlock.py::test_reader_recursion[debug:false-slow-uvloop] ERROR ../../../tests/test_rwlock.py::test_writer_recursion[debug:false-slow-uvloop] ERROR ../../../tests/test_rwlock.py::test_writer_then_reader_recursion[debug:false-slow-uvloop] ERROR ../../../tests/test_rwlock.py::test_readers_writers[debug:false-slow-uvloop] ERROR ../../../tests/test_rwlock.py::test_raise_error_on_with_for_reader_lock[debug:false-slow-uvloop] ERROR ../../../tests/test_rwlock.py::test_raise_error_on_with_for_writer_lock[debug:false-slow-uvloop] ERROR ../../../tests/test_rwlock.py::test_read_locked[debug:false-slow-uvloop] ERROR ../../../tests/test_rwlock.py::test_write_locked[debug:false-slow-uvloop] ERROR ../../../tests/test_rwlock.py::test_write_read_lock_multiple_tasks[debug:false-slow-uvloop] ERROR ../../../tests/test_rwlock.py::test_read_context_manager[debug:false-slow-uvloop] ERROR ../../../tests/test_rwlock.py::test_write_context_manager[debug:false-slow-uvloop] ERROR ../../../tests/test_rwlock.py::test_await_read_lock[debug:false-slow-uvloop] ERROR ../../../tests/test_rwlock.py::test_await_write_lock[debug:false-slow-uvloop] ERROR ../../../tests/test_rwlock.py::test_raise_error_on_with_for_reader_lock[debug:false-slow-pyloop] ERROR ../../../tests/test_rwlock.py::test_raise_error_on_with_for_writer_lock[debug:false-slow-pyloop] ERROR ../../../tests/test_rwlock.py::test_read_locked[debug:false-slow-pyloop] ERROR ../../../tests/test_rwlock.py::test_write_locked[debug:false-slow-pyloop] ERROR ../../../tests/test_rwlock.py::test_write_read_lock_multiple_tasks[debug:false-slow-pyloop] ERROR ../../../tests/test_rwlock.py::test_read_context_manager[debug:false-slow-pyloop] ERROR ../../../tests/test_rwlock.py::test_write_context_manager[debug:false-slow-pyloop] ERROR ../../../tests/test_rwlock.py::test_await_read_lock[debug:false-slow-pyloop] ERROR ../../../tests/test_rwlock.py::test_await_write_lock[debug:false-slow-pyloop] ERROR ../../../tests/test_rwlock.py::test_writer_success_fast[debug:false-uvloop] ERROR ../../../tests/test_rwlock.py::test_writer_success_with_statement[debug:false-uvloop] ERROR ../../../tests/test_rwlock.py::test_current_task[debug:false-uvloop] - ... ERROR ../../../tests/test_rwlock.py::test_writer_success_fast[debug:false-pyloop] ERROR ../../../tests/test_rwlock.py::test_writer_success_with_statement[debug:false-pyloop] ERROR ../../../tests/test_rwlock.py::test_current_task[debug:false-pyloop] - ... ================== 95 failed, 97 passed, 141 errors in 21.01s ================== E: pybuild pybuild:389: test: plugin distutils failed with: exit code=1: cd /build/reproducible-path/aiorwlock-1.0.0/.pybuild/cpython3_3.11_aiorwlock/build; python3.11 -m pytest {dir}/tests dh_auto_test: error: pybuild --test -i python{version} -p "3.12 3.11" returned exit code 13 make: *** [debian/rules:8: build] Error 25 dpkg-buildpackage: error: debian/rules build subprocess returned exit status 2 I: copying local configuration E: Failed autobuilding of package I: unmounting dev/ptmx filesystem I: unmounting dev/pts filesystem I: unmounting dev/shm filesystem I: unmounting proc filesystem I: unmounting sys filesystem I: cleaning the build env I: removing directory /srv/workspace/pbuilder/7504 and its subdirectories Tue May 28 06:58:20 UTC 2024 W: No second build log, what happened?