python3Packages.urllib3: disable tests again
This commit is contained in:
parent
3b97019142
commit
3a7674c896
@ -47,13 +47,22 @@ buildPythonPackage rec {
|
|||||||
trustme
|
trustme
|
||||||
];
|
];
|
||||||
|
|
||||||
disabledTests = if stdenv.hostPlatform.isAarch64 then
|
# Tests in urllib3 are mostly timeout-based instead of event-based and
|
||||||
[
|
# are therefore inherently flaky. On your own machine, the tests will
|
||||||
"test_connection_closed_on_read_timeout_preload_false"
|
# typically build fine, but on a loaded cluster such as Hydra random
|
||||||
"test_ssl_failed_fingerprint_verification"
|
# timeouts will occur.
|
||||||
]
|
#
|
||||||
else
|
# The urllib3 test suite has two different timeouts in their test suite
|
||||||
null;
|
# (see `test/__init__.py`):
|
||||||
|
# - SHORT_TIMEOUT
|
||||||
|
# - LONG_TIMEOUT
|
||||||
|
# When CI is in the env, LONG_TIMEOUT will be significantly increased.
|
||||||
|
# Still, failures can occur and for that reason tests are disabled.
|
||||||
|
doCheck = false;
|
||||||
|
|
||||||
|
preCheck = ''
|
||||||
|
export CI # Increases LONG_TIMEOUT
|
||||||
|
'';
|
||||||
|
|
||||||
pythonImportsCheck = [ "urllib3" ];
|
pythonImportsCheck = [ "urllib3" ];
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user