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
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

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