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
Next Next commit
Add test for issue7843.
  • Loading branch information
DrTodd13 committed Mar 19, 2022
commit 1f6f83b00cec7bd4d6df9e9c58a430e8a6d6fc65
13 changes: 13 additions & 0 deletions numba/tests/test_parfors.py
Original file line number Diff line number Diff line change
Expand Up @@ -2001,6 +2001,19 @@ def test_impl(arr):
arr = np.arange(10, dtype=np.int64)
self.check(test_impl, arr)

def test_setitem_2d_one_replaced(self):
# issue7843
def test_impl(x):
count = 0
for n in range(x.shape[0]):
# Useless "if" necessary to trigger bug.
if n:
n
x[count, :] = 1
count += 1
return x

self.check(test_impl, np.zeros((3, 1)))

@skip_parfors_unsupported
class TestParforsLeaks(MemoryLeakMixin, TestParforsBase):
Expand Down