Reintroduce get_plugin_manager() for backward-compatibility
PyCharm pytest runner depends on this function existing (see #787). Added reference to get_plugin_manager() and PluginManager/PytestPluginManager to docs
This commit is contained in:
@@ -564,6 +564,12 @@ class TestInvocationVariants:
|
||||
"*1 failed*",
|
||||
])
|
||||
|
||||
def test_core_backward_compatibility(self):
|
||||
"""Test backward compatibility for get_plugin_manager function. See #787."""
|
||||
import _pytest.config
|
||||
assert type(_pytest.config.get_plugin_manager()) is _pytest.config.PytestPluginManager
|
||||
|
||||
|
||||
class TestDurations:
|
||||
source = """
|
||||
import time
|
||||
|
||||
Reference in New Issue
Block a user