From f4008042069b64111c4ad4ab047029a5e77f01ea Mon Sep 17 00:00:00 2001 From: Joshua Storck Date: Wed, 30 Oct 2019 16:25:50 -0400 Subject: [PATCH] Removing pluginmanager as parameter in definition of pytest_addoption hook --- doc/en/example/markers.rst | 2 +- doc/en/example/parametrize.rst | 2 +- doc/en/example/simple.rst | 4 ++-- doc/en/writing_plugins.rst | 2 +- 4 files changed, 5 insertions(+), 5 deletions(-) diff --git a/doc/en/example/markers.rst b/doc/en/example/markers.rst index 8f81ff4d2..ccddb1f66 100644 --- a/doc/en/example/markers.rst +++ b/doc/en/example/markers.rst @@ -364,7 +364,7 @@ specifies via named environments: import pytest - def pytest_addoption(parser, pluginmanager): + def pytest_addoption(parser): parser.addoption( "-E", action="store", diff --git a/doc/en/example/parametrize.rst b/doc/en/example/parametrize.rst index 6f3e8031b..1220cfb4d 100644 --- a/doc/en/example/parametrize.rst +++ b/doc/en/example/parametrize.rst @@ -36,7 +36,7 @@ Now we add a test configuration like this: # content of conftest.py - def pytest_addoption(parser, pluginmanager): + def pytest_addoption(parser): parser.addoption("--all", action="store_true", help="run all combinations") diff --git a/doc/en/example/simple.rst b/doc/en/example/simple.rst index 85000b46d..a7cd06d31 100644 --- a/doc/en/example/simple.rst +++ b/doc/en/example/simple.rst @@ -33,7 +33,7 @@ provide the ``cmdopt`` through a :ref:`fixture function `: import pytest - def pytest_addoption(parser, pluginmanager): + def pytest_addoption(parser): parser.addoption( "--cmdopt", action="store", default="type1", help="my option: type1 or type2" ) @@ -151,7 +151,7 @@ line option to control skipping of ``pytest.mark.slow`` marked tests: import pytest - def pytest_addoption(parser, pluginmanager): + def pytest_addoption(parser): parser.addoption( "--runslow", action="store_true", default=False, help="run slow tests" ) diff --git a/doc/en/writing_plugins.rst b/doc/en/writing_plugins.rst index 818974d0b..8660746bd 100644 --- a/doc/en/writing_plugins.rst +++ b/doc/en/writing_plugins.rst @@ -338,7 +338,7 @@ string value of ``Hello World!`` if we do not supply a value or ``Hello import pytest - def pytest_addoption(parser, pluginmanager): + def pytest_addoption(parser): group = parser.getgroup("helloworld") group.addoption( "--name",