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
Added tests
  • Loading branch information
kc611 committed Jun 3, 2024
commit 056012a050c42db6597ba08527df15f6af717a94
11 changes: 11 additions & 0 deletions numba/tests/test_closure.py
Original file line number Diff line number Diff line change
Expand Up @@ -491,6 +491,17 @@ def consume():
# so allclose should be sufficient for comparison here.
np.testing.assert_allclose(consume(), 4 + 1.1)

@TestCase.run_test_in_subprocess
def test_issue_9577(self):
@njit
def _inner():
range_start = 0
for _ in range(1):
np.array([1 for _ in range(range_start, 7)])
range_start = 0

_inner()


if __name__ == '__main__':
unittest.main()