Skip to content

[Python] Clear TList in tseqcollection_itemaccess.py:test_delitem#21532

Merged
guitargeek merged 1 commit intoroot-project:masterfrom
guitargeek:spinoff_2
Mar 8, 2026
Merged

[Python] Clear TList in tseqcollection_itemaccess.py:test_delitem#21532
guitargeek merged 1 commit intoroot-project:masterfrom
guitargeek:spinoff_2

Conversation

@guitargeek
Copy link
Contributor

@guitargeek guitargeek commented Mar 7, 2026

Clear the TList at the end of the test_delitem unit test in tseqcollection_itemaccess.py to make sure the contained list elements are still alive when the list is cleared. Otherwise, the elements might be deleted before the containing list, depending on the order or garbage collection.

Spinoff from #13593

Clear the TList at the end of the `test_delitem` unit test in
tseqcollection_itemaccess.py to make sure the contained list elements
are still alive when the list is cleared. Otherwise, the elements might
be deleted before the containing list, depending on the order or garbage
collection.
@github-actions
Copy link

github-actions bot commented Mar 7, 2026

Test Results

    22 files      22 suites   3d 11h 2m 58s ⏱️
 3 828 tests  3 827 ✅ 1 💤 0 ❌
76 601 runs  76 592 ✅ 9 💤 0 ❌

Results for commit 3828280.

Copy link
Member

@vepadulano vepadulano left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm starting to think we should deprecate TList for Python usage at least in docs :)

@guitargeek
Copy link
Contributor Author

Absolutely agreed!

@guitargeek guitargeek merged commit 2734b50 into root-project:master Mar 8, 2026
30 checks passed
@guitargeek guitargeek deleted the spinoff_2 branch March 8, 2026 10:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants