test_load_initial_conftest_last_ordering: handle testing package (#6706)

This commit is contained in:
Daniel Hahler
2020-02-14 16:58:17 +01:00
committed by GitHub
parent ef73a56032
commit de3353aac1

View File

@@ -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