Gentoo Archives: gentoo-commits

From: "Michał Górny" <mgorny@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: dev-python/uvicorn/
Date: Wed, 16 Jun 2021 18:57:13
Message-Id: 1623869820.da455f72ea2399dd5bebea2c3f3faec0173a0ff4.mgorny@gentoo
1 commit: da455f72ea2399dd5bebea2c3f3faec0173a0ff4
2 Author: Michał Górny <mgorny <AT> gentoo <DOT> org>
3 AuthorDate: Wed Jun 16 17:45:30 2021 +0000
4 Commit: Michał Górny <mgorny <AT> gentoo <DOT> org>
5 CommitDate: Wed Jun 16 18:57:00 2021 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=da455f72
7
8 dev-python/uvicorn: Skip tests requiring python-dotenv in 0.14.0
9
10 Signed-off-by: Michał Górny <mgorny <AT> gentoo.org>
11
12 dev-python/uvicorn/uvicorn-0.14.0.ebuild | 9 +++++++++
13 1 file changed, 9 insertions(+)
14
15 diff --git a/dev-python/uvicorn/uvicorn-0.14.0.ebuild b/dev-python/uvicorn/uvicorn-0.14.0.ebuild
16 index f6347568597..3b12bff47fd 100644
17 --- a/dev-python/uvicorn/uvicorn-0.14.0.ebuild
18 +++ b/dev-python/uvicorn/uvicorn-0.14.0.ebuild
19 @@ -42,3 +42,12 @@ python_prepare_all() {
20 -i tests/supervisors/test_reload.py
21 distutils-r1_python_prepare_all
22 }
23 +
24 +python_test() {
25 + local deselect=(
26 + # requires python-dotenv that's not keyworded everywhere yet
27 + # see 0.14.0-r1
28 + tests/test_config.py::test_env_file
29 + )
30 + epytest ${deselect[@]/#/--deselect }
31 +}