mirror of
https://github.com/void-linux/void-packages.git
synced 2025-06-05 06:33:50 +02:00
python3-pytest-asyncio: update to 0.21.1, adopt.
This commit is contained in:
parent
2c76033d30
commit
10a9643c64
2 changed files with 18 additions and 3 deletions
15
srcpkgs/python3-pytest-asyncio/patches/fix-test.patch
Normal file
15
srcpkgs/python3-pytest-asyncio/patches/fix-test.patch
Normal file
|
@ -0,0 +1,15 @@
|
||||||
|
--- a/tests/hypothesis/test_inherited_test.py 2023-07-12 07:11:21.000000000 -0300
|
||||||
|
+++ b/tests/hypothesis/test_inherited_test.py 2023-09-15 19:12:21.328680631 -0300
|
||||||
|
@@ -1,10 +1,11 @@
|
||||||
|
import hypothesis.strategies as st
|
||||||
|
import pytest
|
||||||
|
-from hypothesis import given
|
||||||
|
+from hypothesis import given, settings, HealthCheck
|
||||||
|
|
||||||
|
|
||||||
|
class BaseClass:
|
||||||
|
@pytest.mark.asyncio
|
||||||
|
+ @settings(suppress_health_check=(HealthCheck.differing_executors,))
|
||||||
|
@given(value=st.integers())
|
||||||
|
async def test_hypothesis(self, value: int) -> None:
|
||||||
|
pass
|
|
@ -1,18 +1,18 @@
|
||||||
# Template file for 'python3-pytest-asyncio'
|
# Template file for 'python3-pytest-asyncio'
|
||||||
pkgname=python3-pytest-asyncio
|
pkgname=python3-pytest-asyncio
|
||||||
version=0.21.0
|
version=0.21.1
|
||||||
revision=1
|
revision=1
|
||||||
build_style=python3-pep517
|
build_style=python3-pep517
|
||||||
hostmakedepends="python3-setuptools_scm python3-wheel"
|
hostmakedepends="python3-setuptools_scm python3-wheel"
|
||||||
depends="python3-pytest"
|
depends="python3-pytest"
|
||||||
checkdepends="$depends python3-flaky python3-hypothesis python3-pytest-trio"
|
checkdepends="$depends python3-flaky python3-hypothesis python3-pytest-trio"
|
||||||
short_desc="Pytest plugin for asyncio"
|
short_desc="Pytest plugin for asyncio"
|
||||||
maintainer="Orphaned <orphan@voidlinux.org>"
|
maintainer="Gonzalo Tornaría <tornaria@cmat.edu.uy>"
|
||||||
license="Apache-2.0"
|
license="Apache-2.0"
|
||||||
homepage="https://github.com/pytest-dev/pytest-asyncio"
|
homepage="https://github.com/pytest-dev/pytest-asyncio"
|
||||||
changelog="https://raw.githubusercontent.com/pytest-dev/pytest-asyncio/master/docs/source/reference/changelog.rst"
|
changelog="https://raw.githubusercontent.com/pytest-dev/pytest-asyncio/master/docs/source/reference/changelog.rst"
|
||||||
distfiles="${PYPI_SITE}/p/pytest-asyncio/pytest-asyncio-${version}.tar.gz"
|
distfiles="${PYPI_SITE}/p/pytest-asyncio/pytest-asyncio-${version}.tar.gz"
|
||||||
checksum=2b38a496aef56f56b0e87557ec313e11e1ab9276fc3863f6a7be0f1d0e415e1b
|
checksum=40a7eae6dded22c7b604986855ea48400ab15b069ae38116e8c01238e9eeb64d
|
||||||
|
|
||||||
if [ "$XBPS_BUILD_ENVIRONMENT" = void-packages-ci ]; then
|
if [ "$XBPS_BUILD_ENVIRONMENT" = void-packages-ci ]; then
|
||||||
# these tests fail on CI (bind to a tcp address)
|
# these tests fail on CI (bind to a tcp address)
|
||||||
|
|
Loading…
Add table
Reference in a new issue