Skip to content

Commit

Permalink
Add compatibility with pytest >= 7.3.0 (#1117)
Browse files Browse the repository at this point in the history
Starting in this version, marks are no longer ordered. Sorting by their
names still sorts slow marks to the end of the list of tests.
  • Loading branch information
tjni authored Aug 24, 2023
1 parent b72e9b6 commit dc9b44b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tests/conftest.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@


def by_slow_marker(item):
return item.get_closest_marker('slow', default=empty_mark)
return item.get_closest_marker('slow', default=empty_mark).name


def pytest_collection_modifyitems(items):
Expand Down

0 comments on commit dc9b44b

Please sign in to comment.