python3Packages.uvloop: skip flakey test_cancel_post_init (#473859)

This commit is contained in:
Vladimír Čunát
2026-01-01 08:53:34 +00:00
committed by GitHub
@@ -2,9 +2,9 @@
lib,
stdenv,
buildPythonPackage,
pythonAtLeast,
pythonOlder,
fetchFromGitHub,
fetchpatch,
# build-system
cython,
@@ -70,6 +70,9 @@ buildPythonPackage rec {
"tests/test_tcp.py::Test_AIO_TCP::test_create_connection_open_con_addr"
# ConnectionAbortedError: SSL handshake is taking longer than 15.0 seconds
"tests/test_tcp.py::Test_AIO_TCPSSL::test_create_connection_ssl_1"
# Fails randomly on hydra
# https://github.com/MagicStack/uvloop/issues/709
"tests/test_process.py::TestAsyncio_AIO_Process::test_cancel_post_init"
]
++ lib.optionals (pythonOlder "3.11") [
"tests/test_tcp.py::Test_UV_TCPSSL::test_create_connection_ssl_failed_certificat"
@@ -79,10 +82,6 @@ buildPythonPackage rec {
"tests/test_fs_event.py::Test_UV_FS_EVENT_RENAME::test_fs_event_rename"
# Broken: https://github.com/NixOS/nixpkgs/issues/160904
"tests/test_context.py::Test_UV_Context::test_create_ssl_server_manual_connection_lost"
]
++ lib.optionals (stdenv.hostPlatform.isDarwin && pythonAtLeast "3.14") [
# https://github.com/MagicStack/uvloop/issues/709
"tests/test_process.py::TestAsyncio_AIO_Process::test_cancel_post_init"
];
preCheck = ''