Skip to content

The agent that grows with you

test(scratch): drop a useless return in a salvaged test (ruff PLR1711)

Teknium001a247dc064
diff --git a/tests/test_scratch_dir.py b/tests/test_scratch_dir.py
index 55acdff4967..cf70ed6cce9 100644
--- a/tests/test_scratch_dir.py
+++ b/tests/test_scratch_dir.py
@@ -510,7 +510,6 @@ def test_postremoval_unreadable_entry_is_not_counted_as_removed(tmp_path: Path)
def rmtree_leaves_residue(path, *args, **kwargs):
# rmtree(ignore_errors=True) is allowed to leave the directory in place.
deny["lstat"] = True
- return None
real_lstat = os.lstat