Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

-p no:plugin not working #2920

Closed
rpuntaie opened this Issue Nov 13, 2017 · 3 comments

Comments

Projects
None yet
4 participants
@rpuntaie
Copy link

rpuntaie commented Nov 13, 2017

OS: Windows 10
Python 3.6
Py.test 3.2.3

From the sources of pytest:

       group._addoption('-p', action="append", dest="plugins", default=[],
                 metavar="name",
                 help="early-load given plugin (multi-allowed). "
                 "To avoid loading of plugins, use the `no:` prefix, e.g. "
                 "`no:doctest`.")

My conftest.py is

      pytest_plugins = "integration"

But

      py.test test.py -p no:integration

does still include integration, which is in the same folder.

If I remove conftest.py, then integration is not included.
I would like to keep conftest.py and still by able to NOT include integration via command line.

Do I do something wrong or is this a bug?

@RonnyPfannschmidt

This comment has been minimized.

Copy link
Member

RonnyPfannschmidt commented Nov 13, 2017

off hand this seems to be an issue with early initialization, unfortunately i wont be able to investigate soon

rpuntaie pushed a commit to rpuntaie/pytest that referenced this issue Nov 28, 2017

rpuntaie pushed a commit to rpuntaie/pytest that referenced this issue Nov 28, 2017

rpuntaie pushed a commit to rpuntaie/pytest that referenced this issue Nov 28, 2017

The-Compiler added a commit that referenced this issue Nov 29, 2017

@Sup3rGeo

This comment has been minimized.

Copy link
Contributor

Sup3rGeo commented Jan 24, 2019

Should this be closed as solved by #2964?

@nicoddemus

This comment has been minimized.

Copy link
Member

nicoddemus commented Jan 24, 2019

Yes, thanks @Sup3rGeo!

@nicoddemus nicoddemus closed this Jan 24, 2019

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.