Skip to content

CI: PyPy3 tests on Azure failed for a couple recent PRs #16092

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

Closed
WarrenWeckesser opened this issue Apr 28, 2020 · 1 comment · Fixed by #16094
Closed

CI: PyPy3 tests on Azure failed for a couple recent PRs #16092

WarrenWeckesser opened this issue Apr 28, 2020 · 1 comment · Fixed by #16094

Comments

@WarrenWeckesser
Copy link
Member

WarrenWeckesser commented Apr 28, 2020

Both #16083 and #14924 show this error in the Azure Linux PyPy3 error log:

=================================== FAILURES ===================================
_________________________ TestCApiAccess.test_getitem __________________________

self = <numpy.core.tests.test_indexing.TestCApiAccess object at 0x0000000009dfd2b8>

    def test_getitem(self):
        subscript = functools.partial(array_indexing, 0)
    
        # 0-d arrays don't work:
        assert_raises(IndexError, subscript, np.ones(()), 0)
        # Out of bound values:
        assert_raises(IndexError, subscript, np.ones(10), 11)
>       assert_raises(IndexError, subscript, np.ones(10), -11)

self       = <numpy.core.tests.test_indexing.TestCApiAccess object at 0x0000000009dfd2b8>
subscript  = functools.partial(<builtin_function_or_method object at 0x00007fc4341d21e0>, 0)

numpy/core/tests/test_indexing.py:1268: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
../../../pypy3/lib-python/3/unittest/case.py:733: in assertRaises
    return context.handle('assertRaises', args, kwargs)
        args       = (functools.partial(<builtin_function_or_method object at 0x00007fc4341d21e0>, 0), array([1., 1., 1., 1., 1., 1., 1., 1., 1., 1.]), -11)
        context    = None
        expected_exception = <class 'IndexError'>
        kwargs     = {}
        self       = <numpy.testing._private.utils._Dummy testMethod=nop>
../../../pypy3/lib-python/3/unittest/case.py:178: in handle
self       = <unittest.case._AssertRaisesContext object at 0x0000000009dfd280>
standardMsg = 'IndexError not raised by functools.partial(<builtin_function_or_method object at 0x00007fc4341d21e0>, 0)'

../../../pypy3/lib-python/3/unittest/case.py:135: AssertionError

@mattip
Copy link
Member

mattip commented Apr 28, 2020

We should pin the PyPy version we test against. We are using a nightly build rather than an official release. While this is nice for PyPy, it occasionally, like in last night's build, messes up.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants