@@ -18,7 +18,7 @@ optdepends=(python-aiobotocore python-aiohttp python-bottle python-django
18
18
python-pg8000 python-psycopg2 python-pymongo python-pymysql
19
19
python-pynamodb python-requests python-sqlalchemy)
20
20
makedepends=(python-setuptools ${optdepends[@]} )
21
- checkdepends=(python-pytest python-pytest-aiohttp python-testing.postgresql
21
+ checkdepends=(python-pytest python-pytest-asyncio python-pytest- aiohttp python-testing.postgresql
22
22
python-webtest python-django-fake-model python-mock python-pytest-benchmark)
23
23
# Not using PyPI source tarball as it does not include tests
24
24
source=(" https://github.com/aws/aws-xray-sdk-python/archive/$pkgver /$pkgname -$pkgver .tar.gz"
@@ -38,6 +38,11 @@ prepare() {
38
38
39
39
# https://github.com/aws/aws-xray-sdk-python/issues/321
40
40
patch -Np1 -i ../python310.diff
41
+
42
+ cat > pytest.ini << EOF
43
+ [pytest]
44
+ asyncio_mode = auto
45
+ EOF
41
46
}
42
47
43
48
build () {
@@ -53,10 +58,13 @@ check() {
53
58
export AWS_SECRET_ACCESS_KEY=fake_key
54
59
export AWS_ACCESS_KEY_ID=fake_id
55
60
56
- # the test suite for pymysql uses testing.mysqld, which is not
57
- # compatible with MariaDB
58
- # https://github.com/tk0miya/testing.mysqld/issues/3
59
- pytest -v tests --ignore tests/ext/pymysql
61
+ # * the test suite for aiohttp uses test_client fixture, which is
62
+ # dropped in the latest pytest-aiohttp
63
+ # * the test suite for pymysql uses testing.mysqld, which is not
64
+ # compatible with MariaDB [1]
65
+ # [1] https://github.com/tk0miya/testing.mysqld/issues/3
66
+ pytest -v tests --ignore tests/ext/aiohttp \
67
+ --ignore tests/ext/pymysql
60
68
}
61
69
62
70
package () {
0 commit comments