<html><body><div style="color:#000; background-color:#fff; font-family:verdana, helvetica, sans-serif;font-size:10pt"><pre>e.g.<br><br>from nose.plugins.attrib import attr<br><br>@attr('mysql')<br>def testme1():<br>    pass<br>@attr('mysql')<br>def testme2():<br>    pass<br><br>@attr('psql')<br>def testme3():<br>    pass<br><br>def testme4():<br>    pass<br><br>@attr('none')<br>def testme5():<br>    pass<br><br><br></pre><div>nosetests -a '!psql'</div>

<div>would run the tests with attrib('!mysql')
instead of not running 3 tests that match !mysql , run the other 2 tests which have attrib @attr('mysql') with attrib('psql')</div><pre><br></pre></div></body></html>