Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Don't use accidental pytest API, fix tests for pytest 6.2+ #76

Open
wants to merge 1 commit into
base: develop
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions tests/test_ordering.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,9 @@ def item_names_for(testdir):
def _item_names_for(tests_content):
# some strange code to extract sorted items
items = testdir.getitems(tests_content)
hook = testdir.config.hook
hook = items[0].config.hook
hook.pytest_collection_modifyitems(session=items[0].session,
config=testdir.config, items=items)
config=items[0].config, items=items)
return [item.name for item in items]

return _item_names_for
Expand Down