Hi again :)<br><br>A common problem I have is that I have a test that is parametrized with py.test.mark.parametrize, I discover a bug, I want to add another test case for that bug and mark it as xfail.<br><br>I have done something based on <a href="http://stackoverflow.com/questions/12364801/how-to-mark-some-generated-tests-as-xfail-skip">http://stackoverflow.com/questions/12364801/how-to-mark-some-generated-tests-as-xfail-skip</a>  for pytest_generate type functions, but it is awkward to do without disrupting the existing cases, and 
somewhat overkill in cases where the xfail is likely to be resolved (the
 bug is fixed) soon.<br><br>With py.test.mark.parametrize, I notice <a href="https://bitbucket.org/hpk42/pytest/issue/124/allow-individual-parametrized-values-to-be">https://bitbucket.org/hpk42/pytest/issue/124/allow-individual-parametrized-values-to-be</a><br clear="all">
<br>I was just thinking about this now and I wonder if it is possible to build a decorator like this?<br><br>@py.test.mark.parametrizexfail('duration', 'expectedBrackets'), [<br>    (7, [None, None, None, 7]),<br>
    (19, [None, 7, 6, 6]),<br>])<br>@py.test.mark.parametrize(('duration', 'expectedBrackets'), [<br>    (24, [6, 6, 6, 6]),<br>    (23, [6, 6, 6, 6]), <br>    (25, [6, 6, 6, 6]), <br>])<br><br>So 5 cases would be fed into the test, with only the first two marked as xfail.<br>
<br><br>Also while I'm at it, it could be good for pytest to issue a warning if someone uses a mark called parameterize, parametrise or parameterise, because I've been caught pondering why a mark wasn't working properly at least once :)<br>
<br>cheers<br>Brianna<br><br><br><br>-- <br>They've just been waiting in a mountain for the right moment: <a href="http://modernthings.org/">http://modernthings.org/</a>