Skip to content

Commit

Permalink
test: modify test_delayed name in conftest
Browse files Browse the repository at this point in the history
  • Loading branch information
vschaffn committed Feb 25, 2025
1 parent 0ab0add commit 6091983
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions tests/conftest.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
"""Configuration of pytest."""

from pytest import DoctestItem
from _pytest.doctest import DoctestItem


# To order test modules logically during execution
Expand All @@ -20,8 +20,8 @@ def pytest_collection_modifyitems(items): # type: ignore
module_names = list(module_mapping.values())
module_items = list(module_mapping.keys())

module_items_reordered = [it for k, it in enumerate(module_items) if module_names[k] != "test_delayed"] + [
it for k, it in enumerate(module_items) if module_names[k] == "test_delayed"
module_items_reordered = [it for k, it in enumerate(module_items) if module_names[k] != "test_delayed_dask"] + [
it for k, it in enumerate(module_items) if module_names[k] == "test_delayed_dask"
]

# And write back items in that order, with doctests first
Expand Down

0 comments on commit 6091983

Please sign in to comment.