From 03542a04716df0ba473e5573ac617826b5a3429c Mon Sep 17 00:00:00 2001 From: Tom Hunze Date: Mon, 23 Mar 2026 22:10:46 +0100 Subject: [PATCH] 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 --- .../python-modules/looptime/default.nix | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/pkgs/development/python-modules/looptime/default.nix b/pkgs/development/python-modules/looptime/default.nix index 6cbe673d6ba6..1a7a64dc3fa9 100644 --- a/pkgs/development/python-modules/looptime/default.nix +++ b/pkgs/development/python-modules/looptime/default.nix @@ -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)";