[Matplotlib-devel] our tests
Eric Firing
efiring.ocean at gmail.com
Thu Nov 24 19:12:23 EST 2016
Does anyone know why:
1) In our Travis suite, the USE_PYTEST run takes much longer than the
others.
2) On master (approximately), when I try to run a single function with
py.test, it isn't found. Example:
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/py/mpl/matplotlib/lib/matplotlib/tests/test_axes.py::test_hist_steplog
(no name
'/Users/efiring/work/programs/py/mpl/matplotlib/lib/matplotlib/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
More information about the Matplotlib-devel
mailing list