Skip to content

Commit

Permalink
Fix error type in exception checking.
Browse files Browse the repository at this point in the history
As title.
  • Loading branch information
stuartarchibald committed Nov 19, 2018
1 parent 8f5e65e commit f6a0a28
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions numba/tests/test_dyn_array.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
import threading

from numba import unittest_support as unittest
from numba.errors import TypingError
from numba.errors import TypingError, LoweringError
from numba import njit
from numba import utils
from numba.numpy_support import version as numpy_version
Expand Down Expand Up @@ -218,7 +218,7 @@ def pyfunc(m, n):
msg = ("Type int64 given in shape would lead to allocation "
"potentially exceeding intp size")

with self.assertRaises(ValueError) as raises:
with self.assertRaises(LoweringError) as raises:
cfunc(m, n)

self.assertIn(msg, str(raises.exception))
Expand Down

0 comments on commit f6a0a28

Please sign in to comment.