[pytest-dev] Issue mixing skipif and parametrize

Lele Gaifax lele at metapensiero.it
Mon Mar 13 20:47:55 EDT 2017

Bruno Oliveira <nicoddemus at gmail.com> writes:

> Hi Lele,
> I think a possible workaround is implementing your own
> ``pytest_generate_tests`` hook

Thank you Bruno, that's what I was looking for!

This is how I implemented it:


The only thing I couldn't figure out is how I can report back some kind of
"skipped" message, some kind of XFailed status without breaking off the
generation loop (see line 69)...

Thanks again,
ciao, lele.
nickname: Lele Gaifax | Quando vivrò di quello che ho pensato ieri
real: Emanuele Gaifas | comincerò ad aver paura di chi mi copia.
lele at metapensiero.it  |                 -- Fortunato Depero, 1929.

More information about the pytest-dev mailing list