Skip to content

Commit

Permalink
Merge pull request numpy#12623 from charris/backport-12618
Browse files Browse the repository at this point in the history
MAINT: add test for 12-byte alignment
  • Loading branch information
charris authored Dec 27, 2018
2 parents 0f88d6f + d62ffe0 commit 27f6909
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions numpy/core/tests/test_multiarray.py
Original file line number Diff line number Diff line change
Expand Up @@ -8000,10 +8000,10 @@ def check(self, shape, dtype, order, align):
raise ValueError()

def test_various_alignments(self):
for align in [1, 2, 3, 4, 8, 16, 32, 64, None]:
for align in [1, 2, 3, 4, 8, 12, 16, 32, 64, None]:
for n in [0, 1, 3, 11]:
for order in ["C", "F", None]:
for dtype in np.typecodes["All"]:
for dtype in list(np.typecodes["All"]) + ['i4,i4,i4']:
if dtype == 'O':
# object dtype can't be misaligned
continue
Expand Down

0 comments on commit 27f6909

Please sign in to comment.