1 |
commit: 51c4fe33b479e1bf1666e0672799f2cc07e51a7c |
2 |
Author: Michał Górny <mgorny <AT> gentoo <DOT> org> |
3 |
AuthorDate: Sat Jun 19 11:37:37 2021 +0000 |
4 |
Commit: Michał Górny <mgorny <AT> gentoo <DOT> org> |
5 |
CommitDate: Sat Jun 19 12:01:25 2021 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=51c4fe33 |
7 |
|
8 |
dev-python/aiohttp: Deselect more failing tests |
9 |
|
10 |
Signed-off-by: Michał Górny <mgorny <AT> gentoo.org> |
11 |
|
12 |
dev-python/aiohttp/aiohttp-3.7.4-r1.ebuild | 43 +++++++++++++++++------------- |
13 |
1 file changed, 25 insertions(+), 18 deletions(-) |
14 |
|
15 |
diff --git a/dev-python/aiohttp/aiohttp-3.7.4-r1.ebuild b/dev-python/aiohttp/aiohttp-3.7.4-r1.ebuild |
16 |
index d35289bb49a..3871075876e 100644 |
17 |
--- a/dev-python/aiohttp/aiohttp-3.7.4-r1.ebuild |
18 |
+++ b/dev-python/aiohttp/aiohttp-3.7.4-r1.ebuild |
19 |
@@ -57,21 +57,6 @@ distutils_enable_sphinx docs \ |
20 |
'dev-python/sphinx-aiohttp-theme' |
21 |
|
22 |
python_prepare_all() { |
23 |
- # Fails due to a warning |
24 |
- sed -e 's:test_read_boundary_with_incomplete_chunk:_&:' \ |
25 |
- -i tests/test_multipart.py || die |
26 |
- # with py3.7+ |
27 |
- sed -e 's:test_aiohttp_request_coroutine:_&:' \ |
28 |
- -i tests/test_client_functional.py || die |
29 |
- |
30 |
- # Fails due to path mismatch |
31 |
- sed -e 's:test_static:_&:' \ |
32 |
- -i tests/test_route_def.py || die |
33 |
- |
34 |
- # Internet |
35 |
- sed -e 's:test_mark_formdata_as_processed:_&:' \ |
36 |
- -i tests/test_formdata.py || die |
37 |
- |
38 |
# newer chardet works too |
39 |
sed -e 's|chardet>=2.0,<4.0|chardet>=2.0|' \ |
40 |
-i setup.py aiohttp.egg-info/requires.txt || die |
41 |
@@ -83,10 +68,32 @@ python_prepare_all() { |
42 |
} |
43 |
|
44 |
python_test() { |
45 |
+ local deselect=( |
46 |
+ # fails with a 'runtime warning' |
47 |
+ 'tests/test_client_functional.py::test_aiohttp_request_coroutine[pyloop]' |
48 |
+ |
49 |
+ # fragile to test paths |
50 |
+ tests/test_route_def.py::test_static |
51 |
+ |
52 |
+ # requires Internet |
53 |
+ tests/test_formdata.py::test_mark_formdata_as_processed |
54 |
+ |
55 |
+ # 'Event loop is closed' -- probably broken by old age |
56 |
+ 'tests/test_streams.py::TestDataQueue::test_read[pyloop]' |
57 |
+ 'tests/test_streams.py::TestDataQueue::test_read_eof[pyloop]' |
58 |
+ 'tests/test_streams.py::TestDataQueue::test_read_cancelled[pyloop]' |
59 |
+ 'tests/test_streams.py::TestDataQueue::test_read_until_eof[pyloop]' |
60 |
+ 'tests/test_streams.py::TestDataQueue::test_read_exc[pyloop]' |
61 |
+ 'tests/test_streams.py::TestDataQueue::test_read_exception[pyloop]' |
62 |
+ 'tests/test_streams.py::TestDataQueue::test_read_exception_with_data[pyloop]' |
63 |
+ 'tests/test_streams.py::TestDataQueue::test_read_exception_on_wait[pyloop]' |
64 |
+ 'tests/test_streams.py::TestDataQueue::test_exception_waiter[pyloop]' |
65 |
+ ) |
66 |
+ |
67 |
pushd "${BUILD_DIR}/lib" >/dev/null || die |
68 |
ln -snf "${S}"/{LICENSE.txt,tests} . || die |
69 |
- pytest -n "$(makeopts_jobs "${MAKEOPTS}" "$(get_nproc)")" --forked \ |
70 |
- -vv tests || die "Tests fail with ${EPYTHON}" |
71 |
- rm -rf .pytest_cache tests || die |
72 |
+ epytest -n "$(makeopts_jobs "${MAKEOPTS}" "$(get_nproc)")" --forked \ |
73 |
+ ${deselect[@]/#/--deselect } tests |
74 |
+ rm -rf .hypothesis .pytest_cache tests || die |
75 |
popd >/dev/null || die |
76 |
} |