<html dir="ltr">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<style type="text/css" id="owaParaStyle"></style><style type="text/css"></style><style type="text/css"></style>
</head>
<body fpstyle="1" ocsi="0">
<div style="direction: ltr;font-family: Tahoma;color: #000000;font-size: 10pt;">If you're having problems with pyc files you might want to look into this: &nbsp;<a href="http://docs.python.org/using/cmdline.html#envvar-PYTHONDONTWRITEBYTECODE">http://docs.python.org/using/cmdline.html#envvar-PYTHONDONTWRITEBYTECODE</a><br>
<div style="font-family: Times New Roman; color: #000000; font-size: 16px">
<hr tabindex="-1">
<div id="divRpF195550" style="direction: ltr; "><font face="Tahoma" size="2" color="#000000"><b>From:</b> testing-in-python-bounces@lists.idyll.org [testing-in-python-bounces@lists.idyll.org] on behalf of Laurens Van Houtven [_@lvh.cc]<br>
<b>Sent:</b> 14 October 2012 15:39<br>
<b>To:</b> Testing in Python<br>
<b>Subject:</b> [TIP] [tox] Stale pyc files causing false positive test successes<br>
</font><br>
</div>
<div></div>
<div>
<div>Hi guys,</div>
<div><br>
</div>
<div><br>
</div>
<div>I'm generally a pretty happy tox user, but recently I ran into something that appears to have generated a false positive. Apparently I misunderstand how tox works, because I figured this wouldn't be possible...<br>
<br>
Anyway, I removed a package (both the directory, the __init__.py and the module inside of it), re-ran the tests, and it worked fine. Later, when actually trying to run the code in the venv, it broke -- there was still something relying on importing that package
 but the tests didn't catch it.<br>
<br>
I honestly have no idea whatsoever how this happened. It's the first time I've seen this behavior, despite it not being the first package I pruned.<br>
<br>
I guess the way to fix this is by recreating the environment? That seems to have fixed the issue. I guess maybe in doing so I've also nuked any possibility of further diagnosing the problem; hopefully the above recollection is enough to ring a bell somewhere.<br>
</div>
<br clear="all">
&nbsp;<br>
cheers
<div>lvh</div>
<br>
</div>
</div>
</div>
</body>
</html>