pytest running with another version of python
<p>I've installed <code>pyenv</code> and have different versions of python installed with it:</p>

<pre><code>$ pyenv versions
  system
  2.7.1
  3.2.5
  3.5.0
  3.5.1
* 3.5.2
</code></pre>

<p>I use the following command to switch to <code>python 3.5.2</code>:</p>

<blockquote>
  <p>pyenv shell 3.5.2</p>
</blockquote>

<p>And when I check the python version this is what I get:</p>

<pre><code>$ python --version
Python 3.5.2
</code></pre>

<p>But when I run <code>pytest</code>, it still runs under <code>python 2.7.6</code>:</p>

<blockquote>
  <p>pytest -v<br>
  ==================================================================== test session starts ====================================================================<br>
  platform linux2 -- Python 2.7.6, pytest-3.0.3, py-1.4.31, pluggy-0.4.0 -- /usr/bin/python</p>
</blockquote>

<p>Why is <code>pytest</code> running under the older version?</p>