[Numpy-tickets] [NumPy] #893: Numpy incompatible with python -OO
NumPy
numpy-tickets@scipy....
Thu Aug 28 17:16:00 CDT 2008
#893: Numpy incompatible with python -OO
----------------------+-----------------------------------------------------
Reporter: cscott | Owner: pierregm
Type: defect | Status: new
Priority: normal | Milestone: 1.2.0
Component: numpy.ma | Version: none
Severity: normal | Resolution:
Keywords: |
----------------------+-----------------------------------------------------
Comment (by charris):
OK the problem is with assert:
{{{
$[charris@f9 ~]$ python -OO
Python 2.5.1 (r251:54863, Jun 15 2008, 18:24:51)
[GCC 4.3.0 20080428 (Red Hat 4.3.0-8)] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> assert 1 == 0, "bummer"
>>>
$[charris@f9 ~]$ python
Python 2.5.1 (r251:54863, Jun 15 2008, 18:24:51)
[GCC 4.3.0 20080428 (Red Hat 4.3.0-8)] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> assert 1 == 0, "bummer"
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
AssertionError: bummer
>>>
}}}
Which probably creates a problem for failUnlessRaises. That function looks
to be in TestCase.
--
Ticket URL: <http://scipy.org/scipy/numpy/ticket/893#comment:12>
NumPy <http://projects.scipy.org/scipy/numpy>
The fundamental package needed for scientific computing with Python.
More information about the Numpy-tickets
mailing list