-
-
Notifications
You must be signed in to change notification settings - Fork 433
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: enforce thread safety for collector.data
Testing on nogil failed with: ``` 2024-06-13T07:27:44.0416467Z def _clear_data(self) -> None: 2024-06-13T07:27:44.0417153Z """Clear out existing data, but stay ready for more collection.""" 2024-06-13T07:27:44.0417837Z # We used to use self.data.clear(), but that would remove filename 2024-06-13T07:27:44.0418583Z # keys and data values that were still in use higher up the stack 2024-06-13T07:27:44.0419145Z # when we are called as part of switch_context. 2024-06-13T07:27:44.0419639Z > for d in self.data.values(): 2024-06-13T07:27:44.0420219Z E RuntimeError: dictionary changed size during iteration 2024-06-13T07:27:44.0420572Z 2024-06-13T07:27:44.0420753Z coverage/collector.py:258: RuntimeError ```
- Loading branch information
Showing
8 changed files
with
80 additions
and
11 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters