Commit 371fcc5
authored
fix: set fixed paths_list in TreeMatcher init (#2130)
My CI pipeline has encountered this error:
```
.venv/lib/python3.11/site-packages/coverage/inorout.py:354: in should_trace
self.set_matchers_depending_on_syspath()
.venv/lib/python3.11/site-packages/coverage/inorout.py:308: in set_matchers_depending_on_syspath
self.third_match = TreeMatcher(self.third_paths, "third", "Third-party lib", self._debug)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
.venv/lib/python3.11/site-packages/coverage/files.py:266: in __init_
for p in paths:
E RuntimeError: Set changed size during iteration
```
This seems like a very similar situation to #1733
which was fixed by something similar: 08fc997.1 parent 8df0d5f commit 371fcc5
1 file changed
Lines changed: 3 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
260 | 260 | | |
261 | 261 | | |
262 | 262 | | |
263 | | - | |
| 263 | + | |
| 264 | + | |
264 | 265 | | |
265 | 266 | | |
266 | | - | |
| 267 | + | |
267 | 268 | | |
268 | 269 | | |
269 | 270 | | |
| |||
0 commit comments