(item)
| 75 | remaining = len(data) |
| 76 | |
| 77 | def bounded_append(item): |
| 78 | nonlocal remaining |
| 79 | assert remaining > 0, "extend revisited an appended element" |
| 80 | remaining -= 1 |
| 81 | append(item) |
| 82 | |
| 83 | # Bound the regression test even if extend iterates its growing destination. |
| 84 | monkeypatch.setattr(data, "append", bounded_append) |
nothing calls this directly
no outgoing calls
no test coverage detected