1 |
commit: 4967ba6bce258b32ad3a15b9ed55afd41800caf3 |
2 |
Author: Louis Sautier <sbraz <AT> gentoo <DOT> org> |
3 |
AuthorDate: Sun Aug 22 12:41:47 2021 +0000 |
4 |
Commit: Louis Sautier <sbraz <AT> gentoo <DOT> org> |
5 |
CommitDate: Sun Aug 22 12:41:49 2021 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=4967ba6b |
7 |
|
8 |
dev-python/oauth2: enable py3.10, use epytest |
9 |
|
10 |
Signed-off-by: Louis Sautier <sbraz <AT> gentoo.org> |
11 |
|
12 |
dev-python/oauth2/oauth2-1.9.0_p1-r1.ebuild | 15 ++++++++------- |
13 |
1 file changed, 8 insertions(+), 7 deletions(-) |
14 |
|
15 |
diff --git a/dev-python/oauth2/oauth2-1.9.0_p1-r1.ebuild b/dev-python/oauth2/oauth2-1.9.0_p1-r1.ebuild |
16 |
index 4153a69ecea..dcf5e4e10dd 100644 |
17 |
--- a/dev-python/oauth2/oauth2-1.9.0_p1-r1.ebuild |
18 |
+++ b/dev-python/oauth2/oauth2-1.9.0_p1-r1.ebuild |
19 |
@@ -3,7 +3,7 @@ |
20 |
|
21 |
EAPI=7 |
22 |
|
23 |
-PYTHON_COMPAT=( python3_{7,8,9} ) |
24 |
+PYTHON_COMPAT=( python3_{8..10} ) |
25 |
|
26 |
inherit distutils-r1 |
27 |
|
28 |
@@ -31,9 +31,10 @@ PATCHES=( |
29 |
|
30 |
distutils_enable_tests pytest |
31 |
|
32 |
-python_test() { |
33 |
- # Skip tests which require network access |
34 |
- py.test -k "not (test_access_token_post or test_access_token_get \ |
35 |
- or test_two_legged_post or test_two_legged_get)" || die \ |
36 |
- "tests failed with ${EPYTHON}" |
37 |
-} |
38 |
+EPYTEST_DESELECT=( |
39 |
+ # These tests require network access |
40 |
+ tests/test_oauth.py::TestClient::test_access_token_get |
41 |
+ tests/test_oauth.py::TestClient::test_access_token_post |
42 |
+ tests/test_oauth.py::TestClient::test_two_legged_get |
43 |
+ tests/test_oauth.py::TestClient::test_two_legged_post |
44 |
+) |