[NumPy-Tickets] [NumPy] #1639: FAIL: test_complex_scalar_warning (test_regression.TestRegression)
NumPy Trac
numpy-tickets@scipy....
Sat Oct 16 05:25:48 CDT 2010
#1639: FAIL: test_complex_scalar_warning (test_regression.TestRegression)
-----------------------+----------------------------------------------------
Reporter: sienkiew | Owner: pv
Type: defect | Status: closed
Priority: normal | Milestone: 1.5.1
Component: Other | Version: 1.5.0
Resolution: fixed | Keywords:
-----------------------+----------------------------------------------------
Changes (by pv):
* status: new => closed
* resolution: => fixed
Comment:
commit:d24db3430, commit:0e792e6
The last argument to WarnEx controls which stack level the warning is
raised from. I think also 0 is valid (= current stack level), but here it
results to something inside the warnings module -- so the warning is
visited at the same location least once before simplefilter("error", ...)
and is not raised. Something is different in Python 2.6, but it seems
WarnEx(...., 1) is the correct thing to do.
--
Ticket URL: <http://projects.scipy.org/numpy/ticket/1639#comment:2>
NumPy <http://projects.scipy.org/numpy>
My example project
More information about the NumPy-Tickets
mailing list