From a1c6560973ca14c3241ffc0f40edc1fbfcf43f5e Mon Sep 17 00:00:00 2001 From: Marco Blackwell Date: Tue, 30 Jun 2026 10:45:42 +0100 Subject: [PATCH] [Tests] Tolerate extra robust_rmtree retry from real NFS removal robust_rmtree stubs a failed tree removal due to ENOTEMPTY twice then calls a real shutil.rmtree and asserts that attempts=3. But that third call might fail with a real ENOTEMPTY, so assert attempts >= 3 instead. Signed-off-by: Marco Blackwell --- tests/util/test_robust_rmtree.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/util/test_robust_rmtree.py b/tests/util/test_robust_rmtree.py index 5826984609..c227c57cb3 100644 --- a/tests/util/test_robust_rmtree.py +++ b/tests/util/test_robust_rmtree.py @@ -56,7 +56,7 @@ def flaky(path, *a, **kw): robust_rmtree(target, retries=5) - assert state["calls"] == 3 + assert state["calls"] >= 3 assert not os.path.exists(target)