Signed-off-by: Michał Górny <mgorny@gentoo.org>
SLOT="0"
KEYWORDS="~amd64 ~arm ~arm64 ~x86"
IUSE="doc test"
+RESTRICT="!test? ( test )"
CDEPEND="
>=dev-python/async_timeout-3.0.0[${PYTHON_USEDEP}]
sed -e 's:test_compression_brotli:_\0:' \
-e 's:test_feed_eof_no_err_brotli:_\0:' \
-i tests/test_http_parser.py || die
+ # make pytest warnings non-fatal, to unbreak tests
+ sed -i -e '/filterwarnings/d' setup.cfg || die
distutils-r1_python_prepare_all
}
}
python_test() {
- esetup.py test
+ pytest -vv || die "Tests fail with ${EPYTHON}"
}
python_install_all() {