
On both osx and Linux, I am seeing 3 swig tests failing out of the entire suite. These both call Array2.resize() with 2 (non-self) arguments. Note that the last two are in fact supposed to fail, but not because of a wrong number of arguments, as happens here: ====================================================================== ERROR: testResize0 (__main__.Array2TestCase) Test Array2 resize method, size ---------------------------------------------------------------------- Traceback (most recent call last): File "testArray.py", line 177, in testResize0 self.array2.resize(newRows, newCols) TypeError: resize() takes exactly 2 arguments (3 given) ====================================================================== ERROR: testResizeBad1 (__main__.Array2TestCase) Test Array2 resize method, negative nrows ---------------------------------------------------------------------- Traceback (most recent call last): File "testArray.py", line 188, in testResizeBad1 self.assertRaises(ValueError, self.array2.resize, -5, 5) File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/unittest/case.py", line 475, in assertRaises callableObj(*args, **kwargs) TypeError: resize() takes exactly 2 arguments (3 given) ====================================================================== ERROR: testResizeBad2 (__main__.Array2TestCase) Test Array2 resize method, negative ncols ---------------------------------------------------------------------- Traceback (most recent call last): File "testArray.py", line 192, in testResizeBad2 self.assertRaises(ValueError, self.array2.resize, 5, -5) File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/unittest/case.py", line 475, in assertRaises callableObj(*args, **kwargs) TypeError: resize() takes exactly 2 arguments (3 given) ------------------------------------------------------------------------------------------- This is with python 2.7.x, swig 3.0.10, and numpy 1.11.1 . I note that
import Array help(Array)
gives, for Array2.resize, only this signature: *resize*(self, nrows) Is this currently supposed to work, or have I done something clearly wrong?
participants (1)
-
Don Porges