Skip to content

Commit dc9b44b

Browse files
authored
Add compatibility with pytest >= 7.3.0 (soxoj#1117)
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.
1 parent b72e9b6 commit dc9b44b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tests/conftest.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919

2020

2121
def by_slow_marker(item):
22-
return item.get_closest_marker('slow', default=empty_mark)
22+
return item.get_closest_marker('slow', default=empty_mark).name
2323

2424

2525
def pytest_collection_modifyitems(items):

0 commit comments

Comments
 (0)