python3Packages.looptime: disable failing time-based tests on darwin

These fail pretty predictably on darwin but pass on linux.

Some data points:

https://hydra.nixos.org/build/321428246/nixlog/4
https://hydra.nixos.org/build/321428217/nixlog/4
https://hydra.nixos.org/build/321466734/nixlog/4
https://hydra.nixos.org/build/321466717/nixlog/4
This commit is contained in:
Tom Hunze
2026-03-23 22:23:26 +01:00
parent 4c5e6b8d41
commit 03542a0471
@@ -7,6 +7,7 @@
pytestCheckHook,
setuptools,
setuptools-scm,
stdenv,
}:
buildPythonPackage (finalAttrs: {
@@ -34,6 +35,20 @@ buildPythonPackage (finalAttrs: {
pytestCheckHook
];
disabledTestPaths = lib.optionals stdenv.hostPlatform.isDarwin [
# Time-based tests that fail pretty predictably on darwin but pass on linux
"tests/test_chronometers.py::test_duration_resets_on_reuse"
"tests/test_chronometers.py::test_conversion_to_float"
"tests/test_chronometers.py::test_sync_context_manager"
"tests/test_chronometers.py::test_async_context_manager"
"tests/test_plugin.py::test_fixture_chronometer"
"tests/test_time_moves.py::test_real_time_is_ignored"
"tests/test_time_on_executors.py::test_with_sleep"
"tests/test_time_on_io_idle.py::test_end_of_time"
"tests/test_time_on_io_idle.py::test_no_idle_configured"
"tests/test_time_on_io_idle.py::test_stepping_with_no_limit"
];
meta = {
changelog = "https://github.com/nolar/looptime/releases/tag/${finalAttrs.src.tag}";
description = "Time dilation & contraction in asyncio event loops (in tests)";