File: drop-test-confidence-warnings.patch

package info (click to toggle)
lmfit-py 1.3.3-4
  • links: PTS, VCS
  • area: main
  • in suites: trixie
  • size: 2,332 kB
  • sloc: python: 13,071; makefile: 130; sh: 30
file content (23 lines) | stat: -rw-r--r-- 952 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
From: Matthew Newville <newville@cars.uchicago.edu>
Subject: do not test for warnings from upstream code that might change or be suppressed or altered
Origin: https://github.com/lmfit/lmfit-py/commit/f4c5a83f6259fc46ab76f5d75de2537ba9d72b0a

--- a/tests/test_confidence.py
+++ b/tests/test_confidence.py
@@ -191,16 +191,6 @@
         lmfit.conf_interval(minimizer, out_lsq)
 
 
-def test_confidence_warnings(data, pars):
-    """Make sure the proper warnings are emitted when needed."""
-    minimizer = lmfit.Minimizer(residual, pars, fcn_args=data)
-    out = minimizer.minimize(method='leastsq')
-
-    with pytest.warns(UserWarning) as record:
-        lmfit.conf_interval(minimizer, out, maxiter=1)
-        assert 'maxiter=1 reached and prob' in str(record[0].message)
-
-
 def test_confidence_with_trace(data, pars):
     """Test calculation of confidence intervals with trace."""
     minimizer = lmfit.Minimizer(residual, pars, fcn_args=data)