[tox.ini] tell pytest to only collect tests from *_test.py modules; set pytest 'minversion' to 2.8

the glob pattern will restricts the search only for pytest's kind of tests; it has no effect on methods of unittest.TestCase derived class, since pytest still uses unittest's own collection framework to collect those.

The 'minversion' is required to support some of the latest advanced features.
The current py.test is 2.8.7. You can update it with `pip install --upgrade pytest`.
This commit is contained in:
Cosimo Lupo 2016-02-06 20:59:00 +00:00
parent 568b4e9129
commit 118045abf0

View File

@ -9,8 +9,11 @@ commands =
py.test
[pytest]
minversion = 2.8
testpaths =
Lib/fontTools
python_files =
*_test.py
addopts =
# run py.test in verbose mode
-v