Skip to content

Call _threading_atexits in a reversed order#595

Closed
Chang-LeHung wants to merge 2 commits intogaogaotiantian:masterfrom
Chang-LeHung:dev
Closed

Call _threading_atexits in a reversed order#595
Chang-LeHung wants to merge 2 commits intogaogaotiantian:masterfrom
Chang-LeHung:dev

Conversation

@Chang-LeHung
Copy link
Copy Markdown
Contributor

@Chang-LeHung Chang-LeHung commented May 15, 2025

It is better to call functions in _threading_atexits in the reverse order. Cleanup functions are always "first in, last out". The threading module does this too ( in the function _shutdown, which is invoked by CPython internals when exiting).

@codecov
Copy link
Copy Markdown

codecov bot commented May 15, 2025

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 100.00%. Comparing base (e4083e0) to head (1775202).
Report is 1 commits behind head on master.

Additional details and impacted files
@@            Coverage Diff            @@
##            master      #595   +/-   ##
=========================================
  Coverage   100.00%   100.00%           
=========================================
  Files           19        19           
  Lines         2225      2225           
=========================================
  Hits          2225      2225           

☔ View full report in Codecov by Sentry.
📢 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.

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.

1 participant