python3Packages.sanic: Update disabled tests, cleanup
This commit is contained in:
parent
8fdb3b675c
commit
b86abf8880
|
@ -9,13 +9,12 @@
|
||||||
, httptools
|
, httptools
|
||||||
, multidict
|
, multidict
|
||||||
, pytest-asyncio
|
, pytest-asyncio
|
||||||
, pytest-benchmark
|
,pytestCheckHook
|
||||||
, pytest-sugar
|
|
||||||
, pytestCheckHook
|
|
||||||
, pythonOlder
|
, pythonOlder
|
||||||
, pythonAtLeast
|
, pythonAtLeast
|
||||||
, sanic-routing
|
, sanic-routing
|
||||||
, sanic-testing
|
, sanic-testing
|
||||||
|
, setuptools
|
||||||
, ujson
|
, ujson
|
||||||
, uvicorn
|
, uvicorn
|
||||||
, uvloop
|
, uvloop
|
||||||
|
@ -26,7 +25,7 @@
|
||||||
buildPythonPackage rec {
|
buildPythonPackage rec {
|
||||||
pname = "sanic";
|
pname = "sanic";
|
||||||
version = "22.12.0";
|
version = "22.12.0";
|
||||||
format = "setuptools";
|
format = "pyproject";
|
||||||
|
|
||||||
disabled = pythonOlder "3.7";
|
disabled = pythonOlder "3.7";
|
||||||
|
|
||||||
|
@ -37,6 +36,10 @@ buildPythonPackage rec {
|
||||||
hash = "sha256-Vj780rP5rJ+YsMWlb3BR9LTKT/nTt0C2H3J0X9sysj8=";
|
hash = "sha256-Vj780rP5rJ+YsMWlb3BR9LTKT/nTt0C2H3J0X9sysj8=";
|
||||||
};
|
};
|
||||||
|
|
||||||
|
nativeBuildInputs = [
|
||||||
|
setuptools
|
||||||
|
];
|
||||||
|
|
||||||
propagatedBuildInputs = [
|
propagatedBuildInputs = [
|
||||||
aiofiles
|
aiofiles
|
||||||
aioquic
|
aioquic
|
||||||
|
@ -76,44 +79,34 @@ buildPythonPackage rec {
|
||||||
|
|
||||||
pytestFlagsArray = [
|
pytestFlagsArray = [
|
||||||
"--asyncio-mode=auto"
|
"--asyncio-mode=auto"
|
||||||
|
"-vvv"
|
||||||
];
|
];
|
||||||
|
|
||||||
disabledTests = [
|
disabledTests = [
|
||||||
# Require networking
|
# Require networking
|
||||||
"test_full_message"
|
"test_full_message"
|
||||||
# Fails to parse cmdline arguments
|
# Server mode mismatch (debug vs production)
|
||||||
"test_dev"
|
|
||||||
"test_auto_reload"
|
|
||||||
"test_host_port_ipv6_loopback"
|
|
||||||
"test_num_workers"
|
"test_num_workers"
|
||||||
"test_debug"
|
|
||||||
"test_access_logs"
|
|
||||||
"test_noisy_exceptions"
|
|
||||||
# OSError: foo
|
|
||||||
"test_bad_headers"
|
|
||||||
"test_create_server_trigger_events"
|
|
||||||
"test_json_body_requests"
|
|
||||||
"test_missing_startup_raises_exception"
|
|
||||||
"test_no_body_requests"
|
|
||||||
"test_oserror_warning"
|
|
||||||
"test_running_multiple_offset_warning"
|
|
||||||
"test_streaming_body_requests"
|
|
||||||
"test_trigger_before_events_create_server"
|
|
||||||
"test_keep_alive_connection_context"
|
|
||||||
# Racy tests
|
# Racy tests
|
||||||
"test_keep_alive_client_timeout"
|
"test_keep_alive_client_timeout"
|
||||||
"test_keep_alive_server_timeout"
|
"test_keep_alive_server_timeout"
|
||||||
"test_zero_downtime"
|
"test_zero_downtime"
|
||||||
# TLS tests
|
# sanic.exceptions.SanicException: Cannot setup Sanic Simple Server without a path to a directory
|
||||||
"test_missing_sni"
|
|
||||||
"test_no_matching_cert"
|
|
||||||
"test_wildcards"
|
|
||||||
# They thtow execptions
|
|
||||||
"test_load_app_simple"
|
"test_load_app_simple"
|
||||||
"worker/test_loader.py"
|
# create defunct python processes
|
||||||
# broke with ujson 5.4 upgrade
|
"test_reloader_live"
|
||||||
# https://github.com/sanic-org/sanic/pull/2504
|
"test_reloader_live_with_dir"
|
||||||
"test_json_response_json"
|
"test_reload_listeners"
|
||||||
|
# crash the python interpreter
|
||||||
|
"test_host_port_localhost"
|
||||||
|
"test_host_port"
|
||||||
|
"test_server_run"
|
||||||
|
# NoneType object is not subscriptable
|
||||||
|
"test_serve_app_implicit"
|
||||||
|
# AssertionError: assert [] == ['Restarting a process', 'Begin restart termination', 'Starting a process']
|
||||||
|
"test_default_reload_shutdown_order"
|
||||||
|
# App not found.
|
||||||
|
"test_input_is_dir"
|
||||||
];
|
];
|
||||||
|
|
||||||
disabledTestPaths = [
|
disabledTestPaths = [
|
||||||
|
|
Loading…
Reference in a new issue