Skip to content

Commit 45fc9ac

Browse files
authored
[3.15] gh-149504: Fix re-entrancy bug when .pth/.start file invokes site.add sitedir() (#149659) (#149799)
* gh-149504: Fix re-entrancy bug when .pth/.start file invokes site.addsitedir() (#149659) * Add re-entrant tests for gh-149504 * Add end-to-end integration test coverage This ensures that future whitebox internal test changes do not regress the public surface semantics. * Implement a state class to process .pth and .start files By using this state class and managing implicit and explicit batching, we make it structurally impossible to get bitten by re-entrant site startup processing. Fixes #149504 (cherry picked from commit b162307) * Add myself back to CODEOWNERS
1 parent b650305 commit 45fc9ac

4 files changed

Lines changed: 753 additions & 423 deletions

File tree

.github/CODEOWNERS

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -573,9 +573,9 @@ Lib/shutil.py @giampaolo
573573
Lib/test/test_shutil.py @giampaolo
574574

575575
# Site
576-
Lib/site.py @FFY00
577-
Lib/test/test_site.py @FFY00
578-
Doc/library/site.rst @FFY00
576+
Lib/site.py @FFY00 @warsaw
577+
Lib/test/test_site.py @FFY00 @warsaw
578+
Doc/library/site.rst @FFY00 @warsaw
579579

580580
# string.templatelib
581581
Doc/library/string.templatelib.rst @lysnikolaou @AA-Turner

0 commit comments

Comments
 (0)