[py-dev] Avoiding directories when running py.test

Maciej Fijalkowski fijall at gmail.com
Fri Dec 12 21:18:46 CET 2008


Put into this directory file named conftest.py which contains this:

import py

class Directory(py.test.collect.Directory):

    def run(self):
        return []

On Fri, Dec 12, 2008 at 6:20 PM, Philippe Fremy <phil at freehackers.org> wrote:
>
> Hi,
>
> I have a project where I am using py.test, that contains a copy of an
> external project.
>
> That external project has some test directories and files, which are not
> using py.test
>
> Is there a way I can tell py.test to avoid those directories ?
>
>        cheers,
>
>        Philippe
>
> _______________________________________________
> py-dev mailing list
> py-dev at codespeak.net
> http://codespeak.net/mailman/listinfo/py-dev
>



More information about the Pytest-dev mailing list