diff options
author | Zac Medico <zmedico@gentoo.org> | 2018-11-26 06:06:17 -0800 |
---|---|---|
committer | Zac Medico <zmedico@gentoo.org> | 2018-11-26 06:06:17 -0800 |
commit | 7a919b0b4ba9bc47316c557614cf001711c5212f (patch) | |
tree | 0a8e018d3f619734af5f34db9bb4dce7f8328135 | |
parent | dev-python/APScheduler: remove old versions (diff) | |
download | gentoo-7a919b0b4ba9bc47316c557614cf001711c5212f.tar.gz gentoo-7a919b0b4ba9bc47316c557614cf001711c5212f.tar.bz2 gentoo-7a919b0b4ba9bc47316c557614cf001711c5212f.zip |
dev-python/APScheduler: disable broken tests
Package-Manager: Portage-2.3.52, Repoman-2.3.12
Signed-off-by: Zac Medico <zmedico@gentoo.org>
-rw-r--r-- | dev-python/APScheduler/APScheduler-3.3.1.ebuild | 37 |
1 files changed, 35 insertions, 2 deletions
diff --git a/dev-python/APScheduler/APScheduler-3.3.1.ebuild b/dev-python/APScheduler/APScheduler-3.3.1.ebuild index c4f2cbbc9d71..d643457bf3b1 100644 --- a/dev-python/APScheduler/APScheduler-3.3.1.ebuild +++ b/dev-python/APScheduler/APScheduler-3.3.1.ebuild @@ -1,4 +1,4 @@ -# Copyright 1999-2018 Gentoo Foundation +# Copyright 1999-2018 Gentoo Authors # Distributed under the terms of the GNU General Public License v2 EAPI=6 @@ -24,11 +24,44 @@ RDEPEND="dev-python/pytz[${PYTHON_USEDEP}] DEPEND="${RDEPEND} test? ( dev-python/pytest[${PYTHON_USEDEP}] - dev-python/pytest-capturelog[${PYTHON_USEDEP}] )" + +# Tests that are known to fail (some may be triggered by network-sandbox). +test_failures=( + test_add_class_method_job + test_add_instance_method_job + test_add_job_conflicting_id + test_asyncio_executor_shutdown + test_get_all_jobs + test_get_next_run_time + test_get_pending_jobs + test_get_pending_jobs_subsecond_difference + test_lookup_job + test_lookup_nonexistent_job + test_one_job_fails_to_load + test_remove_all_jobs + test_remove_job + test_remove_nonexistent_job + test_repr_mongodbjobstore + test_repr_redisjobstore + test_repr_zookeeperjobstore + test_run_coroutine_job + test_run_coroutine_job_tornado + test_update_job + test_update_job_clear_next_runtime + test_update_job_next_runtime + test_update_job_nonexistent_job + test_zookeeper_client_keep_open + test_zookeeper_client_ref +) + python_prepare_all() { sed -i -e /setuptools_scm/d setup.py || die + while read -r -d ''; do + sed -Ee "s:$(echo "${test_failures[@]}"| sed 's: :|:g'):_\\0:" -i "${REPLY}" || die + done < <(grep -rElZ "$(echo "${test_failures[@]}"| sed 's: :|:g')" "${S}") + distutils-r1_python_prepare_all } |