From 232390ce5e93930ca42146b0cf40d24873f3b0b8 Mon Sep 17 00:00:00 2001 From: Cosimo Lupo Date: Mon, 10 Apr 2017 11:08:36 +0100 Subject: [PATCH] [setup.cfg] always use --pyargs option with pytest to re-enable doctests discovery The --pyargs option makes pytest try interpreting arguments as importable python package names, or if that fails treat them as normal filesystem paths. Now running `pytest` command will automatically run all the tests in "Tests" folder, as well as the embedded doctests in the installed "fontTools" package. This is in reply to a comment by Behdad in https://github.com/fonttools/fonttools/commit/fdbf066a8c41c904cdc290ead89ede765dff0582 --- setup.cfg | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/setup.cfg b/setup.cfg index d9459c1cb..8e81e2705 100644 --- a/setup.cfg +++ b/setup.cfg @@ -40,6 +40,7 @@ license_file = LICENSE minversion = 3.0 testpaths = Tests + fontTools python_files = *_test.py python_classes = @@ -49,4 +50,4 @@ addopts = -r a --doctest-modules --doctest-ignore-import-errors - + --pyargs