Commit b03896b
deprecate: add PytestRemovedIn10Warning for baseid/nodeid string parameters
Add deprecation warnings for using string-based fixture scoping:
- FixtureDef baseid parameter: use node parameter instead
- _register_fixture nodeid parameter: use node parameter instead
- parsefactories nodeid string: use holder/node API instead
The warnings only trigger when a non-empty nodeid string is passed
without a node. Global plugins (nodeid=None) and synthetic fixtures
(baseid='') do not trigger warnings.
These will be removed in pytest 10, completing the migration to
node-based fixture scoping.
Co-authored-by: Cursor AI <ai@cursor.sh>
Co-authored-by: Anthropic Claude Opus 4 <claude@anthropic.com>1 parent 4b82e95 commit b03896b
1 file changed
Lines changed: 28 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
67 | 67 | | |
68 | 68 | | |
69 | 69 | | |
| 70 | + | |
70 | 71 | | |
71 | 72 | | |
72 | 73 | | |
| |||
975 | 976 | | |
976 | 977 | | |
977 | 978 | | |
| 979 | + | |
| 980 | + | |
| 981 | + | |
| 982 | + | |
| 983 | + | |
| 984 | + | |
| 985 | + | |
| 986 | + | |
| 987 | + | |
978 | 988 | | |
979 | 989 | | |
980 | 990 | | |
| |||
1799 | 1809 | | |
1800 | 1810 | | |
1801 | 1811 | | |
1802 | | - | |
| 1812 | + | |
1803 | 1813 | | |
1804 | 1814 | | |
1805 | 1815 | | |
| |||
1814 | 1824 | | |
1815 | 1825 | | |
1816 | 1826 | | |
| 1827 | + | |
| 1828 | + | |
| 1829 | + | |
| 1830 | + | |
| 1831 | + | |
| 1832 | + | |
| 1833 | + | |
| 1834 | + | |
| 1835 | + | |
1817 | 1836 | | |
1818 | 1837 | | |
1819 | 1838 | | |
| |||
1901 | 1920 | | |
1902 | 1921 | | |
1903 | 1922 | | |
| 1923 | + | |
| 1924 | + | |
| 1925 | + | |
| 1926 | + | |
| 1927 | + | |
| 1928 | + | |
| 1929 | + | |
| 1930 | + | |
1904 | 1931 | | |
1905 | 1932 | | |
1906 | 1933 | | |
| |||
0 commit comments