Skip to content

TST: make a couple of tests expected to fail on 32-bit architectures #12899

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
Oct 1, 2020

Conversation

nforro
Copy link
Contributor

@nforro nforro commented Sep 30, 2020

In TestConstructUtils.test_concatenate_int32_overflow and test_nnz_overflow, on a 32-bit architecture, in case check_free_memory() passes, ValueError is raised on an attempt to create a numpy array too large for a 32-bit architecture.

Comment on lines 64 to 65
@pytest.mark.skipif(not (sys.platform.startswith('linux') and np.dtype(np.intp).itemsize >= 8),
reason="test requires 64-bit Linux")
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can you use @pytest.mark.xfail_on_32bit?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Done. I used the same message as with TestConvolve2d.test_large_array, I think it fits.

@nforro nforro force-pushed the test_nnz_overflow branch 2 times, most recently from ff7809b to 5272a5a Compare September 30, 2020 17:06
@nforro nforro changed the title TST: skip test_nnz_overflow on 32-bit architectures TST: make test_nnz_overflow expected to fail on 32-bit architectures Sep 30, 2020
@nforro nforro changed the title TST: make test_nnz_overflow expected to fail on 32-bit architectures TST: make a couple of tests expected to fail on 32-bit architectures Sep 30, 2020
@nforro
Copy link
Contributor Author

nforro commented Sep 30, 2020

I've just discovered that TestConstructUtils.test_concatenate_int32_overflow fails for the same reason, so I updated the commit to make it xfail as well.

@peterbell10
Copy link
Member

@nforro CI was badly broken yesterday. Would you mind rebasing on master so we can see CI run.

In TestConstructUtils.test_concatenate_int32_overflow
and test_nnz_overflow, on a 32-bit architecture, in case
check_free_memory() passes, ValueError is raised on an attempt
to create a numpy array too large for a 32-bit architecture.

Signed-off-by: Nikola Forró <nforro@redhat.com>
@nforro nforro force-pushed the test_nnz_overflow branch from ea0a77c to 7736712 Compare October 1, 2020 17:06
@peterbell10
Copy link
Member

Thanks @nforro.

@peterbell10 peterbell10 merged commit 12fa74e into scipy:master Oct 1, 2020
@tylerjereddy tylerjereddy added this to the 1.6.0 milestone Oct 2, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants