title: Pytest: Deselecting tests
body: <p>With pytest, one can mark tests using a decorator</p>
  
  <pre><code>@pytest.mark.slow
  def some_slow_test():
      pass
  </code></pre>
  
  <p>Then, from the command line, one can tell pytest to skip the tests marked "slow"</p>
  
  <pre><code>pytest -k-slow
  </code></pre>
  
  <p>If I have an additional tag:</p>
  
  <pre><code>@pytest.mark.long
  def some_long_test()
      pass
  </code></pre>
  
  <p>I would like to be able to skip both long AND slow tests.  I've tried this:</p>
  
  <pre><code>pytest -k-slow -k-long
  </code></pre>
  
  <p>and this:</p>
  
  <pre><code>pytest -k-slow,long
  </code></pre>
  
  <p>And neither seems to work.</p>
  
  <p>At the command line, how do I tell pytest to skip both the slow AND the long tests?</p>