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

Remove deprecated pytest.config usages #2988

Merged
merged 2 commits into from
May 25, 2019

Conversation

max-sixty
Copy link
Collaborator

@max-sixty max-sixty commented May 24, 2019

  • Tests added
  • Fully documented, including whats-new.rst for all changes and api.rst for new API

I need to confirm whether this works with an installed version of xarray, because of pytest-dev/pytest#1596.
If pytest doesn't pick up this config, it will run all tests, because the default is to not skip.

I know I've generally been the point person for pytest - let me know if anyone has an immediate solution for this though

@max-sixty
Copy link
Collaborator Author

After some testing, this doesn't change behavior. As before, it mostly works:

  • Running pytest --pyargs xarray to test against an installed version doesn't allow passing command line options such as --run-flaky (either with the existing or proposed version)
  • With the proposed version you can pass -m flaky, because these are now marks

@shoyer
Copy link
Member

shoyer commented May 25, 2019

This looks fine to me. I don't think it's important to retain the same command for running flakey tests.

@max-sixty
Copy link
Collaborator Author

OK great; I'll merge

We don't test-the-tests so anyone who encounters any problems: post here and I'll prioritize

@max-sixty max-sixty merged commit 7edf2e2 into pydata:master May 25, 2019
dcherian added a commit to dcherian/xarray that referenced this pull request May 29, 2019
* upstream/master:
  cfgrib is now part of conda-forge (pydata#2992)
  Add fill_value for concat and auto_combine (pydata#2964)
  Remove deprecated pytest.config usages (pydata#2988)
  Add transpose_coords option to DataArray.transpose (pydata#2556)
  Fix rolling.constuct() example (pydata#2967)
  Implement load_dataset() and load_dataarray() (pydata#2917)
@max-sixty max-sixty deleted the pytest-deprecation branch June 14, 2019 23:06
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.

2 participants