Commit 3828280
committed
[Python] Clear TList in tseqcollection_itemaccess.py:test_delitem
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.1 parent 5d902d8 commit 3828280
1 file changed
Lines changed: 6 additions & 0 deletions
Lines changed: 6 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
125 | 125 | | |
126 | 126 | | |
127 | 127 | | |
| 128 | + | |
| 129 | + | |
| 130 | + | |
| 131 | + | |
128 | 132 | | |
129 | 133 | | |
130 | 134 | | |
| |||
239 | 243 | | |
240 | 244 | | |
241 | 245 | | |
| 246 | + | |
| 247 | + | |
242 | 248 | | |
243 | 249 | | |
244 | 250 | | |
| |||
0 commit comments