Skip to content

Commit

Permalink
Apply suggestions from PR numba#8120 review
Browse files Browse the repository at this point in the history
Co-authored-by: stuartarchibald <stuartarchibald@users.noreply.github.com>
  • Loading branch information
gmarkall and stuartarchibald committed Jan 25, 2023
1 parent 6a6fa6c commit 45fb8e6
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions numba/tests/test_record_dtype.py
Original file line number Diff line number Diff line change
Expand Up @@ -1735,8 +1735,8 @@ def copy(index, src, dest):
def test_issue_1469_1(self):
# Dimensions of nested arrays as a dtype are concatenated with the
# dimensions of the array.
nptype = np.dtype((np.float64,(4,)))
nbtype = types.Array(numpy_support.from_dtype(nptype),2,'C')
nptype = np.dtype((np.float64, (4,)))
nbtype = types.Array(numpy_support.from_dtype(nptype), 2, 'C')
expected = types.Array(types.float64, 3, 'C')
self.assertEqual(nbtype, expected)

Expand All @@ -1753,7 +1753,7 @@ def test_issue_1469_3(self):
# Nested arrays in record dtypes are accepted, but alignment is not
# guaranteed.
nptype = np.dtype([('a', np.float64,(4,))])
nbtype = types.Array(numpy_support.from_dtype(nptype),2,'C')
nbtype = types.Array(numpy_support.from_dtype(nptype), 2, 'C')

# Manual construction of expected array of record type
natype = types.NestedArray(types.float64, (4,))
Expand Down

0 comments on commit 45fb8e6

Please sign in to comment.