diff options
author | Michał Górny <mgorny@gentoo.org> | 2021-11-27 14:29:16 +0100 |
---|---|---|
committer | Michał Górny <mgorny@gentoo.org> | 2021-11-27 14:46:21 +0100 |
commit | 0cf8cd82a63f045cf695be8e0494527ed27c27fd (patch) | |
tree | e31ea477316664b8566aaa063f36e51bf460ba66 /dev-python | |
parent | dev-python/werkzeug: Remove old (diff) | |
download | gentoo-0cf8cd82a63f045cf695be8e0494527ed27c27fd.tar.gz gentoo-0cf8cd82a63f045cf695be8e0494527ed27c27fd.tar.bz2 gentoo-0cf8cd82a63f045cf695be8e0494527ed27c27fd.zip |
dev-python/werkzeug: Support testing without cryptography
Skip tests requiring cryptography when it is unavailable. This prepares
werkzeug-2 for removal of keywords due to Rust.
werkzeug-1 is fine since it skips tests requiring cryptography
gracefully.
Signed-off-by: Michał Górny <mgorny@gentoo.org>
Diffstat (limited to 'dev-python')
-rw-r--r-- | dev-python/werkzeug/werkzeug-2.0.2.ebuild | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/dev-python/werkzeug/werkzeug-2.0.2.ebuild b/dev-python/werkzeug/werkzeug-2.0.2.ebuild index ce9f8fe88f1a..6d3f35c97c9e 100644 --- a/dev-python/werkzeug/werkzeug-2.0.2.ebuild +++ b/dev-python/werkzeug/werkzeug-2.0.2.ebuild @@ -35,6 +35,15 @@ BDEPEND=" distutils_enable_tests pytest python_test() { + local EPYTEST_DESELECT=() + if ! has_version "dev-python/cryptography[${PYTHON_USEDEP}]"; then + EPYTEST_DESELECT+=( + "tests/test_serving.py::test_server[https]" + tests/test_serving.py::test_ssl_dev_cert + tests/test_serving.py::test_ssl_object + ) + fi + distutils_install_for_testing --via-venv # the default portage tempdir is too long for AF_UNIX sockets |