diff options
| author | Michał Górny <mgorny@gentoo.org> | 2024-06-20 17:12:23 +0200 |
|---|---|---|
| committer | Michał Górny <mgorny@gentoo.org> | 2024-06-20 17:20:06 +0200 |
| commit | bf06b7b9ea6b606bd4080deab9526d8147dd64d7 (patch) | |
| tree | ad3f01125d226397bbbf8f382b2e2d780c0dad59 /dev-python/apache-libcloud/apache-libcloud-3.8.0-r1.ebuild | |
| parent | 1862dab667e65f41d10080f17d52349b13863b38 (diff) | |
| download | gentoo-bf06b7b9ea6b606bd4080deab9526d8147dd64d7.tar.gz gentoo-bf06b7b9ea6b606bd4080deab9526d8147dd64d7.tar.bz2 gentoo-bf06b7b9ea6b606bd4080deab9526d8147dd64d7.zip | |
dev-python/apache-libcloud: Fix tests
Closes: https://bugs.gentoo.org/931233
Signed-off-by: Michał Górny <mgorny@gentoo.org>
Diffstat (limited to 'dev-python/apache-libcloud/apache-libcloud-3.8.0-r1.ebuild')
| -rw-r--r-- | dev-python/apache-libcloud/apache-libcloud-3.8.0-r1.ebuild | 28 |
1 files changed, 20 insertions, 8 deletions
diff --git a/dev-python/apache-libcloud/apache-libcloud-3.8.0-r1.ebuild b/dev-python/apache-libcloud/apache-libcloud-3.8.0-r1.ebuild index 26ad934cf8f7..f5aa54b9b35f 100644 --- a/dev-python/apache-libcloud/apache-libcloud-3.8.0-r1.ebuild +++ b/dev-python/apache-libcloud/apache-libcloud-3.8.0-r1.ebuild @@ -1,4 +1,4 @@ -# Copyright 1999-2023 Gentoo Authors +# Copyright 1999-2024 Gentoo Authors # Distributed under the terms of the GNU General Public License v2 EAPI=8 @@ -35,13 +35,14 @@ BDEPEND=" distutils_enable_tests pytest -EPYTEST_DESELECT=( - # Needs network access - libcloud/test/compute/test_ovh.py::OvhTests::test_list_nodes_invalid_region - libcloud/test/test_connection.py::BaseConnectionClassTestCase::test_connection_timeout_raised -) - src_prepare() { + local PATCHES=( + # https://github.com/apache/libcloud/pull/2014 + "${FILESDIR}/${P}-pytest-8.2.patch" + ) + + distutils-r1_src_prepare + if use examples; then mkdir examples || die mv example_*.py examples || die @@ -49,8 +50,19 @@ src_prepare() { # needed for tests cp libcloud/test/secrets.py-dist libcloud/test/secrets.py || die +} - distutils-r1_src_prepare +python_test() { + local EPYTEST_DESELECT=( + # Needs network access + libcloud/test/compute/test_ovh.py::OvhTests::test_list_nodes_invalid_region + libcloud/test/test_connection.py::BaseConnectionClassTestCase::test_connection_timeout_raised + # TODO + libcloud/test/test_init.py::TestUtils::test_init_once_and_debug_mode + ) + + local -x PYTEST_DISABLE_PLUGIN_AUTOLOAD=1 + epytest } src_install() { |
