Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Add additional test from Siu.
  • Loading branch information
DrTodd13 committed Mar 8, 2021
commit 124572bec942b281532edada33f3534d8a2d21f6
19 changes: 19 additions & 0 deletions numba/tests/test_parfors.py
Original file line number Diff line number Diff line change
Expand Up @@ -2816,6 +2816,25 @@ def comparer(a, b):
np.empty(shape=1, dtype=state_dtype),
Comment thread
DrTodd13 marked this conversation as resolved.
Resolved
check_arg_equality=[comparer])

Comment thread
DrTodd13 marked this conversation as resolved.
Resolved
@skip_parfors_unsupported
def test_record_array_setitem_yield_array(self):
state_dtype = np.dtype([('x', np.intp)])

def test_impl(states):
n = states.size
for i in range(states.size):
states["x"][i] = 7 + i
return states

states = np.zeros(10, dtype=state_dtype)

def comparer(a, b):
np.testing.assert_equal(a, b)

self.prange_tester(test_impl,
states,
check_arg_equality=[comparer])


@skip_parfors_unsupported
@x86_only
Expand Down