<div dir="ltr"><div class="gmail_quote"><div dir="ltr">Hi Eric,<br><div class="gmail_extra"><br></div><div class="gmail_extra">Sorry if you receive this twice.<br></div><div class="gmail_extra"><br><div class="gmail_quote"><span class="">On 24 November 2016 at 18:49, Eric Firing <span dir="ltr"><<a href="mailto:efiring.ocean@gmail.com" target="_blank">efiring.ocean@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">Does anyone know why:<br>
<br>
1) In our Travis suite, the USE_PYTEST run takes much longer than the others.<br>
<br></blockquote><div><br></div></span><div>Nelle has answered this one already.<br></div><span class=""><div> </div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
2) On master (approximately), when I try to run a single function with py.test, it isn't found. Example:<br>
<br>
py.test lib/matplotlib/tests/test_axes<wbr>.py::test_hist_steplog<br>
==============================<wbr>================= test session starts ==============================<wbr>==================<br>
platform darwin -- Python 3.5.1, pytest-2.8.5, py-1.4.31, pluggy-0.3.1<br>
rootdir: /Users/efiring/work/programs/p<wbr>y/mpl/matplotlib, inifile: pytest.ini<br>
collecting 530 items<br>
==============================<wbr>============= no tests ran in 0.39 seconds ==============================<wbr>=============<br>
ERROR: not found: /Users/efiring/work/programs/p<wbr>y/mpl/matplotlib/lib/matplotli<wbr>b/tests/test_axes.py::test_his<wbr>t_steplog<br>
(no name '/Users/efiring/work/programs/<wbr>py/mpl/matplotlib/lib/matplotl<wbr>ib/tests/test_axes.py::test_hi<wbr>st_steplog' in any of [<Module 'lib/matplotlib/tests/test_axe<wbr>s.py'>])<br>
<br></blockquote><div><br></div></span><div>This works for me; I think you need to update your version of pytest:<br><br>py.test lib/matplotlib/tests/test_<wbr>axes.py::test_hist_steplog<br>============================= test session starts =============================<br>platform linux -- Python 3.5.2, pytest-3.0.3, py-1.4.31, pluggy-0.4.0<br>rootdir: /home/elliott/code/matplotlib, inifile: pytest.ini<br>collected 505 items <br><br>lib/matplotlib/tests/test_<wbr>axes.py ...<br><br>========================== 3 passed in 3.78 seconds ===========================<br></div><div><br></div><div>Note, there are 3 tests because of the 3 extensions that are checked by the image_comparison decorator.<br></div><span class=""><div> </div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
3) Also on master, I get errors with tests.py. Example:<br>
<br>
python tests.py lib/matplotlib/tests/test_axes<wbr>.py<br>
<br>
[snip]<br>
<br><br></blockquote><div><br></div></span><div>This will not work at the moment. tests.py continues to use nose, so it will not run pytest-based files. The list of files that only work with nose is very short right now. As soon as my other PR is merged, I will open a PR that should make this work again (there are conflicts).<span class="HOEnZb"><font color="#888888"><br></font></span></div></div><span class="HOEnZb"><font color="#888888"><br>-- <br><div class="m_5938607924281941787gmail_signature">Elliott</div>
</font></span></div></div>
</div><br><br clear="all"><br>-- <br><div class="gmail_signature" data-smartmail="gmail_signature">Elliott</div>
</div>