On 20 July 2016 at 21:50, holger krekel <[email protected]> wrote: > On Wed, Jul 20, 2016 at 16:15 +0000, Bruno Oliveira wrote: >> Hi Ronny, >> >> AFAIK there’s no simple way to workaround it, correct? For example, I >> believe there might be code out there using pytest.config as a conditional >> in a pytest.mark.skipif decorator. In this case the change is not a simple >> find/replace. > > You can use string-evaluation to get access to pytest's config: > > @pytest.mark.skipif("config.option.something == 'none'") > ...
I'm probably with Bruno on this, seems like we might break too many test suites. As I don't like the string version very much I was wondering if this could take a callable instead of a bool value or a string to evaluate. It could then optionally request "config" like other hooks work. _______________________________________________ pytest-dev mailing list [email protected] https://mail.python.org/mailman/listinfo/pytest-dev
