You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
a detailed description of the bug or problem you are having
When using --disable-plugin-autoload, some plugins, eg pytest-recording, are not picked unless the parameter to -p is the entry point, not the module name.
However, this fails silently -- using the module name doesn't cause any warnings from pytest.
In particular, this can be detected by checking if pytest accepts the command line flags defined by these plugins -- with -p pytest_recording, --block_network isn't accepted, but with -p recording it is.
output of pip list from the virtual environment you are using
a detailed description of the bug or problem you are having
When using
--disable-plugin-autoload, some plugins, egpytest-recording, are not picked unless the parameter to-pis the entry point, not the module name.However, this fails silently -- using the module name doesn't cause any warnings from
pytest.In particular, this can be detected by checking if
pytestaccepts the command line flags defined by these plugins -- with-p pytest_recording,--block_networkisn't accepted, but with-p recordingit is.output of
pip listfrom the virtual environment you are usingpytest and operating system versions:
pytest-9.0.2, Arch Linuxminimal example if possible
With
`pytest -p pytest_recording`
``` $ pytest --disable-plugin-autoload -p pytest_recording --trace-config PLUGIN registered: <_pytest.config.PytestPluginManager object at 0x7f5230ca6660> PLUGIN registered: <_pytest.config.Config object at 0x7f52309101a0> PLUGIN registered: PLUGIN registered: PLUGIN registered: PLUGIN registered: PLUGIN registered: PLUGIN registered: PLUGIN registered: PLUGIN registered: PLUGIN registered: PLUGIN registered: PLUGIN registered: PLUGIN registered: PLUGIN registered: PLUGIN registered: PLUGIN registered: PLUGIN registered: PLUGIN registered: PLUGIN registered: PLUGIN registered: PLUGIN registered: PLUGIN registered: PLUGIN registered: PLUGIN registered: PLUGIN registered: PLUGIN registered: PLUGIN registered: PLUGIN registered: PLUGIN registered: PLUGIN registered: PLUGIN registered: PLUGIN registered: PLUGIN registered: > err=> in_=> _state='suspended' _in_suspended=False> _capture_fixture=None> PLUGIN registered: testsfailed=0 testscollected=0> PLUGIN registered: <_pytest.cacheprovider.LFPlugin object at 0x7f5230978ec0> PLUGIN registered: <_pytest.cacheprovider.NFPlugin object at 0x7f5230979940> PLUGIN registered: PLUGIN registered: <_pytest.terminal.TerminalReporter object at 0x7f522fd6c1a0> PLUGIN registered: <_pytest.logging.LoggingPlugin object at 0x7f522fd6c590> PLUGIN registered: <_pytest.fixtures.FixtureManager object at 0x7f522fd6cec0> =============================================================================================== test session starts ================================================================================================ platform linux -- Python 3.14.2, pytest-9.0.2, pluggy-1.6.0 using: pytest-9.0.2 active plugins: 139990982616672 : <_pytest.config.PytestPluginManager object at 0x7f5230ca6660> pytestconfig : <_pytest.config.Config object at 0x7f52309101a0> mark : /tmp/venv/lib/python3.14/site-packages/_pytest/mark/__init__.py main : /tmp/venv/lib/python3.14/site-packages/_pytest/main.py runner : /tmp/venv/lib/python3.14/site-packages/_pytest/runner.py fixtures : /tmp/venv/lib/python3.14/site-packages/_pytest/fixtures.py helpconfig : /tmp/venv/lib/python3.14/site-packages/_pytest/helpconfig.py python : /tmp/venv/lib/python3.14/site-packages/_pytest/python.py terminal : /tmp/venv/lib/python3.14/site-packages/_pytest/terminal.py debugging : /tmp/venv/lib/python3.14/site-packages/_pytest/debugging.py unittest : /tmp/venv/lib/python3.14/site-packages/_pytest/unittest.py capture : /tmp/venv/lib/python3.14/site-packages/_pytest/capture.py skipping : /tmp/venv/lib/python3.14/site-packages/_pytest/skipping.py legacypath : /tmp/venv/lib/python3.14/site-packages/_pytest/legacypath.py tmpdir : /tmp/venv/lib/python3.14/site-packages/_pytest/tmpdir.py monkeypatch : /tmp/venv/lib/python3.14/site-packages/_pytest/monkeypatch.py recwarn : /tmp/venv/lib/python3.14/site-packages/_pytest/recwarn.py pastebin : /tmp/venv/lib/python3.14/site-packages/_pytest/pastebin.py assertion : /tmp/venv/lib/python3.14/site-packages/_pytest/assertion/__init__.py junitxml : /tmp/venv/lib/python3.14/site-packages/_pytest/junitxml.py doctest : /tmp/venv/lib/python3.14/site-packages/_pytest/doctest.py cacheprovider : /tmp/venv/lib/python3.14/site-packages/_pytest/cacheprovider.py setuponly : /tmp/venv/lib/python3.14/site-packages/_pytest/setuponly.py setupplan : /tmp/venv/lib/python3.14/site-packages/_pytest/setupplan.py stepwise : /tmp/venv/lib/python3.14/site-packages/_pytest/stepwise.py unraisableexception : /tmp/venv/lib/python3.14/site-packages/_pytest/unraisableexception.py threadexception : /tmp/venv/lib/python3.14/site-packages/_pytest/threadexception.py warnings : /tmp/venv/lib/python3.14/site-packages/_pytest/warnings.py logging : /tmp/venv/lib/python3.14/site-packages/_pytest/logging.py reports : /tmp/venv/lib/python3.14/site-packages/_pytest/reports.py faulthandler : /tmp/venv/lib/python3.14/site-packages/_pytest/faulthandler.py subtests : /tmp/venv/lib/python3.14/site-packages/_pytest/subtests.py pytest_recording : /tmp/venv/lib/python3.14/site-packages/pytest_recording/__init__.py capturemanager : > err=> in_=> _state='suspended' _in_suspended=False> _capture_fixture=None> session : testsfailed=0 testscollected=0> lfplugin : <_pytest.cacheprovider.LFPlugin object at 0x7f5230978ec0> nfplugin : <_pytest.cacheprovider.NFPlugin object at 0x7f5230979940> legacypath-tmpdir : terminalreporter : <_pytest.terminal.TerminalReporter object at 0x7f522fd6c1a0> logging-plugin : <_pytest.logging.LoggingPlugin object at 0x7f522fd6c590> funcmanage : <_pytest.fixtures.FixtureManager object at 0x7f522fd6cec0> rootdir: /tmp ````pytest -p recording`
``` $ pytest --disable-plugin-autoload -p recording --block-network --trace-config PLUGIN registered: <_pytest.config.PytestPluginManager object at 0x7f5230ca6660> PLUGIN registered: <_pytest.config.Config object at 0x7f52309101a0> PLUGIN registered: PLUGIN registered: PLUGIN registered: PLUGIN registered: PLUGIN registered: PLUGIN registered: PLUGIN registered: PLUGIN registered: PLUGIN registered: PLUGIN registered: PLUGIN registered: PLUGIN registered: PLUGIN registered: PLUGIN registered: PLUGIN registered: PLUGIN registered: PLUGIN registered: PLUGIN registered: PLUGIN registered: PLUGIN registered: PLUGIN registered: PLUGIN registered: PLUGIN registered: PLUGIN registered: PLUGIN registered: PLUGIN registered: PLUGIN registered: PLUGIN registered: PLUGIN registered: PLUGIN registered: PLUGIN registered: PLUGIN registered: > err=> in_=> _state='suspended' _in_suspended=False> _capture_fixture=None> PLUGIN registered: testsfailed=0 testscollected=0> PLUGIN registered: <_pytest.cacheprovider.LFPlugin object at 0x7f5230978ec0> PLUGIN registered: <_pytest.cacheprovider.NFPlugin object at 0x7f5230979940> PLUGIN registered: PLUGIN registered: <_pytest.terminal.TerminalReporter object at 0x7f522fd6c1a0> PLUGIN registered: <_pytest.logging.LoggingPlugin object at 0x7f522fd6c590> PLUGIN registered: <_pytest.fixtures.FixtureManager object at 0x7f522fd6cec0> =============================================================================================== test session starts ================================================================================================ platform linux -- Python 3.14.2, pytest-9.0.2, pluggy-1.6.0 using: pytest-9.0.2 active plugins: 139990982616672 : <_pytest.config.PytestPluginManager object at 0x7f5230ca6660> pytestconfig : <_pytest.config.Config object at 0x7f52309101a0> mark : /tmp/venv/lib/python3.14/site-packages/_pytest/mark/__init__.py main : /tmp/venv/lib/python3.14/site-packages/_pytest/main.py runner : /tmp/venv/lib/python3.14/site-packages/_pytest/runner.py fixtures : /tmp/venv/lib/python3.14/site-packages/_pytest/fixtures.py helpconfig : /tmp/venv/lib/python3.14/site-packages/_pytest/helpconfig.py python : /tmp/venv/lib/python3.14/site-packages/_pytest/python.py terminal : /tmp/venv/lib/python3.14/site-packages/_pytest/terminal.py debugging : /tmp/venv/lib/python3.14/site-packages/_pytest/debugging.py unittest : /tmp/venv/lib/python3.14/site-packages/_pytest/unittest.py capture : /tmp/venv/lib/python3.14/site-packages/_pytest/capture.py skipping : /tmp/venv/lib/python3.14/site-packages/_pytest/skipping.py legacypath : /tmp/venv/lib/python3.14/site-packages/_pytest/legacypath.py tmpdir : /tmp/venv/lib/python3.14/site-packages/_pytest/tmpdir.py monkeypatch : /tmp/venv/lib/python3.14/site-packages/_pytest/monkeypatch.py recwarn : /tmp/venv/lib/python3.14/site-packages/_pytest/recwarn.py pastebin : /tmp/venv/lib/python3.14/site-packages/_pytest/pastebin.py assertion : /tmp/venv/lib/python3.14/site-packages/_pytest/assertion/__init__.py junitxml : /tmp/venv/lib/python3.14/site-packages/_pytest/junitxml.py doctest : /tmp/venv/lib/python3.14/site-packages/_pytest/doctest.py cacheprovider : /tmp/venv/lib/python3.14/site-packages/_pytest/cacheprovider.py setuponly : /tmp/venv/lib/python3.14/site-packages/_pytest/setuponly.py setupplan : /tmp/venv/lib/python3.14/site-packages/_pytest/setupplan.py stepwise : /tmp/venv/lib/python3.14/site-packages/_pytest/stepwise.py unraisableexception : /tmp/venv/lib/python3.14/site-packages/_pytest/unraisableexception.py threadexception : /tmp/venv/lib/python3.14/site-packages/_pytest/threadexception.py warnings : /tmp/venv/lib/python3.14/site-packages/_pytest/warnings.py logging : /tmp/venv/lib/python3.14/site-packages/_pytest/logging.py reports : /tmp/venv/lib/python3.14/site-packages/_pytest/reports.py faulthandler : /tmp/venv/lib/python3.14/site-packages/_pytest/faulthandler.py subtests : /tmp/venv/lib/python3.14/site-packages/_pytest/subtests.py pytest_recording : /tmp/venv/lib/python3.14/site-packages/pytest_recording/__init__.py capturemanager : > err=> in_=> _state='suspended' _in_suspended=False> _capture_fixture=None> session : testsfailed=0 testscollected=0> lfplugin : <_pytest.cacheprovider.LFPlugin object at 0x7f5230978ec0> nfplugin : <_pytest.cacheprovider.NFPlugin object at 0x7f5230979940> legacypath-tmpdir : terminalreporter : <_pytest.terminal.TerminalReporter object at 0x7f522fd6c1a0> logging-plugin : <_pytest.logging.LoggingPlugin object at 0x7f522fd6c590> funcmanage : <_pytest.fixtures.FixtureManager object at 0x7f522fd6cec0> rootdir: /tmp ```