1 |
commit: de57766c4c54eb18df4b26796fb53ceb23505b1f |
2 |
Author: Arthur Zamarin <arthurzam <AT> gentoo <DOT> org> |
3 |
AuthorDate: Sat Dec 4 06:28:17 2021 +0000 |
4 |
Commit: Arthur Zamarin <arthurzam <AT> gentoo <DOT> org> |
5 |
CommitDate: Sat Dec 4 08:54:08 2021 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=de57766c |
7 |
|
8 |
dev-python/httpx: fix testing timeouts |
9 |
|
10 |
- Disable 2 tests that fail on all devboxes |
11 |
({arm,ppc}{,64},sparc,x86,amd64,hppa) |
12 |
Those two are unimportant. |
13 |
- Increase timeout for one test that is too fast for hppa |
14 |
- Do small cleanup in ebuild |
15 |
|
16 |
Signed-off-by: Arthur Zamarin <arthurzam <AT> gentoo.org> |
17 |
|
18 |
dev-python/httpx/httpx-0.19.0.ebuild | 25 +++++++++++++------------ |
19 |
1 file changed, 13 insertions(+), 12 deletions(-) |
20 |
|
21 |
diff --git a/dev-python/httpx/httpx-0.19.0.ebuild b/dev-python/httpx/httpx-0.19.0.ebuild |
22 |
index dc9db3eda06c..4da735394292 100644 |
23 |
--- a/dev-python/httpx/httpx-0.19.0.ebuild |
24 |
+++ b/dev-python/httpx/httpx-0.19.0.ebuild |
25 |
@@ -41,19 +41,20 @@ BDEPEND=" |
26 |
|
27 |
distutils_enable_tests pytest |
28 |
|
29 |
+EPYTEST_DESELECT=( |
30 |
+ # Internet |
31 |
+ tests/client/test_proxies.py::test_async_proxy_close |
32 |
+ tests/client/test_proxies.py::test_sync_proxy_close |
33 |
+ # known to fail, unimportant test |
34 |
+ "tests/test_decoders.py::test_text_decoder[data3-iso-8859-1]" |
35 |
+ tests/models/test_responses.py::test_response_no_charset_with_iso_8859_1_content |
36 |
+) |
37 |
+ |
38 |
python_prepare_all() { |
39 |
+ # increase timeout for slower systems |
40 |
+ sed -e 's/pool=/&10*/' -i tests/test_timeouts.py || die |
41 |
# trio does not support py3.10 |
42 |
- sed -i '/^import trio/d' tests/concurrency.py || die |
43 |
- sed -i '/pytest.param("trio", marks=pytest.mark.trio)/d' tests/conftest.py || die |
44 |
+ sed -e '/^import trio/d' -i tests/concurrency.py || die |
45 |
+ sed -e '/pytest.param("trio", marks=pytest.mark.trio)/d' -i tests/conftest.py || die |
46 |
distutils-r1_python_prepare_all |
47 |
} |
48 |
- |
49 |
-python_test() { |
50 |
- local deselect=( |
51 |
- # Internet |
52 |
- tests/client/test_proxies.py::test_async_proxy_close |
53 |
- tests/client/test_proxies.py::test_sync_proxy_close |
54 |
- ) |
55 |
- |
56 |
- epytest ${deselect[@]/#/--deselect } |
57 |
-} |