1 https://github.com/pytest-dev/pytest/pull/12616
3 --- pytest-8.3.3/src/_pytest/config/__init__.py.orig
4 +++ pytest-8.3.3/src/_pytest/config/__init__.py
7 plugins = _get_plugin_specs_as_list(spec)
8 for import_spec in plugins:
9 - self.import_plugin(import_spec)
10 + self.import_plugin(import_spec, consider_entry_points=True)
12 def import_plugin(self, modname: str, consider_entry_points: bool = False) -> None:
13 """Import a plugin with ``modname``.
14 --- pytest-8.3.3/testing/test_assertion.py.orig
15 +++ pytest-8.3.3/testing/test_assertion.py
17 self, pytester: Pytester, mode, monkeypatch
19 monkeypatch.delenv("PYTEST_DISABLE_PLUGIN_AUTOLOAD", raising=False)
20 + monkeypatch.delenv("PYTEST_PLUGINS", raising=False)
21 # Make sure the hook is installed early enough so that plugins
22 # installed via distribution package are rewritten.
23 pytester.mkdir("hampkg")
24 --- pytest-8.3.3/testing/test_config.py.orig
25 +++ pytest-8.3.3/testing/test_config.py
28 monkeypatch.setattr(importlib.metadata, "distributions", my_dists)
29 monkeypatch.delenv("PYTEST_DISABLE_PLUGIN_AUTOLOAD", raising=False)
30 + monkeypatch.delenv("PYTEST_PLUGINS", raising=False)
32 pytester.makeini(ini_file_text)
36 """Integration test for broken distributions with 'files' metadata being None (#5389)"""
37 monkeypatch.delenv("PYTEST_DISABLE_PLUGIN_AUTOLOAD", raising=False)
38 + monkeypatch.delenv("PYTEST_PLUGINS", raising=False)
40 class DummyEntryPoint:
43 pytester: Pytester, monkeypatch: MonkeyPatch, block_it: bool
45 monkeypatch.delenv("PYTEST_DISABLE_PLUGIN_AUTOLOAD", raising=False)
46 + monkeypatch.delenv("PYTEST_PLUGINS", raising=False)
48 plugin_module_placeholder = object()
51 return (Distribution(),)
53 monkeypatch.setenv("PYTEST_DISABLE_PLUGIN_AUTOLOAD", "1")
54 + monkeypatch.delenv("PYTEST_PLUGINS", raising=False)
55 monkeypatch.setattr(importlib.metadata, "distributions", distributions)
56 monkeypatch.setitem(sys.modules, "mytestplugin", PseudoPlugin())
57 config = pytester.parseconfig(*parse_args)
58 --- pytest-8.3.3/testing/test_helpconfig.py.orig
59 +++ pytest-8.3.3/testing/test_helpconfig.py
64 -def test_empty_help_param(pytester: Pytester) -> None:
65 +def test_empty_help_param(pytester: Pytester, monkeypatch) -> None:
66 """Test that an empty help param is displayed correctly."""
67 pytester.makeconftest(
70 parser.addini("test_ini", "", default=True, type="bool")
73 + monkeypatch.delenv("PYTEST_PLUGINS", raising=False)
74 result = pytester.runpytest("--help")
75 assert result.ret == 0