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
Closed

-p no:plugin not working #2920

rpuntaie opened this issue Nov 13, 2017 · 3 comments

Comments

@rpuntaie
Copy link

@rpuntaie 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
Copy link
Member

@RonnyPfannschmidt 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
fix issue #2920
@Sup3rGeo
Copy link
Member

@Sup3rGeo Sup3rGeo commented Jan 24, 2019

Should this be closed as solved by #2964?

@nicoddemus
Copy link
Member

@nicoddemus 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
Projects
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
4 participants