Skip to content

Commit ef086a3

Browse files
committed
Split wrappers and non-wrappers in test_load_initial_conftest_last_ordering
Seems better to test which one is which explicitly.
1 parent d63f521 commit ef086a3

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

testing/test_config.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1264,16 +1264,16 @@ def pytest_load_initial_conftests(self):
12641264
m = My()
12651265
pm.register(m)
12661266
hc = pm.hook.pytest_load_initial_conftests
1267-
values = hc._nonwrappers + hc._wrappers
1268-
expected = [
1267+
assert [x.function.__module__ for x in hc._nonwrappers] == [
12691268
"_pytest.config",
12701269
m.__module__,
12711270
"_pytest.legacypath",
12721271
"_pytest.pythonpath",
1272+
]
1273+
assert [x.function.__module__ for x in hc._wrappers] == [
12731274
"_pytest.capture",
12741275
"_pytest.warnings",
12751276
]
1276-
assert [x.function.__module__ for x in values] == expected
12771277

12781278

12791279
def test_get_plugin_specs_as_list() -> None:

0 commit comments

Comments
 (0)