mirror of
https://github.com/gentoo-mirror/gentoo.git
synced 2026-09-24 04:59:14 -07:00
dev-python/urllib3: Fix tests
Signed-off-by: Michał Górny <mgorny@gentoo.org>
This commit is contained in:
@@ -50,6 +50,9 @@ python_prepare_all() {
|
||||
# https://github.com/urllib3/urllib3/issues/1756
|
||||
sed -e 's:10.255.255.1:240.0.0.0:' \
|
||||
-i test/__init__.py || die
|
||||
# upstream requires updates to this periodically. seriously?!
|
||||
sed -e '/RECENT_DATE/s:date(.*):date(2020, 7, 1):' \
|
||||
-i src/urllib3/connection.py || die
|
||||
# tests failing if 'localhost.' cannot be resolved
|
||||
sed -e 's:test_dotted_fqdn:_&:' \
|
||||
-i test/with_dummyserver/test_https.py || die
|
||||
@@ -62,9 +65,13 @@ python_prepare_all() {
|
||||
python_test() {
|
||||
local -x CI=1
|
||||
# FIXME: get tornado ported
|
||||
case ${EPYTHON} in
|
||||
python3*)
|
||||
pytest -vv || die "Tests fail with ${EPYTHON}"
|
||||
;;
|
||||
esac
|
||||
[[ ${EPYTHON} == python3* ]] || continue
|
||||
|
||||
local deselect=(
|
||||
# TODO?
|
||||
test/with_dummyserver/test_socketlevel.py::TestSocketClosing::test_timeout_errors_cause_retries
|
||||
)
|
||||
|
||||
pytest -vv ${deselect[@]/#/--deselect } ||
|
||||
die "Tests fail with ${EPYTHON}"
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user