Skip to content

TST: win32 also does not provide 16 byte alignment #4907

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Jul 27, 2014
Merged
Show file tree
Hide file tree
Changes from all commits
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
7 changes: 4 additions & 3 deletions numpy/core/tests/test_numeric.py
Original file line number Diff line number Diff line change
Expand Up @@ -1049,11 +1049,12 @@ def test_array_equiv(self):

def assert_array_strict_equal(x, y):
assert_array_equal(x, y)
# Check flags
if 'sparc' not in platform.platform().lower():
# Check flags, debian sparc and win32 don't provide 16 byte alignment
if (x.dtype.alignment > 8 and
'sparc' not in platform.platform().lower() and
sys.platform != 'win32'):
assert_(x.flags == y.flags)
else:
# sparc arrays may not be aligned for long double types
assert_(x.flags.owndata == y.flags.owndata)
assert_(x.flags.writeable == y.flags.writeable)
assert_(x.flags.c_contiguous == y.flags.c_contiguous)
Expand Down
2 changes: 1 addition & 1 deletion numpy/f2py/tests/test_array_from_pyobj.py
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,7 @@ def is_intent_exact(self,*names):
# 16 byte long double types this means the inout intent cannot be satisfied and
# several tests fail as the alignment flag can be randomly true or fals
# when numpy gains an aligned allocator the tests could be enabled again
if 'sparc' not in platform.platform().lower():
if 'sparc' not in platform.platform().lower() and sys.platform != 'win32':
_type_names.extend(['LONGDOUBLE', 'CDOUBLE', 'CLONGDOUBLE'])
_cast_dict['LONGDOUBLE'] = _cast_dict['LONG'] + \
['ULONG', 'FLOAT', 'DOUBLE', 'LONGDOUBLE']
Expand Down