Skip to content
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

two test failures on i386 #89

Closed
danstender opened this issue Dec 5, 2018 · 8 comments
Closed

two test failures on i386 #89

danstender opened this issue Dec 5, 2018 · 8 comments

Comments

@danstender
Copy link
Contributor

With 0.15.0, we have two test suite failures on i386 going like this:

FAIL: test_numpy_io.test_itemsize_chunk_size_mismatch(<class 'bloscpack.exceptions.ChunkSizeTypeSizeMismatch'>, <function pack_ndarray_str at 0xf4d4da4c>, array([  0,   1,   2,   3,   4,   5,   6,   7,   8,   9,  10,  11,  12,
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/nose/case.py", line 197, in runTest
    self.test(*self.arg)
AssertionError: ChunkSizeTypeSizeMismatch not raised by pack_ndarray_str

======================================================================
FAIL: test_numpy_io.test_itemsize_chunk_size_mismatch(<class 'bloscpack.exceptions.ChunkSizeTypeSizeMismatch'>, <function pack_ndarray_str at 0xf4d4da4c>, array([  0,   1,   2,   3,   4,   5,   6,   7,   8,   9,  10,  11,  12,
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/nose/case.py", line 197, in runTest
    self.test(*self.arg)
AssertionError: ChunkSizeTypeSizeMismatch not raised by pack_ndarray_str

----------------------------------------------------------------------
Ran 582 tests in 7.203s

FAILED (failures=2)
@esc
Copy link
Member

esc commented Dec 5, 2018

This may look like the same test, but because I am using test generators. Unfortunately I don't know which test-cases (there are 14) are failing now. Is there any way I could get ssh-access to an i386 box in order to debug this interactively?

@esc
Copy link
Member

esc commented Dec 5, 2018

Perhaps the default type size of an numpy.arange isn't 8 (double) but 4 (float) on this architecture. in which case the two test cases 4 and 12 would not fail. We could probably find this out easily with access to an i386 box:

>>> import numpy as np
>>> a = np.arange(1000)
>>> a.itemsize
8

The last statement should output 4 and not 8.

@danstender
Copy link
Contributor Author

danstender commented Dec 6, 2018 via email

@esc
Copy link
Member

esc commented Dec 6, 2018

Interesting, this seems to confirm my hypothesis. Thank you.

@esc
Copy link
Member

esc commented Dec 7, 2018

@danstender can you checkout #90?

@danstender
Copy link
Contributor Author

danstender commented Dec 7, 2018 via email

@esc
Copy link
Member

esc commented Dec 7, 2018

Closed by #90

@esc esc closed this as completed Dec 7, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants