diff options
author | Louis Sautier <sbraz@gentoo.org> | 2021-08-22 14:41:47 +0200 |
---|---|---|
committer | Louis Sautier <sbraz@gentoo.org> | 2021-08-22 14:41:49 +0200 |
commit | 4967ba6bce258b32ad3a15b9ed55afd41800caf3 (patch) | |
tree | 09b265ba189e2472fd19d433ad93bab7541bbe3d /dev-python | |
parent | dev-python/pycups: add 2.0.1, enable py3.10, update HOMEPAGE (diff) | |
download | gentoo-4967ba6bce258b32ad3a15b9ed55afd41800caf3.tar.gz gentoo-4967ba6bce258b32ad3a15b9ed55afd41800caf3.tar.bz2 gentoo-4967ba6bce258b32ad3a15b9ed55afd41800caf3.zip |
dev-python/oauth2: enable py3.10, use epytest
Signed-off-by: Louis Sautier <sbraz@gentoo.org>
Diffstat (limited to 'dev-python')
-rw-r--r-- | dev-python/oauth2/oauth2-1.9.0_p1-r1.ebuild | 15 |
1 files 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 4153a69ecea5..dcf5e4e10dd9 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 +) |