Repository navigation
Commit 51b5b91
committed
boil: test_iter drops its refcount and finalizer-timing checks
Deleted:
- test_ref_counting_behavior: __del__ ran as soon as `del x` dropped the
last reference, and right after a failed unpack released the iterator.
Adapted test_seq_class_reentrant_exhaustion (pythongh-156310):
- removed the getrefcount checks that the sequence was not released twice;
- removed the second half, where IndexError.__del__ re-entered next() at
the moment the exception's last reference went.
The re-entrant next() from inside __getitem__ and the revival check stay:
they exercise iterator state, not reference counts.1 parent 86e0e34 commit 51b5b91
1 file changed
Lines changed: 3 additions & 53 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
250 | 250 | | |
251 | 251 | | |
252 | 252 | | |
253 | | - | |
254 | 253 | | |
255 | | - | |
256 | | - | |
257 | | - | |
| 254 | + | |
| 255 | + | |
| 256 | + | |
258 | 257 | | |
259 | 258 | | |
260 | 259 | | |
| |||
269 | 268 | | |
270 | 269 | | |
271 | 270 | | |
272 | | - | |
273 | 271 | | |
274 | 272 | | |
275 | | - | |
276 | | - | |
277 | | - | |
278 | | - | |
279 | | - | |
280 | | - | |
281 | | - | |
282 | | - | |
283 | | - | |
284 | | - | |
285 | | - | |
286 | | - | |
287 | | - | |
288 | | - | |
289 | | - | |
290 | | - | |
291 | | - | |
292 | | - | |
293 | | - | |
294 | | - | |
295 | | - | |
296 | | - | |
297 | 273 | | |
298 | 274 | | |
299 | 275 | | |
| |||
1145 | 1121 | | |
1146 | 1122 | | |
1147 | 1123 | | |
1148 | | - | |
1149 | | - | |
1150 | | - | |
1151 | | - | |
1152 | | - | |
1153 | | - | |
1154 | | - | |
1155 | | - | |
1156 | | - | |
1157 | | - | |
1158 | | - | |
1159 | | - | |
1160 | | - | |
1161 | | - | |
1162 | | - | |
1163 | | - | |
1164 | | - | |
1165 | | - | |
1166 | | - | |
1167 | | - | |
1168 | | - | |
1169 | | - | |
1170 | | - | |
1171 | | - | |
1172 | | - | |
1173 | | - | |
1174 | 1124 | | |
1175 | 1125 | | |
1176 | 1126 | | |
| |||
0 commit comments