From d667259e3133574c2b7f7461d4781b79440e433d Mon Sep 17 00:00:00 2001 From: Raphael Pierzina Date: Wed, 4 Nov 2015 23:45:29 +0100 Subject: [PATCH] Change pytest ignore invocation as suggested by @nicoddemus --- doc/en/example/pythoncollection.rst | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/doc/en/example/pythoncollection.rst b/doc/en/example/pythoncollection.rst index c4ae3a780..a95b5b624 100644 --- a/doc/en/example/pythoncollection.rst +++ b/doc/en/example/pythoncollection.rst @@ -23,9 +23,9 @@ by passing the ``--ignore=path`` option on the cli. ``pytest`` allows multiple ├── test_world_02.py └── test_world_03.py -Now invoke ``pytest`` with ``--ignore`` to ignore a particular directory and a module as follows:: +Now if you invoke ``pytest`` with ``--ignore=tests/foobar/test_foobar_03.py --ignore=tests/hello/``, +you will see that ``pytest`` only collects test-modules, which do not match the patterns specified:: - $ py.test tests --ignore=tests/foobar/test_foobar_03.py --ignore=tests/hello/ ========= test session starts ========== platform darwin -- Python 2.7.10, pytest-2.8.2, py-1.4.30, pluggy-0.3.1 rootdir: $REGENDOC_TMPDIR, inifile: