From e25a46d54dfb7f69e824f7a3be3b0607a63c5873 Mon Sep 17 00:00:00 2001 From: Sigmanificient Date: Fri, 22 May 2026 22:52:01 +0200 Subject: [PATCH] python3Packages.qtile: add pytest-rerunfailures --- pkgs/development/python-modules/qtile/default.nix | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/pkgs/development/python-modules/qtile/default.nix b/pkgs/development/python-modules/qtile/default.nix index debd651e5785..cc1c02378a29 100644 --- a/pkgs/development/python-modules/qtile/default.nix +++ b/pkgs/development/python-modules/qtile/default.nix @@ -51,6 +51,7 @@ pytestCheckHook, pytest-asyncio, pytest-httpbin, + pytest-rerunfailures, pytest-xdist, writableTmpDirAsHomeHook, anyio, @@ -161,6 +162,11 @@ buildPythonPackage (finalAttrs: { xvfb ]; + pytestFlags = [ + "--reruns 3" + "--reruns-delay 5" + ]; + preCheck = '' export PATH=$PATH:$out/bin ''; @@ -186,12 +192,6 @@ buildPythonPackage (finalAttrs: { # Probably won't work in the Nix sandbox due to `xcffib.ConnectionException` "test_urgent_hook_fire" - - # flaky: race between force_update() executor task and widget.info() read - "test_threadpolltext_force_update" - - # flaky: race between repl server bind and client connect - "test_repl_server_executes_code" ]; passthru = {