commit: 4967ba6bce258b32ad3a15b9ed55afd41800caf3
Author: Louis Sautier <sbraz <AT> gentoo <DOT> org>
AuthorDate: Sun Aug 22 12:41:47 2021 +0000
Commit: Louis Sautier <sbraz <AT> gentoo <DOT> org>
CommitDate: Sun Aug 22 12:41:49 2021 +0000
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=4967ba6b
dev-python/oauth2: enable py3.10, use epytest
Signed-off-by: Louis Sautier <sbraz <AT> gentoo.org>
dev-python/oauth2/oauth2-1.9.0_p1-r1.ebuild | 15 ++++++++-------
1 file changed, 8 insertions(+), 7 deletions(-)
diff --git a/dev-python/oauth2/oauth2-1.9.0_p1-r1.ebuild
b/dev-python/oauth2/oauth2-1.9.0_p1-r1.ebuild
index 4153a69ecea..dcf5e4e10dd 100644
--- a/dev-python/oauth2/oauth2-1.9.0_p1-r1.ebuild
+++ b/dev-python/oauth2/oauth2-1.9.0_p1-r1.ebuild
@@ -3,7 +3,7 @@
EAPI=7
-PYTHON_COMPAT=( python3_{7,8,9} )
+PYTHON_COMPAT=( python3_{8..10} )
inherit distutils-r1
@@ -31,9 +31,10 @@ PATCHES=(
distutils_enable_tests pytest
-python_test() {
- # Skip tests which require network access
- py.test -k "not (test_access_token_post or test_access_token_get \
- or test_two_legged_post or test_two_legged_get)" || die \
- "tests failed with ${EPYTHON}"
-}
+EPYTEST_DESELECT=(
+ # These tests require network access
+ tests/test_oauth.py::TestClient::test_access_token_get
+ tests/test_oauth.py::TestClient::test_access_token_post
+ tests/test_oauth.py::TestClient::test_two_legged_get
+ tests/test_oauth.py::TestClient::test_two_legged_post
+)