summaryrefslogtreecommitdiff
path: root/dev-python/pytest-asyncio
diff options
context:
space:
mode:
Diffstat (limited to 'dev-python/pytest-asyncio')
-rw-r--r--dev-python/pytest-asyncio/files/pytest-asyncio-0.15.1-310-test-warnings.patch12
-rw-r--r--dev-python/pytest-asyncio/pytest-asyncio-0.15.1.ebuild4
2 files changed, 16 insertions, 0 deletions
diff --git a/dev-python/pytest-asyncio/files/pytest-asyncio-0.15.1-310-test-warnings.patch b/dev-python/pytest-asyncio/files/pytest-asyncio-0.15.1-310-test-warnings.patch
new file mode 100644
index 000000000000..50f1c9f2d168
--- /dev/null
+++ b/dev-python/pytest-asyncio/files/pytest-asyncio-0.15.1-310-test-warnings.patch
@@ -0,0 +1,12 @@
+diff --git a/setup.cfg b/setup.cfg
+index 0161086..047501c 100644
+--- a/setup.cfg
++++ b/setup.cfg
+@@ -8,6 +8,7 @@ show_missing = true
+ addopts = -rsx --tb=short
+ testpaths = tests
+ filterwarnings = error
++ ignore::DeprecationWarning
+
+ [metadata]
+ # ensure LICENSE is included in wheel metadata
diff --git a/dev-python/pytest-asyncio/pytest-asyncio-0.15.1.ebuild b/dev-python/pytest-asyncio/pytest-asyncio-0.15.1.ebuild
index d6e2facac5e4..89332d96c0de 100644
--- a/dev-python/pytest-asyncio/pytest-asyncio-0.15.1.ebuild
+++ b/dev-python/pytest-asyncio/pytest-asyncio-0.15.1.ebuild
@@ -23,4 +23,8 @@ BDEPEND="
>=dev-python/hypothesis-3.64[${PYTHON_USEDEP}]
)"
+PATCHES=(
+ "${FILESDIR}/${P}-310-test-warnings.patch"
+)
+
distutils_enable_tests --install pytest