From 61b76c7f5ffd760d590d761cea763ba96fc626f6 Mon Sep 17 00:00:00 2001 From: Daniel Hahler Date: Wed, 29 May 2019 21:30:45 +0200 Subject: [PATCH] tests: conftest: fix collection of slow/slowest items --- testing/conftest.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/testing/conftest.py b/testing/conftest.py index a068550e8..4badf3016 100644 --- a/testing/conftest.py +++ b/testing/conftest.py @@ -27,9 +27,9 @@ def pytest_collection_modifyitems(config, items): if "testdir" in fixtures: if spawn_names.intersection(item.function.__code__.co_names): item.add_marker(pytest.mark.uses_pexpect) - slow_items.append(item) + slowest_items.append(item) else: - slowest_items.append(0) + slow_items.append(item) else: marker = item.get_closest_marker("slow") if marker: @@ -37,6 +37,6 @@ def pytest_collection_modifyitems(config, items): else: fast_items.append(item) - items[:] = fast_items + neutral_items + slow_items + items[:] = fast_items + neutral_items + slow_items + slowest_items yield