Skip to content

Stop OSError leaks past rmtree's ignore_errors - #357

Merged
jborean93 merged 1 commit into
jborean93:masterfrom
henrik-nil-acc:fix/rmtree-error-handling
Jun 22, 2026
Merged

Stop OSError leaks past rmtree's ignore_errors#357
jborean93 merged 1 commit into
jborean93:masterfrom
henrik-nil-acc:fix/rmtree-error-handling

Conversation

@henrik-nil-acc

Copy link
Copy Markdown
Contributor

rmtree's top-level islink probe ran outside any try-except, so an OSError there bypassed ignore_errors=True.
ignore_errors installs a no-op onerror, not a global suppressor, so any unguarded call reaches the caller.

rmtree's top-level islink probe ran outside any try-except,
so an OSError there bypassed ignore_errors=True.
ignore_errors installs a no-op onerror, not a global
suppressor, so any unguarded call reaches the caller.
@codecov

codecov Bot commented Jun 10, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 98.78%. Comparing base (9b8e7d4) to head (89f95a2).

Additional details and impacted files
@@           Coverage Diff           @@
##           master     #357   +/-   ##
=======================================
  Coverage   98.78%   98.78%           
=======================================
  Files          24       24           
  Lines        5276     5276           
=======================================
  Hits         5212     5212           
  Misses         64       64           
Flag Coverage Δ
macOS 68.38% <100.00%> (+0.17%) ⬆️
py3.10 98.78% <100.00%> (ø)
py3.11 98.78% <100.00%> (ø)
py3.12 98.78% <100.00%> (ø)
py3.13 98.78% <100.00%> (ø)
py3.14 98.78% <100.00%> (ø)
ubuntu 96.70% <100.00%> (+0.07%) ⬆️
windows 98.71% <100.00%> (ø)

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@jborean93
jborean93 merged commit 54a9f12 into jborean93:master Jun 22, 2026
19 checks passed
@henrik-nil-acc
henrik-nil-acc deleted the fix/rmtree-error-handling branch June 26, 2026 03:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants