diff options
author | Michał Górny <mgorny@gentoo.org> | 2021-06-19 13:37:37 +0200 |
---|---|---|
committer | Michał Górny <mgorny@gentoo.org> | 2021-06-19 14:01:25 +0200 |
commit | 51c4fe33b479e1bf1666e0672799f2cc07e51a7c (patch) | |
tree | 257614abf4f7c785aeeb50ce9d25e83ec87c210d /dev-python/aiohttp | |
parent | dev-python/aiohttp: Backport the switch to app-arch/brotli (diff) | |
download | gentoo-51c4fe33b479e1bf1666e0672799f2cc07e51a7c.tar.gz gentoo-51c4fe33b479e1bf1666e0672799f2cc07e51a7c.tar.bz2 gentoo-51c4fe33b479e1bf1666e0672799f2cc07e51a7c.zip |
dev-python/aiohttp: Deselect more failing tests
Signed-off-by: Michał Górny <mgorny@gentoo.org>
Diffstat (limited to 'dev-python/aiohttp')
-rw-r--r-- | dev-python/aiohttp/aiohttp-3.7.4-r1.ebuild | 43 |
1 files changed, 25 insertions, 18 deletions
diff --git a/dev-python/aiohttp/aiohttp-3.7.4-r1.ebuild b/dev-python/aiohttp/aiohttp-3.7.4-r1.ebuild index d35289bb49a3..3871075876e4 100644 --- a/dev-python/aiohttp/aiohttp-3.7.4-r1.ebuild +++ b/dev-python/aiohttp/aiohttp-3.7.4-r1.ebuild @@ -57,21 +57,6 @@ distutils_enable_sphinx docs \ 'dev-python/sphinx-aiohttp-theme' python_prepare_all() { - # Fails due to a warning - sed -e 's:test_read_boundary_with_incomplete_chunk:_&:' \ - -i tests/test_multipart.py || die - # with py3.7+ - sed -e 's:test_aiohttp_request_coroutine:_&:' \ - -i tests/test_client_functional.py || die - - # Fails due to path mismatch - sed -e 's:test_static:_&:' \ - -i tests/test_route_def.py || die - - # Internet - sed -e 's:test_mark_formdata_as_processed:_&:' \ - -i tests/test_formdata.py || die - # newer chardet works too sed -e 's|chardet>=2.0,<4.0|chardet>=2.0|' \ -i setup.py aiohttp.egg-info/requires.txt || die @@ -83,10 +68,32 @@ python_prepare_all() { } python_test() { + local deselect=( + # fails with a 'runtime warning' + 'tests/test_client_functional.py::test_aiohttp_request_coroutine[pyloop]' + + # fragile to test paths + tests/test_route_def.py::test_static + + # requires Internet + tests/test_formdata.py::test_mark_formdata_as_processed + + # 'Event loop is closed' -- probably broken by old age + 'tests/test_streams.py::TestDataQueue::test_read[pyloop]' + 'tests/test_streams.py::TestDataQueue::test_read_eof[pyloop]' + 'tests/test_streams.py::TestDataQueue::test_read_cancelled[pyloop]' + 'tests/test_streams.py::TestDataQueue::test_read_until_eof[pyloop]' + 'tests/test_streams.py::TestDataQueue::test_read_exc[pyloop]' + 'tests/test_streams.py::TestDataQueue::test_read_exception[pyloop]' + 'tests/test_streams.py::TestDataQueue::test_read_exception_with_data[pyloop]' + 'tests/test_streams.py::TestDataQueue::test_read_exception_on_wait[pyloop]' + 'tests/test_streams.py::TestDataQueue::test_exception_waiter[pyloop]' + ) + pushd "${BUILD_DIR}/lib" >/dev/null || die ln -snf "${S}"/{LICENSE.txt,tests} . || die - pytest -n "$(makeopts_jobs "${MAKEOPTS}" "$(get_nproc)")" --forked \ - -vv tests || die "Tests fail with ${EPYTHON}" - rm -rf .pytest_cache tests || die + epytest -n "$(makeopts_jobs "${MAKEOPTS}" "$(get_nproc)")" --forked \ + ${deselect[@]/#/--deselect } tests + rm -rf .hypothesis .pytest_cache tests || die popd >/dev/null || die } |