python3Packages.sanic: disable failing tests on aarch64-linux

This commit is contained in:
Thiago Kenji Okada 2021-11-07 21:02:38 -03:00
parent 86c688e46f
commit 58524356c4

View file

@ -5,7 +5,6 @@
, buildPythonPackage
, doCheck ? true
, fetchFromGitHub
, fetchpatch
, gunicorn
, httptools
, multidict
@ -68,8 +67,8 @@ buildPythonPackage rec {
inherit doCheck;
preCheck = ''
# Some tests depends on executables on PATH
PATH="$out/bin:${gunicorn}/bin:$PATH"
# Some tests depends on sanic on PATH
PATH="$out/bin:$PATH"
'';
disabledTests = [
@ -87,6 +86,16 @@ buildPythonPackage rec {
] ++ lib.optionals stdenv.isDarwin [
# https://github.com/sanic-org/sanic/issues/2298
"test_no_exceptions_when_cancel_pending_request"
] ++ lib.optionals (stdenv.hostPlatform.system == "aarch64-linux") [
# These appear to be very sensitive to output of commands
# Output is different on aarch64
"test_server_run"
"test_host_port"
"test_num_workers"
"test_access_logs"
"test_version"
# Failing for a different reason than Darwin
"test_no_exceptions_when_cancel_pending_request"
];
# avoid usage of nixpkgs-review in darwin since tests will compete usage