From de3353aac14cf612dd563fe48b58503e9468de1e Mon Sep 17 00:00:00 2001 From: Daniel Hahler <git@thequod.de> Date: Fri, 14 Feb 2020 16:58:17 +0100 Subject: [PATCH] test_load_initial_conftest_last_ordering: handle testing package (#6706) --- testing/test_config.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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