Skip to content

Commit 62940dd

Browse files
authored
Merge pull request #657 from scipp/unused-warning-filters
Remove unused pytest warning filters
2 parents 56ad209 + e07a42f commit 62940dd

File tree

2 files changed

+2
-20
lines changed

2 files changed

+2
-20
lines changed

pyproject.toml

Lines changed: 0 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -79,31 +79,11 @@ testpaths = "tests"
7979
filterwarnings = [
8080
"error",
8181
'ignore:You are running a "Debug" build of scipp:',
82-
# Comes from pytest_asyncio and is not our fault.
83-
"ignore:The 'asyncio_mode' default value will change to 'strict' in future:DeprecationWarning",
84-
'ignore::scipy.optimize._optimize.OptimizeWarning',
85-
# From flatbuffers
86-
'ignore:the imp module is deprecated in favour of importlib:DeprecationWarning',
87-
# from Mantid
88-
'ignore:the load_module\(\) method is deprecated:DeprecationWarning',
89-
# from ipywidgets; they are migrating away from ipykernel, this warning should go away
90-
'ignore:The `ipykernel.comm.Comm` class has been deprecated.:DeprecationWarning',
91-
# from h5py
92-
'ignore:`product` is deprecated as of NumPy 1.25.0:DeprecationWarning',
9382
# Plotting related warnings.
9483
'ignore:\n Sentinel is not a public part of the traitlets API:DeprecationWarning',
95-
'ignore:Keyword `trait` is deprecated in traitlets 5.0, use `value_trait` instead:DeprecationWarning',
96-
'ignore:Keyword `traits` is deprecated in traitlets 5.0, use `per_key_traits` instead:DeprecationWarning',
9784
# TODO Plotting warnings that need to be addressed
98-
'ignore:Support for mapping types has been deprecated and will be dropped in a future release:DeprecationWarning',
99-
'ignore:The get_cmap function will be deprecated in a future version:PendingDeprecationWarning',
10085
'ignore:Jupyter is migrating its paths to use standard platformdirs:DeprecationWarning',
101-
'ignore:Widget._active_widgets is deprecated:DeprecationWarning',
102-
'ignore:Widget._widget_types is deprecated:DeprecationWarning',
103-
'ignore:Widget.widget_types is deprecated:DeprecationWarning',
104-
'ignore:Widget.widgets is deprecated:DeprecationWarning',
10586
'ignore:Passing unrecognized arguments to super:DeprecationWarning',
106-
'ignore:zmq.eventloop.ioloop is deprecated in pyzmq 17. pyzmq now works with default tornado and asyncio eventloops.:DeprecationWarning',
10787
]
10888

10989
[tool.ruff]

tests/peaks/fit_peaks_test.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -150,6 +150,8 @@ def test_fit_peaks_select_model_two_strings():
150150
# Warning about ill-conditioned polynomial.
151151
# This does not matter for the test.
152152
@pytest.mark.filterwarnings('ignore::numpy.polynomial.polyutils.RankWarning')
153+
# 'Covariance of the parameters could not be estimated'
154+
@pytest.mark.filterwarnings('ignore::scipy.optimize._optimize.OptimizeWarning')
153155
def test_fit_peaks_select_model_mixed():
154156
# The data doesn't really matter here.
155157
# The test is about ensuring that the fit succeeds without raising.

0 commit comments

Comments
 (0)