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

Get rid of pytest.warns deprecation warning #380

Merged
merged 1 commit into from
Feb 1, 2023
Merged

Get rid of pytest.warns deprecation warning #380

merged 1 commit into from
Feb 1, 2023

Conversation

javierggt
Copy link
Contributor

@javierggt javierggt commented Jan 31, 2023

Description

In ska3-prime (python 3.10) we get the following warning in unit tests:

PytestRemovedIn8Warning: Passing None has been deprecated.

This PR gets rid of that warning by explicitly setting the type of warning expected.

Interface impacts

Testing

Unit tests

  • Mac

Independent check of unit tests by Jean

  • Mac

Functional tests

I checked that the warning went away with this PR using ska3-flight 2023.1rc4

(I'm still getting a numpy DeprecationWarning on ctypeslib, but at least this PR cleans up the one from our own code -Jean).

Copy link
Contributor

@jeanconn jeanconn left a comment

Choose a reason for hiding this comment

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

This seems fine to me.

@javierggt javierggt merged commit c0d97c3 into master Feb 1, 2023
@javierggt javierggt mentioned this pull request Mar 13, 2023
@javierggt javierggt mentioned this pull request May 17, 2023
@jeanconn jeanconn deleted the warnings branch August 13, 2023 17:56
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