sot / proseco

Probabilistic star evaluation and catalog optimization
https://sot.github.io/proseco
BSD 3-Clause "New" or "Revised" License
1 stars 0 forks source link

Get rid of pytest.warns deprecation warning #380

Closed javierggt closed 1 year ago

javierggt commented 1 year ago

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

Independent check of unit tests by Jean

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).