commit:     bcdf5efb36ded9c51bb4eeff457c7bd70f0877cd
Author:     Anna (cybertailor) Vyalkova <cyber+gentoo <AT> sysrq <DOT> in>
AuthorDate: Wed Nov  2 21:34:27 2022 +0000
Commit:     Anna Vyalkova <cyber+gentoo <AT> sysrq <DOT> in>
CommitDate: Thu Nov  3 01:12:51 2022 +0000
URL:        https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=bcdf5efb

dev-python/praw: oh no, broken tests

Signed-off-by: Anna (cybertailor) Vyalkova <cyber+gentoo <AT> sysrq.in>

 dev-python/praw/praw-7.6.0.ebuild | 16 ++++++++++++++--
 1 file changed, 14 insertions(+), 2 deletions(-)

diff --git a/dev-python/praw/praw-7.6.0.ebuild 
b/dev-python/praw/praw-7.6.0.ebuild
index ee5eca1a9..5f75c851c 100644
--- a/dev-python/praw/praw-7.6.0.ebuild
+++ b/dev-python/praw/praw-7.6.0.ebuild
@@ -4,6 +4,7 @@
 EAPI=8
 
 PYTHON_COMPAT=( python3_{8..10} )
+DISTUTILS_USE_PEP517=setuptools
 inherit distutils-r1
 
 DESCRIPTION="Python Reddit API Wrapper"
@@ -25,6 +26,14 @@ BDEPEND="test? (
        dev-python/betamax-matchers[${PYTHON_USEDEP}]
 )"
 
+# TODO: remove in next release
+EPYTEST_DESELECT=(
+       tests/unit/test_deprecations.py
+       tests/unit/util/test_deprecate_args.py
+       
tests/unit/models/reddit/test_submission.py::TestSubmission::test_comment_sort_warning
+       
tests/unit/models/reddit/test_submission.py::TestSubmission::test_comment_sort_warning__disabled
+)
+
 distutils_enable_sphinx docs dev-python/sphinx_rtd_theme
 
 distutils_enable_tests pytest
@@ -37,6 +46,9 @@ python_prepare_all() {
 }
 
 python_test() {
-       # spams deprecation warnings
-       epytest -p no:asyncio
+       local epytestargs=(
+               # spams deprecation warnings
+               -p no:asyncio
+       )
+       epytest "${epytestargs[@]}"
 }

Reply via email to