On Mon, Apr 20, 2015 at 7:20 PM, <[email protected]> wrote:

> It seems that ``setup.py`` is collected, not protected by
> ``if __name__ == "__main__":`` and thus executes during collection
> as a side effect of importing it.
>
> You could add the protection which should suffice.
> You could also add "--ignore=setup.py" to to the pytest invocation
> (possibly also via the "addopts" config variable).
>

Thank you, Holger. I started using addopts, and it solved both the setup.py
error as well as the slow discovery of doctests.
_______________________________________________
pytest-dev mailing list
[email protected]
https://mail.python.org/mailman/listinfo/pytest-dev

Reply via email to