diff options
author | Simon Gibbons <simongibbons@gmail.com> | 2017-04-01 23:46:52 +0100 |
---|---|---|
committer | Simon Gibbons <simongibbons@gmail.com> | 2017-04-02 23:17:33 +0100 |
commit | 30ab8fc16883f111eba3c873eff32323eeb58747 (patch) | |
tree | efed7911b75acd20a62fd6ee3ba006f7cc5ba3e0 /numpy/doc/indexing.py | |
parent | 02e4a57d73d093db347e5afbeaf23153a86f4136 (diff) | |
download | numpy-30ab8fc16883f111eba3c873eff32323eeb58747.tar.gz |
BUG: Check for errors when PyInt_AsLong is called in np.random
After #8883 was merged it was noticed that the same problem was
occuring with calls to PyInt_AsLong. Namely that PyErr_Occoured
wasn't being checked if it returned -1 indicating an exception
could have been thrown.
This PR adds those checks as well as a regression test.
Diffstat (limited to 'numpy/doc/indexing.py')
0 files changed, 0 insertions, 0 deletions