Skip to content

Appease a few test warnings #1645

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

Merged
merged 3 commits into from
Jan 24, 2023
Merged

Conversation

kandersolar
Copy link
Member

  • Pull request is nearly complete and ready for detailed review.
  • Maintainer: Appropriate GitHub Labels (including remote-data) and Milestone are assigned to the Pull Request and linked Issue.

This PR gets rid of a few warnings emitted by our CI test jobs:

  • PytestReturnNotNoneWarning: Expected None, but pvlib/tests/test_atmosphere.py::test_kasten96_lt returned array([[[...]]]), which will be an error in a future version of pytest. Did you mean to use `assert` instead of `return`?`
  • test_solarposition.py:166: FutureWarning: iteritems is deprecated and will be removed in a future version. Use .items instead.
  • Node.js 12 actions are deprecated. Please update the following actions to use Node.js 16: codecov/codecov-action@v2. For more information see: https://github.blog/changelog/2022-09-22-github-actions-all-actions-will-begin-running-on-node16-instead-of-node12/.

@kandersolar kandersolar added this to the 0.9.5 milestone Jan 24, 2023
Copy link
Member

@AdamRJensen AdamRJensen left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM :)

@mikofski
Copy link
Member

Thanks @kanderso-nrel does it deserve a "what's new" note?

@kandersolar
Copy link
Member Author

I always ask myself "can I imagine a user reading an entry on this and being glad it was included in the "what's new" file?" and in this case I lean towards "no" and it would just be uninteresting clutter. Of course if anyone else thinks a note is warranted I will happily add one.

@mikofski mikofski merged commit 93a432f into pvlib:main Jan 24, 2023
@kandersolar kandersolar deleted the test-warning-cleanup branch January 24, 2023 22:34
@mikofski
Copy link
Member

@kanderso-nrel & @AdamRJensen did you see, looks like some CI tests are failing lately?

GH actions:

image

commit history:

image

I'm not sure what's going on? Something to worry about?

@kandersolar
Copy link
Member Author

Yep, see #1591 (comment)

@mikofski
Copy link
Member

It's only psm3 in the pytest-remote-data action action:
image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants