<html><body><div style="color:#000; background-color:#fff; font-family:times new roman, new york, times, serif;font-size:12pt"><div><span style="font-family: 'Courier New', courier, monaco, monospace, sans-serif; font-size: 10px;">Hi,&nbsp;<br><br>I'm trying to introduce pytest and coverage to our project, but I'm puzzled by the amount of data collected by coverage that I didn't ask for.&nbsp;<br>What can I do to stop coverage from visiting /usr/local? Any suggestions/advice? Thanks.<br><br>More details:<br><br>(1) the simple test script is directly copied out of this page: <a target="_blank" href="http://pytest.org/latest/getting-started.html#getstarted">http://pytest.org/latest/getting-started.html#getstarted</a><br><br>~/lab/proj$ cat test_sample.py<br>def func(x):<br>&nbsp; &nbsp; return x + 1<br><br>def test_answer():<br>&nbsp; &nbsp; assert func(3) == 5<br><br>(2) If I run py.test by hand, the test finished in less than a half a
 second:<br><br>~/lab/proj$ which py.test<br>/usr/local/bin/py.test<br><br>~/lab/proj$ py.test test_sample.py<br>============================= test session starts ==============================<br>platform linux2 -- Python 2.7.3 -- pytest-2.3.5<br>plugins: cov<br>collected 1 items<br><br>test_sample.py F<br><br>=================================== FAILURES ===================================<br>_________________________________ test_answer __________________________________<br><br>&nbsp; &nbsp; def test_answer():<br>&gt; &nbsp; &nbsp; &nbsp; assert func(3) == 5<br>E &nbsp; &nbsp; &nbsp; assert 4 == 5<br>E &nbsp; &nbsp; &nbsp; &nbsp;+ &nbsp;where 4 = func(3)<br><br>test_sample.py:5: AssertionError<br>=========================== 1 failed in 0.46 seconds ===========================<br><br>(3) However, if i run the same test under the control of 'coverage', then it takes a lot more time than I expect<br><br>~/lab/proj$ which
 coverage<br>/usr/local/bin/coverage<br><br>~/lab/proj$ coverage erase<br><br>~/lab/proj$ coverage run /usr/local/bin/py.test test_sample.py<br>============================= test session starts ==============================<br>platform linux2 -- Python 2.7.3 -- pytest-2.3.5<br>plugins: cov<br>collected 1 items<br><br>test_sample.py F<br><br>=================================== FAILURES ===================================<br>_________________________________ test_answer __________________________________<br><br>&nbsp; &nbsp; def test_answer():<br>&gt; &nbsp; &nbsp; &nbsp; assert func(3) == 5<br>E &nbsp; &nbsp; &nbsp; assert 4 == 5<br>E &nbsp; &nbsp; &nbsp; &nbsp;+ &nbsp;where 4 = func(3)<br><br>test_sample.py:5: AssertionError<br>=========================== 1 failed in 2.96 seconds ===========================<br><br><br>(4) And I noticed that a huge .coverage file was created<br><br>~/lab/proj$ la -l .coverage<br>-rw-r--r-- 1 pi pi 16083 May 24 18:29
 .coverage<br><br>(5) And indeed, there's all sorts of data collecte from /usr/local. How can I stop coverage from going there?<br><br>~/lab/proj$ coverage report<br>Name &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Stmts &nbsp; Miss &nbsp;Cover<br>------------------------------------------------------------------------------------------------------------------<br>/usr/local/bin/py &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;4 &nbsp; &nbsp; &nbsp;0
 &nbsp; 100%<br>/usr/local/lib/python2.7/dist-packages/py-1.4.14-py2.7.egg/py/__init__ &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 5 &nbsp; &nbsp; &nbsp;0 &nbsp; 100%<br>/usr/local/lib/python2.7/dist-packages/py-1.4.14-py2.7.egg/py/_apipkg &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;131 &nbsp; &nbsp; 34 &nbsp; &nbsp;74%<br>/usr/local/lib/python2.7/dist-packages/py-1.4.14-py2.7.egg/py/_builtin &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 188 &nbsp; &nbsp;140 &nbsp; &nbsp;26%<br>/usr/local/lib/python2.7/dist-packages/py-1.4.14-py2.7.egg/py/_code/__init__ &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 0 &nbsp; &nbsp; &nbsp;0 &nbsp; 100%<br>/usr/local/lib/python2.7/dist-packages/py-1.4.14-py2.7.egg/py/_code/code &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;
 &nbsp; &nbsp; &nbsp; 518 &nbsp; &nbsp;172 &nbsp; &nbsp;67%<br>/usr/local/lib/python2.7/dist-packages/py-1.4.14-py2.7.egg/py/_code/source &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 294 &nbsp; &nbsp;155 &nbsp; &nbsp;47%<br>/usr/local/lib/python2.7/dist-packages/py-1.4.14-py2.7.egg/py/_error &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;50 &nbsp; &nbsp; 11 &nbsp; &nbsp;78%<br>/usr/local/lib/python2.7/dist-packages/py-1.4.14-py2.7.egg/py/_io/__init__ &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 0 &nbsp; &nbsp; &nbsp;0 &nbsp; 100%<br>/usr/local/lib/python2.7/dist-packages/py-1.4.14-py2.7.egg/py/_io/capture &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;264 &nbsp; &nbsp;114 &nbsp; &nbsp;57%<br>/usr/local/lib/python2.7/dist-packages/py-1.4.14-py2.7.egg/py/_io/saferepr &nbsp; &nbsp; &nbsp; &nbsp;
 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;35 &nbsp; &nbsp; 16 &nbsp; &nbsp;54%<br>/usr/local/lib/python2.7/dist-packages/py-1.4.14-py2.7.egg/py/_io/terminalwriter &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 215 &nbsp; &nbsp;149 &nbsp; &nbsp;31%<br>/usr/local/lib/python2.7/dist-packages/py-1.4.14-py2.7.egg/py/_path/__init__ &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 0 &nbsp; &nbsp; &nbsp;0 &nbsp; 100%<br>/usr/local/lib/python2.7/dist-packages/py-1.4.14-py2.7.egg/py/_path/common &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 232 &nbsp; &nbsp;113 &nbsp; &nbsp;51%<br>/usr/local/lib/python2.7/dist-packages/py-1.4.14-py2.7.egg/py/_path/local &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;558 &nbsp; &nbsp;356 &nbsp; &nbsp;36%<br>/usr/local/lib/python2.7/dist-packages/py-1.4.14-py2.7.egg/py/_std &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;
 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;11 &nbsp; &nbsp; &nbsp;5 &nbsp; &nbsp;55%<br>/usr/local/lib/python2.7/dist-packages/py-1.4.14-py2.7.egg/py/_xmlgen &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;168 &nbsp; &nbsp;114 &nbsp; &nbsp;32%<br>/usr/local/lib/python2.7/dist-packages/pytest-2.3.5-py2.7.egg/_pytest/__init__ &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 1 &nbsp; &nbsp; &nbsp;0 &nbsp; 100%<br>/usr/local/lib/python2.7/dist-packages/pytest-2.3.5-py2.7.egg/_pytest/assertion/__init__ &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;78 &nbsp; &nbsp; 15 &nbsp; &nbsp;81%<br>/usr/local/lib/python2.7/dist-packages/pytest-2.3.5-py2.7.egg/_pytest/assertion/newinterpret &nbsp; &nbsp; 244 &nbsp; &nbsp;171 &nbsp; &nbsp;30%<br>/usr/local/lib/python2.7/dist-packages/pytest-2.3.5-py2.7.egg/_pytest/assertion/oldinterpret &nbsp; &nbsp; 402 &nbsp; &nbsp;327 &nbsp;
 &nbsp;19%<br>/usr/local/lib/python2.7/dist-packages/pytest-2.3.5-py2.7.egg/_pytest/assertion/reinterpret &nbsp; &nbsp; &nbsp; 36 &nbsp; &nbsp; 12 &nbsp; &nbsp;67%<br>/usr/local/lib/python2.7/dist-packages/pytest-2.3.5-py2.7.egg/_pytest/assertion/rewrite &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;436 &nbsp; &nbsp;302 &nbsp; &nbsp;31%<br>/usr/local/lib/python2.7/dist-packages/pytest-2.3.5-py2.7.egg/_pytest/assertion/util &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 172 &nbsp; &nbsp;114 &nbsp; &nbsp;34%<br>/usr/local/lib/python2.7/dist-packages/pytest-2.3.5-py2.7.egg/_pytest/capture &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;163 &nbsp; &nbsp; 52 &nbsp; &nbsp;68%<br>/usr/local/lib/python2.7/dist-packages/pytest-2.3.5-py2.7.egg/_pytest/config &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 355 &nbsp; &nbsp;120 &nbsp; &nbsp;66%<br>/usr/local/lib/python2.7/dist-packages/pytest-2.3.5-py2.7.egg/_pytest/core &nbsp; &nbsp;
 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 387 &nbsp; &nbsp;106 &nbsp; &nbsp;73%<br>/usr/local/lib/python2.7/dist-packages/pytest-2.3.5-py2.7.egg/_pytest/doctest &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 75 &nbsp; &nbsp; 54 &nbsp; &nbsp;28%<br>/usr/local/lib/python2.7/dist-packages/pytest-2.3.5-py2.7.egg/_pytest/genscript &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 51 &nbsp; &nbsp; 38 &nbsp; &nbsp;25%<br>/usr/local/lib/python2.7/dist-packages/pytest-2.3.5-py2.7.egg/_pytest/helpconfig &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 138 &nbsp; &nbsp; 79 &nbsp; &nbsp;43%<br>/usr/local/lib/python2.7/dist-packages/pytest-2.3.5-py2.7.egg/_pytest/hookspec &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;57 &nbsp; &nbsp; &nbsp;0 &nbsp; 100%<br>/usr/local/lib/python2.7/dist-packages/pytest-2.3.5-py2.7.egg/_pytest/junitxml &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;
 &nbsp; &nbsp; &nbsp; 142 &nbsp; &nbsp; 92 &nbsp; &nbsp;35%<br>/usr/local/lib/python2.7/dist-packages/pytest-2.3.5-py2.7.egg/_pytest/main &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 463 &nbsp; &nbsp;131 &nbsp; &nbsp;72%<br>/usr/local/lib/python2.7/dist-packages/pytest-2.3.5-py2.7.egg/_pytest/mark &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 131 &nbsp; &nbsp; 72 &nbsp; &nbsp;45%<br>/usr/local/lib/python2.7/dist-packages/pytest-2.3.5-py2.7.egg/_pytest/monkeypatch &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 71 &nbsp; &nbsp; 40 &nbsp; &nbsp;44%<br>/usr/local/lib/python2.7/dist-packages/pytest-2.3.5-py2.7.egg/_pytest/nose &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;37 &nbsp; &nbsp; 12 &nbsp; &nbsp;68%<br>/usr/local/lib/python2.7/dist-packages/pytest-2.3.5-py2.7.egg/_pytest/pastebin &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;
 &nbsp;56 &nbsp; &nbsp; 38 &nbsp; &nbsp;32%<br>/usr/local/lib/python2.7/dist-packages/pytest-2.3.5-py2.7.egg/_pytest/pdb &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 73 &nbsp; &nbsp; 44 &nbsp; &nbsp;40%<br>/usr/local/lib/python2.7/dist-packages/pytest-2.3.5-py2.7.egg/_pytest/python &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;1163 &nbsp; &nbsp;631 &nbsp; &nbsp;46%<br>/usr/local/lib/python2.7/dist-packages/pytest-2.3.5-py2.7.egg/_pytest/recwarn &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 65 &nbsp; &nbsp; 52 &nbsp; &nbsp;20%<br>/usr/local/lib/python2.7/dist-packages/pytest-2.3.5-py2.7.egg/_pytest/resultlog &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 80 &nbsp; &nbsp; 62 &nbsp; &nbsp;23%<br>/usr/local/lib/python2.7/dist-packages/pytest-2.3.5-py2.7.egg/_pytest/runner &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 289 &nbsp;
 &nbsp;101 &nbsp; &nbsp;65%<br>/usr/local/lib/python2.7/dist-packages/pytest-2.3.5-py2.7.egg/_pytest/skipping &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 197 &nbsp; &nbsp;134 &nbsp; &nbsp;32%<br>/usr/local/lib/python2.7/dist-packages/pytest-2.3.5-py2.7.egg/_pytest/terminal &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 382 &nbsp; &nbsp;171 &nbsp; &nbsp;55%<br>/usr/local/lib/python2.7/dist-packages/pytest-2.3.5-py2.7.egg/_pytest/tmpdir &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;42 &nbsp; &nbsp; 24 &nbsp; &nbsp;43%<br>/usr/local/lib/python2.7/dist-packages/pytest-2.3.5-py2.7.egg/_pytest/unittest &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 147 &nbsp; &nbsp;115 &nbsp; &nbsp;22%<br>/usr/local/lib/python2.7/dist-packages/pytest-2.3.5-py2.7.egg/pytest &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 8 &nbsp; &nbsp;
 &nbsp;2 &nbsp; &nbsp;75%<br>/usr/local/lib/python2.7/dist-packages/pytest_cov-1.6-py2.7.egg/pytest_cov &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;44 &nbsp; &nbsp; 27 &nbsp; &nbsp;39%<br>/usr/local/lib/python2.7/dist-packages/setuptools-0.6c11-py2.7.egg/pkg_resources &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;1247 &nbsp; &nbsp;996 &nbsp; &nbsp;20%<br>test_sample &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;4 &nbsp; &nbsp; &nbsp;0 &nbsp; 100%<br>------------------------------------------------------------------------------------------------------------------<br>TOTAL &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;
 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 9909 &nbsp; 5513 &nbsp; &nbsp;44%<br></span><br></div><div style="background-color: transparent;"><span style="font-family: 'Courier New', courier, monaco, monospace, sans-serif; font-size: 10px;">(5) Finally, I did try the -omit switch, however, it still took a long time.&nbsp;</span></div><div style="background-color: transparent;"><span style="font-family: 'Courier New', courier, monaco, monospace, sans-serif; font-size: 10px;">It feels like that coverage went to /usr/local anyway, collected the data and then threw it away.</span></div><div style="background-color: transparent;"><span style="font-family: 'Courier New', courier, monaco, monospace, sans-serif; font-size: 10px;">I don't have hard evidence that it did
 that. I tried to use pdb to step into coverage</span></div><div style="background-color: transparent;"><span style="font-family: 'Courier New', courier, monaco, monospace, sans-serif; font-size: 10px;">but failed to see exactly what it was doing.</span></div><div style="background-color: transparent;"><span style="font-family: 'Courier New', courier, monaco, monospace, sans-serif; font-size: 10px;"><br></span></div><div style="background-color: transparent;"><span style="font-family: 'Courier New', courier, monaco, monospace, sans-serif; font-size: 10px;">~/lab/proj$ coverage run --omit=/usr/local/* /usr/local/bin/py.test test_sample.py</span></div><div style="background-color: transparent;"><span style="font-family: 'Courier New', courier, monaco, monospace, sans-serif; font-size: 10px;">============================= test session starts ==============================</span></div><div style="background-color: transparent;"><span style="font-family:
 'Courier New', courier, monaco, monospace, sans-serif; font-size: 10px;">platform linux2 -- Python 2.7.3 -- pytest-2.3.5</span></div><div style="background-color: transparent;"><span style="font-family: 'Courier New', courier, monaco, monospace, sans-serif; font-size: 10px;">plugins: cov</span></div><div style="background-color: transparent;"><span style="font-family: 'Courier New', courier, monaco, monospace, sans-serif; font-size: 10px;">collected 1 items</span></div><div style="background-color: transparent;"><span style="font-family: 'Courier New', courier, monaco, monospace, sans-serif; font-size: 10px;"><br></span></div><div style="background-color: transparent;"><span style="font-family: 'Courier New', courier, monaco, monospace, sans-serif; font-size: 10px;">test_sample.py F</span></div><div style="background-color: transparent;"><span style="font-family: 'Courier New', courier, monaco, monospace, sans-serif; font-size:
 10px;"><br></span></div><div style="background-color: transparent;"><span style="font-family: 'Courier New', courier, monaco, monospace, sans-serif; font-size: 10px;">=================================== FAILURES ===================================</span></div><div style="background-color: transparent;"><span style="font-family: 'Courier New', courier, monaco, monospace, sans-serif; font-size: 10px;">_________________________________ test_answer __________________________________</span></div><div style="background-color: transparent;"><span style="font-family: 'Courier New', courier, monaco, monospace, sans-serif; font-size: 10px;"><br></span></div><div style="background-color: transparent;"><span style="font-family: 'Courier New', courier, monaco, monospace, sans-serif; font-size: 10px;">&nbsp; &nbsp; def test_answer():</span></div><div style="background-color: transparent;"><span style="font-family: 'Courier New', courier, monaco, monospace,
 sans-serif; font-size: 10px;">&gt; &nbsp; &nbsp; &nbsp; assert func(3) == 5</span></div><div style="background-color: transparent;"><span style="font-family: 'Courier New', courier, monaco, monospace, sans-serif; font-size: 10px;">E &nbsp; &nbsp; &nbsp; assert 4 == 5</span></div><div style="background-color: transparent;"><span style="font-family: 'Courier New', courier, monaco, monospace, sans-serif; font-size: 10px;">E &nbsp; &nbsp; &nbsp; &nbsp;+ &nbsp;where 4 = func(3)</span></div><div style="background-color: transparent;"><span style="font-family: 'Courier New', courier, monaco, monospace, sans-serif; font-size: 10px;"><br></span></div><div style="background-color: transparent;"><span style="font-family: 'Courier New', courier, monaco, monospace, sans-serif; font-size: 10px;">test_sample.py:5: AssertionError</span></div><div style="background-color: transparent;"><span style="font-family: 'Courier New', courier, monaco, monospace, sans-serif;
 font-size: 10px;">=========================== 1 failed in 2.91 seconds ===========================</span></div><div style="background-color: transparent;"><span style="font-family: 'Courier New', courier, monaco, monospace, sans-serif; font-size: 10px;"></span></div><div style="background-color: transparent;"><span style="font-family: 'Courier New', courier, monaco, monospace, sans-serif; font-size: 10px;">~/lab/proj$&nbsp;</span></div></div></body></html>