diff --git a/testing/test_config.py b/testing/test_config.py index 993d65a67..d88241368 100644 --- a/testing/test_config.py +++ b/testing/test_config.py @@ -839,7 +839,7 @@ def test_load_initial_conftest_last_ordering(_config_for_test): pm.register(m) hc = pm.hook.pytest_load_initial_conftests values = hc._nonwrappers + hc._wrappers - expected = ["_pytest.config", "test_config", "_pytest.capture"] + expected = ["_pytest.config", m.__module__, "_pytest.capture"] assert [x.function.__module__ for x in values] == expected