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

Update test discovery for pytest 6 #440

Merged
merged 3 commits into from
Jan 26, 2021
Merged

Conversation

llimeht
Copy link
Contributor

@llimeht llimeht commented Jan 9, 2021

The 'args' keyword for the pytest.Function.from_parent constructor was removed with pytest 6.0.0rc1. It was unused in pytest and in the sasmodels code args was always an empty tuple.

This PR removes the use of args which permits pytest versions from (at least) 3.10.1 to 6.0.2 to work (tested with Debian stable and unstable) plus CI on github actions.

This PR also removes the unnecessary limitation of only testing the master branch in CI, meaning that developers can actually verify that CI passes before creating PRs not after.

Closes: #424

The 'args' keyword for the pytest.Function.from_parent constructor was removed
with pytest 6. It was unused in pytest [1] and was always an empty tuple in
the sasmodels code.

[1] pytest-dev/pytest#7226
Allowing CI to run on all branches means that CI runs *before* the PR is made
rather than afterwards.
@wpotrzebowski wpotrzebowski self-requested a review January 19, 2021 14:40
@wpotrzebowski
Copy link

sasmodels ready for testing on OSX

1 similar comment
@wpotrzebowski
Copy link

sasmodels ready for testing on OSX

@wpotrzebowski wpotrzebowski merged commit 6e64162 into SasView:master Jan 26, 2021
@llimeht llimeht deleted the tmp/pytest6 branch March 21, 2021 02:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

support pytest version 6
2 participants