title: Python/tox, start a process before tests, shut it down when done
body: <p>I'm using <a href="http://tox.testrun.org/" rel="noreferrer">Tox</a> to check that the system I'm developing is behaving well when installed in a fresh environment (+ sanity checking the <code>setup.py</code> file). However, the system uses a <code>memcached</code> server, and ideally I'd like to spawn a new one for every <code>Tox</code> run.</p>
  
  <p>Is there a preferred way to start programs before tests are run (and shut them down afterwards) or will I need to write a custom runner?</p>
  
  <p><strong>Edit:</strong> The test runner is <code>py.test</code></p>