deprecate hook configuration via marks/attributes#9118
Conversation
Noticed while reviewing pytest-dev/pytest#9118
nicoddemus
left a comment
There was a problem hiding this comment.
Thanks @RonnyPfannschmidt, this issue wasn't even in my radar. 😁
Left some comments, please take a look.
Noticed while reviewing pytest-dev/pytest#9118
Noticed while reviewing pytest-dev/pytest#9118
a445d0f to
430ac90
Compare
This comment has been minimized.
This comment has been minimized.
430ac90 to
985bd3e
Compare
bluetech
left a comment
There was a problem hiding this comment.
Left some comments on the docs/texts. I haven't reviewed the code, will try to later.
d2e9fd5 to
c53e07c
Compare
e7d30c9 to
df09799
Compare
df09799 to
34665e7
Compare
34665e7 to
825dae2
Compare
2dabd1b to
38f4561
Compare
3417054 to
ee7c8bf
Compare
ee7c8bf to
92bf2ee
Compare
22a9238 to
4052ce6
Compare
|
@nicoddemus i finally got around reiterating this, please have a look |
83ca2ce to
807e287
Compare
807e287 to
ae9dbf5
Compare
|
@nicoddemus as far as i can tell, the only blocker is pytest-dev/pytest-cov#549 |
The old way using marks is being deprecated in pytest 7.2: pytest-dev/pytest#9118
|
That has just been merged. 👍 |
|
I'm afraid the error messages this generates for hookimpls are almost unusable due to having way too little information where the culprit is: #10342 |
|
Quick analysis of the impact of this:
FWIW, I submitted PRs to the affected plugins I use: |
|
The impact is not surprising, this was intended to be deprecate back when the new decorators came up Instead the old way was cargo culted all the way till now |
fixes #4562
must be merged after #8508