From b5ac61657a74e2224f2534b7c3663b351bfe2506 Mon Sep 17 00:00:00 2001 From: Kyle Altendorf Date: Thu, 22 Feb 2018 13:48:59 -0500 Subject: [PATCH] Correct docs to config.pluginmanager.get_plugin() `getplugin()` is deprecated in favor of `get_plugin()`. https://github.com/pytest-dev/pytest/blob/dd97c940359079fd874795a731d54d1abb7d4c8e/_pytest/config.py#L261 --- doc/en/writing_plugins.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/doc/en/writing_plugins.rst b/doc/en/writing_plugins.rst index f5a8ea41e..d88bb8f15 100644 --- a/doc/en/writing_plugins.rst +++ b/doc/en/writing_plugins.rst @@ -278,7 +278,7 @@ the plugin manager like this: .. sourcecode:: python - plugin = config.pluginmanager.getplugin("name_of_plugin") + plugin = config.pluginmanager.get_plugin("name_of_plugin") If you want to look at the names of existing plugins, use the ``--trace-config`` option.