Skip to content

Commit

Permalink
added test case as mentioned in issue numba#8997
Browse files Browse the repository at this point in the history
  • Loading branch information
Kamakshi8104 committed Jan 10, 2024
1 parent 6683230 commit 655a916
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions numba/tests/test_random.py
Original file line number Diff line number Diff line change
Expand Up @@ -530,6 +530,13 @@ def test_numpy_uniform_kwargs(self):
paramlist=[{'low': 1.5, 'high': 1e6},
{'low': -2.5, 'high': 1e3},
{'low': 1.5, 'high': -2.5}])
def test_njit_with_np_random_uniform_error(self):
with self.assertRaises(numba.core.errors.TypingError):
@numba.njit
def uniform():
return np.random.uniform(0, 1, size=())

uniform()

def _check_triangular(self, func2, func3, ptr):
"""
Expand Down

0 comments on commit 655a916

Please sign in to comment.