Hi Stefan, On Monday 31 July 2006 03:51, Stefan van der Walt wrote: > On Fri, Jul 28, 2006 at 02:33:17PM -0400, Darren Dale wrote: > > I dont know if this is related or not, but I just did an update from the > > trunk ('1.0b2.dev2918') and discovered the following error: > > > > ====================================================================== > > FAIL: Ticket #99 > > ---------------------------------------------------------------------- > > Traceback (most recent call last): > > > > File > > "/usr/lib64/python2.4/site-packages/numpy/core/tests/test_regression.py", > > line 182, in check_intp > > self.failUnlessRaises(OverflowError,N.intp,'0xb72a7008',16) > > AssertionError: OverflowError not raised > > Are you running on a 64 bit machine?
Yes, I am. > I'll fix the test (which was written on a 32 bit machine), I just updated from svn; test_regression looks good. Unfortunately, I need to report a new error: ====================================================================== ERROR: check_singleton (numpy.lib.tests.test_getlimits.test_longdouble) ---------------------------------------------------------------------- Traceback (most recent call last): File "/usr/lib64/python2.4/site-packages/numpy/lib/tests/test_getlimits.py", line 33, in check_singleton ftype = finfo(longdouble) File "/usr/lib64/python2.4/site-packages/numpy/lib/getlimits.py", line 49, in __new__ obj = object.__new__(cls)._init(dtype) File "/usr/lib64/python2.4/site-packages/numpy/lib/getlimits.py", line 75, in _init 'numpy %s precision floating point number' % precname) File "/usr/lib64/python2.4/site-packages/numpy/lib/machar.py", line 210, in __init__ raise RuntimeError RuntimeError ---------------------------------------------------------------------- > but I also noticed some strange > behaviour: > > In [11]: N.intp('0xfffffffffffffff',16) > Out[11]: 1152921504606846975 > > In [12]: N.intp('0xffffffffffffffff',16) > --------------------------------------------------------------------------- > exceptions.TypeError Traceback (most recent > call last) > > /home/stefan/<ipython console> > > TypeError: function takes exactly 1 argument (2 given) Here's what I get: numpy.intp('0xffffffffffffffff',16) --------------------------------------------------------------------------- exceptions.OverflowError Traceback (most recent call last) /home/darren/<ipython console> OverflowError: long int too large to convert to int Darren ------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys -- and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV _______________________________________________ Numpy-discussion mailing list Numpy-discussion@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/numpy-discussion