Skip to content

Commit

Permalink
Use message to filter pyximport / setuptools DeprecationWarning.
Browse files Browse the repository at this point in the history
  • Loading branch information
hodgestar committed Aug 18, 2022
1 parent f31f123 commit 5333982
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -71,11 +71,15 @@ jobs:
# a warning on Python 3.10
# Ignore DeprecationWarnings raised by cvxpy importing scipy.sparse.X
# under SciPy 1.8.0+.
# Ignore DeprecationWarnings raised by versions of
# setuptools >= 65.0.0 during pyximport imports This can be removed
# once https://github.com/cython/cython/issues/4985
# is fixed and released.
- case-name: Python 3.10
os: ubuntu-latest
python-version: "3.10"
condaforge: 1
pytest-extra-options: "-W ignore::ImportWarning -W ignore::DeprecationWarning:cvxpy.interface.scipy_wrapper"
pytest-extra-options: "-W ignore::ImportWarning -W ignore::DeprecationWarning:cvxpy.interface.scipy_wrapper -W ignore:Absolute:DeprecationWarning"

# Windows. Once all tests pass without special options needed, this
# can be moved to the main os list in the test matrix. All the tests
Expand Down

0 comments on commit 5333982

Please sign in to comment.