[Matplotlib-devel] our tests

Nelle Varoquaux nelle.varoquaux at gmail.com
Sat Jan 28 13:32:14 EST 2017


>
> Does anyone know why:
>
> 1) In our Travis suite, the USE_PYTEST run takes much longer than the
> others.
>

That's an easy one: the tests that are run with pytest are not run with
nose.  Now that we've migrated most of the tests to pytests, the nose
environment almost doesn't run any tests anymore.


> 2) On master (approximately), when I try to run a single function with
> py.test, it isn't found.  Example:
>

I can't help you on that one, but I'd like to know as well.
I usually run all the tests in a single module.


>
> py.test lib/matplotlib/tests/test_axes.py::test_hist_steplog
> =============================================== test session starts
> ================================================
> platform darwin -- Python 3.5.1, pytest-2.8.5, py-1.4.31, pluggy-0.3.1
> rootdir: /Users/efiring/work/programs/py/mpl/matplotlib, inifile:
> pytest.ini
> collecting 530 items
> =========================================== no tests ran in 0.39 seconds
> ===========================================
> ERROR: not found: /Users/efiring/work/programs/p
> y/mpl/matplotlib/lib/matplotlib/tests/test_axes.py::test_hist_steplog
> (no name '/Users/efiring/work/programs/py/mpl/matplotlib/lib/matplotl
> ib/tests/test_axes.py::test_hist_steplog' in any of [<Module
> 'lib/matplotlib/tests/test_axes.py'>])
>
> 3) Also on master, I get errors with tests.py.  Example:
>
> python tests.py lib/matplotlib/tests/test_axes.py
>
> [snip]
>
> ======================================================================
> ERROR: matplotlib.tests.test_axes.test_errorbar_inputs_shotgun
> ----------------------------------------------------------------------
> Traceback (most recent call last):
>   File "/Users/efiring/anaconda/envs/test/lib/python3.5/site-packages/nose/case.py",
> line 198, in runTest
>     self.test(*self.arg)
>   File "/Users/efiring/work/programs/py/mpl/matplotlib/lib/matplotlib/testing/decorators.py",
> line 150, in wrapped_callable
>     func(*args, **kwargs)
> TypeError: test_errorbar_inputs_shotgun() missing 1 required positional
> argument: 'kwargs'
>
> ======================================================================
> ERROR: matplotlib.tests.test_axes.test_remove_shared_axes
> ----------------------------------------------------------------------
> Traceback (most recent call last):
>   File "/Users/efiring/anaconda/envs/test/lib/python3.5/site-packages/nose/case.py",
> line 198, in runTest
>     self.test(*self.arg)
>   File "/Users/efiring/work/programs/py/mpl/matplotlib/lib/matplotlib/testing/decorators.py",
> line 150, in wrapped_callable
>     func(*args, **kwargs)
> TypeError: test_remove_shared_axes() missing 2 required positional
> arguments: 'shared_axes_generator' and 'shared_axis_remover'
>
> ----------------------------------------------------------------------
> Ran 437 tests in 142.437s
>
> FAILED (SKIP=1, errors=2)
> Exception ignored in: <generator object TestLoader.loadTestsFromGenerator.<locals>.generate
> at 0x108f40ca8>
> RuntimeError: generator ignored GeneratorExit
>
> Eric
>
> _______________________________________________
> Matplotlib-devel mailing list
> Matplotlib-devel at python.org
> https://mail.python.org/mailman/listinfo/matplotlib-devel
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/matplotlib-devel/attachments/20170128/263854c4/attachment-0001.html>


More information about the Matplotlib-devel mailing list