summaryrefslogtreecommitdiff
path: root/numpy/lib/tests/test_function_base.py
diff options
context:
space:
mode:
authorDavid Warde-Farley <wardefar@iro.umontreal.ca>2012-12-13 17:40:00 -0500
committerDavid Warde-Farley <wardefar@iro.umontreal.ca>2012-12-13 17:40:00 -0500
commit783130c6c81dc096b47a0f44ef62872ab81da9f8 (patch)
tree27c4cb9d4ebef16edae7b2360a7f994d818134ac /numpy/lib/tests/test_function_base.py
parente5fce7847d58faf6eeaf4efb591e99977698d927 (diff)
downloadnumpy-783130c6c81dc096b47a0f44ef62872ab81da9f8.tar.gz
BUG: Bubble errors from _tuple_of_integers.
Refactors _tuple_of_integers a little bit in order to propagate error state. Zero indicates failure of the test (given tuple is not a tuple of integers), whereas non-zero indicates either success (positive) or an exception during the warning (negative). This allows us to use (ret = _tuple_of_integers(...)) as an if condition, and then put the error handling inside the if body.
Diffstat (limited to 'numpy/lib/tests/test_function_base.py')
0 files changed, 0 insertions, 0 deletions