Repository navigation
Commit 1981cd8
committed
refactor: extract the parametrization core into _pytest.parametrize
Move IdMaker, CallSpec and _ascii_escaped_by_config out of python.py
into a new module, together with the long-str id strategy literals they
own. python.py imports them back, so _pytest.python.CallSpec and the
CallSpec2 alias keep resolving as before.
Pure move, no behaviour change. The two CollectError call sites go
through a small _collect_error() helper which imports nodes lazily, so
nodes stays free to import this module later.1 parent f3f4e68 commit 1981cd8
6 files changed
Lines changed: 431 additions & 375 deletions
File tree
- changelog
- src/_pytest
- testing
- python
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
84 | 84 | | |
85 | 85 | | |
86 | 86 | | |
87 | | - | |
| 87 | + | |
88 | 88 | | |
89 | 89 | | |
90 | 90 | | |
| |||
0 commit comments