title: Can I run line_profiler over a pytest test?
body: <p>I have identified some long running pytest tests with </p>
  
  <pre><code>py.test --durations=10
  </code></pre>
  
  <p>I would like to instrument one of those tests now with something like line_profiler or cprofile.  I really want to get the profile data from the test itself as the pytest setup or tear down could well be part of what is slow.  </p>
  
  <p>However given how line_profiler or cprofile is typically involved it isn't clear to me how to make them work with pytest.</p>