From 118045abf007e26853c4f6af898a6c3e5f541e43 Mon Sep 17 00:00:00 2001 From: Cosimo Lupo Date: Sat, 6 Feb 2016 20:59:00 +0000 Subject: [PATCH] [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`. --- tox.ini | 3 +++ 1 file changed, 3 insertions(+) diff --git a/tox.ini b/tox.ini index f977b8e2b..a4d0dd64e 100644 --- a/tox.ini +++ b/tox.ini @@ -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