diff options
| author | Matteo Raso <mraso@uoguelph.ca> | 2022-08-25 23:09:46 -0400 |
|---|---|---|
| committer | Matteo Raso <mraso@uoguelph.ca> | 2022-08-25 23:09:46 -0400 |
| commit | 1647f467a7fcb000ffeff0f2fd4b30f23a32d882 (patch) | |
| tree | 2795bba990ded4affde724d72ffbc42c033e1e48 /numpy/array_api | |
| parent | 50a74fb65fc752e77a2f9e9e2b7227629c2ba953 (diff) | |
| download | numpy-1647f467a7fcb000ffeff0f2fd4b30f23a32d882.tar.gz | |
TST: Implemented an unused test for np.random.randint
In numpy/random/tests/test_random.py, a class called TestSingleEltArrayInput had a method called test_randint that was commented out, with the instructions to uncomment it once np.random.randint was able to broadcast arguments. Since np.random.randint has been able to broadcast arguments for a while now, I uncommented the test. The only modification I made to the code was fixing a small error, where the author incorrectly tried to call "assert_equal" as a method of the TestSingleEltArrayInput instead of a function that was imported from numpy.testing. I ran runtests.py, and the new test passed.
Diffstat (limited to 'numpy/array_api')
0 files changed, 0 insertions, 0 deletions
