8000 Two test failues on macos arm64 (Apple Silicon) · Issue #17635 · numpy/numpy · GitHub
[go: up one dir, main page]

Skip to content

Two test failues on macos arm64 (Apple Silicon) #17635

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
isuruf opened this issue Oct 25, 2020 · 11 comments
Closed

Two test failues on macos arm64 (Apple Silicon) #17635

isuruf opened this issue Oct 25, 2020 · 11 comments

Comments

@isuruf
Copy link
Contributor
isuruf commented Oct 25, 2020

Reproducing code example:

pytest --verbose --pyargs numpy 

Error message:

=================================== FAILURES ===================================
__ TestMaskedArrayInPlaceArithmetics.test_inplace_floor_division_scalar_type ___

self = <numpy.ma.tests.test_core.TestMaskedArrayInPlaceArithmetics object at 0x11a5fb9d0>

    def test_inplace_floor_division_scalar_type(self):
        # Test of inplace division
        for t in self.othertypes:
            with warnings.catch_warnings(record=True) as w:
                warnings.filterwarnings("always")
                (x, y, xm) = (_.astype(t) for _ in self.uint8data)
                x = arange(10, dtype=t) * t(2)
                xm = arange(10, dtype=t) * t(2)
                xm[2] = masked
                x //= t(2)
                xm //= t(2)
                assert_equal(x, y)
                assert_equal(xm, y)
    
>               assert_equal(len(w), 0, "Failed on type=%s." % t)

../_test_env_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_pla/lib/python3.9/site-packages/numpy/ma/tests/test_core.py:2833: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

actual = 4, desired = 0, err_msg = "Failed on type=<class 'numpy.complex64'>."

    def assert_equal(actual, desired, err_msg=''):
        """
        Asserts that two items are equal.
    
        """
        # Case #1: dictionary .....
        if isinstance(desired, dict):
            if not isinstance(actual, dict):
                raise AssertionError(repr(type(actual)))
            assert_equal(len(actual), len(desired), err_msg)
            for k, i in desired.items():
                if k not in actual:
                    raise AssertionError("%s not in %s" % (k, actual))
                assert_equal(actual[k], desired[k], 'key=%r\n%s' % (k, err_msg))
            return
        # Case #2: lists .....
        if isinstance(desired, (list, tuple)) and isinstance(actual, (list, tuple)):
            return _assert_equal_on_sequences(actual, desired, err_msg='')
        if not (isinstance(actual, ndarray) or isinstance(desired, ndarray)):
            msg = build_err_msg([actual, desired], err_msg,)
            if not desired == actual:
>               raise AssertionError(msg)
E               AssertionError: 
E               Items are not equal: Failed on type=<class 'numpy.complex64'>.
E                ACTUAL: 4
E                DESIRED: 0

../_test_env_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_pla/lib/python3.9/site-packages/numpy/ma/testutils.py:129: AssertionError
___ TestMaskedArrayInPlaceArithmetics.test_inplace_floor_division_array_type ___

self = <numpy.ma.tests.test_core.TestMaskedArrayInPlaceArithmetics object at 0x11abc3df0>

    def test_inplace_floor_division_array_type(self):
        # Test of inplace division
        for t in self.othertypes:
            with warnings.catch_warnings(record=True) as w:
                warnings.filterwarnings("always")
                (x, y, xm) = (_.astype(t) for _ in self.uint8data)
                m = xm.mask
                a = arange(10, dtype=t)
                a[-1] = masked
                x //= a
                xm //= a
                assert_equal(x, y // a)
                assert_equal(xm, y // a)
                assert_equal(
                    xm.mask,
                    mask_or(mask_or(m, a.mask), (a == t(0)))
                )
    
>               assert_equal(len(w), 0, "Failed on type=%s." % t)

../_test_env_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_pla/lib/python3.9/site-packages/numpy/ma/tests/test_core.py:2853: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

actual = 4, desired = 0, err_msg = "Failed on type=<class 'numpy.complex64'>."

    def assert_equal(actual, desired, err_msg=''):
        """
        Asserts that two items are equal.
    
        """
        # Case #1: dictionary .....
        if isinstance(desired, dict):
            if not isinstance(actual, dict):
                raise AssertionError(repr(type(actual)))
            assert_equal(len(actual), len(desired), err_msg)
            for k, i in desired.items():
                if k not in actual:
                    raise AssertionError("%s not in %s" % (k, actual))
                assert_equal(actual[k], desired[k], 'key=%r\n%s' % (k, err_msg))
            return
        # Case #2: lists .....
        if isinstance(desired, (list, tuple)) and isinstance(actual, (list, tuple)):
            return _assert_equal_on_sequences(actual, desired, err_msg='')
        if not (isinstance(actual, ndarray) or isinstance(desired, ndarray)):
            msg = build_err_msg([actual, desired], err_msg,)
            if not desired == actual:
>               raise AssertionError(msg)
E               AssertionError: 
E               Items are not equal: Failed on type=<class 'numpy.complex64'>.
E                ACTUAL: 4
E                DESIRED: 0

../_test_env_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_pla/lib/python3.9/site-packages/numpy/ma/testutils.py:129: AssertionError

NumPy/Python version information:

Failures with numpy 1.19.2 and python 3.9.0 and 3.8.6

We've been cross compiling packages for this new hardware at conda-forge and running tests on the Developer Transition Kit. cc @erykoff, @beckermr, @rgommers

@mattip
Copy link
Member
mattip commented Oct 25, 2020

what are the warnings?

@isuruf
Copy link
Contributor Author
isuruf commented Oct 25, 2020
=============================== warnings summary ===============================
../_test_env_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_pla/lib/python3.8/site-packages/numpy/core/tests/test_umath.py:3219
  $PREFIX/lib/python3.8/site-packages/numpy/core/tests/test_umath.py:3219: PendingDeprecationWarning: the matrix subclass is not the recommended way to represent matrices or deal with linear algebra (see https://docs.scipy.org/doc/numpy/user/numpy-for-matlab-users.html). Please adjust your code to use regular ndarray.
    np.matrix([0, 1]),

../_test_env_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_pla/lib/python3.8/site-packages/numpy/core/tests/test_umath.py:3220
  $PREFIX/lib/python3.8/site-packages/numpy/core/tests/test_umath.py:3220: PendingDeprecationWarning: the matrix subclass is not the recommended way to represent matrices or deal with linear algebra (see https://docs.scipy.org/doc/numpy/user/numpy-for-matlab-users.html). Please adjust your code to use regular ndarray.
    np.matrix([[0, 1], [2, 5]]),

../_test_env_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_pla/lib/python3.8/site-packages/numpy/matrixlib/tests/test_defmatrix.py:322
  $PREFIX/lib/python3.8/site-packages/numpy/matrixlib/tests/test_defmatrix.py:322: PendingDeprecationWarning: the matrix subclass is not the recommended way to represent matrices or deal with linear algebra (see https://docs.scipy.org/doc/numpy/user/numpy-for-matlab-users.html). Please adjust your code to use regular ndarray.
    a = matrix([[1, 2], [3, 4]])

../_test_env_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_pla/lib/python3.8/site-packages/numpy/matrixlib/tests/test_defmatrix.py:402
  $PREFIX/lib/python3.8/site-packages/numpy/matrixlib/tests/test_defmatrix.py:402: PendingDeprecationWarning: the matrix subclass is not the recommended way to represent matrices or deal with linear algebra (see https://docs.scipy.org/doc/numpy/user/numpy-for-matlab-users.html). Please adjust your code to use regular ndarray.
    m = matrix([[1], [2]])

../_test_env_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_pla/lib/python3.8/site-packages/numpy/matrixlib/tests/test_matrix_linalg.py:21
  $PREFIX/lib/python3.8/site-packages/numpy/matrixlib/tests/test_matrix_linalg.py:21: PendingDeprecationWarning: the matrix subclass is not the recommended way to represent matrices or deal with linear algebra (see https://docs.scipy.org/doc/numpy/user/numpy-for-matlab-users.html). Please adjust your code to use regular ndarray.
    np.matrix([2., 1.]).T),

../_test_env_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_pla/lib/python3.8/site-packages/numpy/matrixlib/tests/test_matrix_linalg.py:23
  $PREFIX/lib/python3.8/site-packages/numpy/matrixlib/tests/test_matrix_linalg.py:23: PendingDeprecationWarning: the matrix subclass is not the recommended way to represent matrices or deal with linear algebra (see https://docs.scipy.org/doc/numpy/user/numpy-for-matlab-users.html). Please adjust your code to use regular ndarray.
    np.matrix([[1., 2.], [3., 4.]]),

../_test_env_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_pla/lib/python3.8/site-packages/numpy/matrixlib/tests/test_matrix_linalg.py:24
  $PREFIX/lib/python3.8/site-packages/numpy/matrixlib/tests/test_matrix_linalg.py:24: PendingDeprecationWarning: the matrix subclass is not the recommended way to represent matrices or deal with linear algebra (see https://docs.scipy.org/doc/numpy/user/numpy-for-matlab-users.html). Please adjust your code to use regular ndarray.
    np.matrix([2., 1.]).T),

../_test_env_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_pla/lib/python3.8/site-packages/numpy/matrixlib/tests/test_matrix_linalg.py:30
  $PREFIX/lib/python3.8/site-packages/numpy/matrixlib/tests/test_matrix_linalg.py:30: PendingDeprecationWarning: the matrix subclass is not the recommended way to represent matrices or deal with linear algebra (see https://docs.scipy.org/doc/numpy/user/numpy-for-matlab-users.html). Please adjust your code to use regular ndarray.
    np.matrix([[1., 2.], [2., 1.]]),

../_test_env_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_pla/lib/python3.8/site-packages/numpy/tests/test_matlib.py:2
  $PREFIX/lib/python3.8/site-packages/numpy/tests/test_matlib.py:2: PendingDeprecationWarning: Importing from numpy.matlib is deprecated since 1.19.0. The matrix subclass is not the recommended way to represent matrices or deal with linear algebra (see https://docs.scipy.org/doc/numpy/user/numpy-for-matlab-users.html). Please adjust your code to use regular ndarray. 
    import numpy.matlib

core/tests/test_umath.py::TestDivision::test_floor_division_complex
  $PREFIX/lib/python3.8/site-packages/numpy/core/tests/test_umath.py:285: RuntimeWarning: divide by zero encountered in floor_divide
    y = np.floor_divide(x**2, x)

linalg/tests/test_linalg.py::TestDet::test_types[complex64]
linalg/tests/test_linalg.py::TestDet::test_types[complex128]
  $PREFIX/lib/python3.8/site-packages/numpy/linalg/linalg.py:2159: RuntimeWarning: divide by zero encountered in det
    r = _umath_linalg.det(a, signature=signature)

linalg/tests/test_linalg.py::TestDet::test_types[complex64]
linalg/tests/test_linalg.py::TestDet::test_types[complex128]
  $PREFIX/lib/python3.8/site-packages/numpy/linalg/linalg.py:2159: RuntimeWarning: invalid value encountered in det
    r = _umath_linalg.det(a, signature=signature)

linalg/tests/test_linalg.py::TestDet::test_types[complex64]
linalg/tests/test_linalg.py::TestDet::test_types[complex128]
  $PREFIX/lib/python3.8/site-packages/numpy/linalg/linalg.py:2099: RuntimeWarning: divide by zero encountered in slogdet
    sign, logdet = _umath_linalg.slogdet(a, signature=signature)

linalg/tests/test_linalg.py::TestDet::test_types[complex64]
linalg/tests/test_linalg.py::TestDet::test_types[complex128]
  $PREFIX/lib/python3.8/site-packages/numpy/linalg/linalg.py:2099: RuntimeWarning: invalid value encountered in slogdet
    sign, logdet = _umath_linalg.slogdet(a, signature=signature)

matrixlib/tests/test_defmatrix.py::TestCtor::test_basic
  $PREFIX/lib/python3.8/site-packages/numpy/matrixlib/tests/test_defmatrix.py:15: PendingDeprecationWarning: the matrix subclass is not the recommended way to represent matrices or deal with linear algebra (see https://docs.scipy.org/doc/numpy/user/numpy-for-matlab-users.html). Please adjust your code to use regular ndarray.
    mA = matrix(A)

matrixlib/tests/test_defmatrix.py::TestCtor::test_basic
matrixlib/tests/test_defmatrix.py::TestCtor::test_bmat_nondefault_str
matrixlib/tests/test_defmatrix.py::TestCtor::test_bmat_nondefault_str
matrixlib/tests/test_defmatrix.py::TestCtor::test_bmat_nondefault_str
matrixlib/tests/test_defmatrix.py::TestCtor::test_bmat_nondefault_str
matrixlib/tests/test_interaction.py::TestConcatenatorMatrix::test_matrix_builder
  $PREFIX/lib/python3.8/site-packages/numpy/matrixlib/defmatrix.py:1099: PendingDeprecationWarning: the matrix subclass is not the recommended way to represent matrices or deal with linear algebra (see https://docs.scipy.org/doc/numpy/user/numpy-for-matlab-users.html). Please adjust your code to use regular ndarray.
    return matrix(_from_string(obj, glob_dict, loc_dict))

matrixlib/tests/test_defmatrix.py::TestCtor::test_basic
matrixlib/tests/test_interaction.py::TestConcatenatorMatrix::test_matrix_builder
  $PREFIX/lib/python3.8/site-packages/numpy/matrixlib/defmatrix.py:1109: PendingDeprecationWarning: the matrix subclass is not the recommended way to represent matrices or deal with linear algebra (see https://docs.scipy.org/doc/numpy/user/numpy-for-matlab-users.html). Please adjust your code to use regular ndarray.
    return matrix(concatenate(arr_rows, axis=0))

matrixlib/tests/test_defmatrix.py::TestCtor::test_basic
  $PREFIX/lib/python3.8/site-packages/numpy/matrixlib/tests/test_defmatrix.py:28: PendingDeprecationWarning: the matrix subclass is not the recommended way to represent matrices or deal with linear algebra (see https://docs.scipy.org/doc/numpy/user/numpy-for-matlab-users.html). Please adjust your code to use regular ndarray.
    AEresult = matrix([[1, 2, 5, 6], [3, 4, 7, 8]])

matrixlib/tests/test_defmatrix.py::TestCtor::test_basic
  $PREFIX/lib/python3.8/site-packages/numpy/matrixlib/defmatrix.py:1106: PendingDeprecationWarning: the matrix subclass is not the recommended way to represent matrices or deal with linear algebra (see https://docs.scipy.org/doc/numpy/user/numpy-for-matlab-users.html). Please adjust your code to use regular ndarray.
    return matrix(concatenate(obj, axis=-1))

matrixlib/tests/test_defmatrix.py::TestCtor::test_basic
  $PREFIX/lib/python3.8/site-packages/numpy/matrixlib/tests/test_defmatrix.py:32: PendingDeprecationWarning: the matrix subclass is not the recommended way to represent matrices or deal with linear algebra (see https://docs.scipy.org/doc/numpy/user/numpy-for-matlab-users.html). Please adjust your code to use regular ndarray.
    mvec = matrix(vec)

matrixlib/tests/test_defmatrix.py::TestCtor::test_exceptions
  $PREFIX/lib/python3.8/unittest/case.py:202: PendingDeprecationWarning: the matrix subclass is not the recommended way to represent matrices or deal with linear algebra (see https://docs.scipy.org/doc/numpy/user/numpy-for-matlab-users.html). Please adjust your code to use regular ndarray.
    callable_obj(*args, **kwargs)

matrixlib/tests/test_defmatrix.py::TestProperties::test_sum
  $PREFIX/lib/python3.8/site-packages/numpy/matrixlib/tests/test_defmatrix.py:64: PendingDeprecationWarning: the matrix subclass is not the recommended way to represent matrices or deal with linear algebra (see https://docs.scipy.org/doc/numpy/user/numpy-for-matlab-users.html). Please adjust your code to use regular ndarray.
    M = matrix([[1, 2, 0, 0],

matrixlib/tests/test_defmatrix.py::TestProperties::test_sum
  $PREFIX/lib/python3.8/site-packages/numpy/matrixlib/tests/test_defmatrix.py:68: PendingDeprecationWarning: the matrix subclass is not the recommended way to represent matrices or deal with linear algebra (see https://docs.scipy.org/doc/numpy/user/numpy-for-matlab-users.html). Please adjust your code to use regular ndarray.
    sum0 = matrix([8, 12, 4, 6])

matrixlib/tests/test_defmatrix.py::TestProperties::test_sum
  $PREFIX/lib/python3.8/site-packages/numpy/matrixlib/tests/test_defmatrix.py:69: PendingDeprecationWarning: the matrix subclass is not the recommended way to represent matrices or deal with linear algebra (see https://docs.scipy.org/doc/numpy/user/numpy-for-matlab-users.html). Please adjust your code to use regular ndarray.
    sum1 = matrix([3, 7, 6, 14]).T

matrixlib/tests/test_defmatrix.py::TestProperties::test_prod
  $PREFIX/lib/python3.8/site-packages/numpy/matrixlib/tests/test_defmatrix.py:80: PendingDeprecationWarning: the matrix subclass is not the recommended way to represent matrices or deal with linear algebra (see https://docs.scipy.org/doc/numpy/user/numpy-for-matlab-users.html). Please adjust your code to use regular ndarray.
    x = matrix([[1, 2, 3], [4, 5, 6]])

matrixlib/tests/test_defmatrix.py::TestProperties::test_prod
  $PREFIX/lib/python3.8/site-packages/numpy/matrixlib/tests/test_defmatrix.py:82: PendingDeprecationWarning: the matrix subclass is not the recommended way to represent matrices or deal with linear algebra (see https://docs.scipy.org/doc/numpy/user/numpy-for-matlab-users.html). Please adjust your code to use regular ndarray.
    assert_equal(x.prod(0), matrix([[4, 10, 18]]))

matrixlib/tests/test_defmatrix.py::TestProperties::test_prod
  $PREFIX/lib/python3.8/site-packages/numpy/matrixlib/tests/test_defmatrix.py:83: PendingDeprecationWarning: the matrix subclass is not the recommended way to represent matrices or deal with linear algebra (see https://docs.scipy.org/doc/numpy/user/numpy-for-matlab-users.html). Please adjust your code to use regular ndarray.
    assert_equal(x.prod(1), matrix([[6], [120]]))

matrixlib/tests/test_defmatrix.py::TestProperties::test_prod
  $PREFIX/lib/python3.8/site-packages/numpy/matrixlib/tests/test_defmatrix.py:86: PendingDeprecationWarning: the matrix subclass is not the recommended way to represent matrices or deal with linear algebra (see https://docs.scipy.org/doc/numpy/user/numpy-for-matlab-users.html). Please adjust your code to use regular ndarray.
    assert_equal(np.prod(x, axis=0), matrix([[4, 10, 18]]))

matrixlib/tests/test_defmatrix.py::TestProperties::test_prod
  $PREFIX/lib/python3.8/site-packages/numpy/matrixlib/tests/test_defmatrix.py:87: PendingDeprecationWarning: the matrix subclass is not the recommended way to represent matrices or deal with linear algebra (see https://docs.scipy.org/doc/numpy/user/numpy-for-matlab-users.html). Please adjust your code to use regular ndarray.
    assert_equal(np.prod(x, axis=1), matrix([[6], [120]]))

matrixlib/tests/test_defmatrix.py::TestProperties::test_prod
  $PREFIX/lib/python3.8/site-packages/numpy/matrixlib/tests/test_defmatrix.py:89: PendingDeprecationWarning: the matrix subclass is not the recommended way to represent matrices or deal with linear algebra (see https://docs.scipy.org/doc/numpy/user/numpy-for-matlab-users.html). Please adjust your code to use regular ndarray.
    y = matrix([0, 1, 3])

matrixlib/tests/test_defmatrix.py::TestProperties::test_max
  $PREFIX/lib/python3.8/site-packages/numpy/matrixlib/tests/test_defmatrix.py:93: PendingDeprecationWarning: the matrix subclass is not the recommended way to represent matrices or deal with linear algebra (see https://docs.scipy.org/doc/numpy/user/numpy-for-matlab-users.html). Please adjust your code to use regular ndarray.
    x = matrix([[1, 2, 3], [4, 5, 6]])

matrixlib/tests/test_defmatrix.py::TestProperties::test_max
  $PREFIX/lib/python3.8/site-packages/numpy/matrixlib/tests/test_defmatrix.py:95: PendingDeprecationWarning: the matrix subclass is not the recommended way to represent matrices or deal with linear algebra (see https://docs.scipy.org/doc/numpy/user/numpy-for-matlab-users.html). Please adjust your code to use regular ndarray.
    assert_equal(x.max(0), matrix([[4, 5, 6]]))

matrixlib/tests/test_defmatrix.py::TestProperties::test_max
  $PREFIX/lib/python3.8/site-packages/numpy/matrixlib/tests/test_defmatrix.py:96: PendingDeprecationWarning: the matrix subclass is not the recommended way to represent matrices or deal with linear algebra (see https://docs.scipy.org/doc/numpy/user/numpy-for-matlab-users.html). Please adjust your code to use regular ndarray.
    assert_equal(x.max(1), matrix([[3], [6]]))

matrixlib/tests/test_defmatrix.py::TestProperties::test_max
  $PREFIX/lib/python3.8/site-packages/numpy/matrixlib/tests/test_defmatrix.py:99: PendingDeprecationWarning: the matrix subclass is not the recommended way to represent matrices or deal with linear algebra (see https://docs.scipy.org/doc/numpy/user/numpy-for-matlab-users.html). Please adjust your code to use regular ndarray.
    assert_equal(np.max(x, axis=0), matrix([[4, 5, 6]]))

matrixlib/tests/test_defmatrix.py::TestProperties::test_max
  $PREFIX/lib/python3.8/site-packages/numpy/matrixlib/tests/test_defmatrix.py:100: PendingDeprecationWarning: the matrix subclass is not the recommended way to represent matrices or deal with linear algebra (see https://docs.scipy.org/doc/numpy/user/numpy-for-matlab-users.html). Please adjust your code to use regular ndarray.
    assert_equal(np.max(x, axis=1), matrix([[3], [6]]))

matrixlib/tests/test_defmatrix.py::TestProperties::test_min
  $PREFIX/lib/python3.8/site-packages/numpy/matrixlib/tests/test_defmatrix.py:103: PendingDeprecationWarning: the matrix subclass is not the recommended way to represent matrices or deal with linear algebra (see https://docs.scipy.org/doc/numpy/user/numpy-for-matlab-users.html). Please adjust your code to use regular ndarray.
    x = matrix([[1, 2, 3], [4, 5, 6]])

matrixlib/tests/test_defmatrix.py::TestProperties::test_min
  $PREFIX/lib/python3.8/site-packages/numpy/matrixlib/tests/test_defmatrix.py:105: PendingDeprecationWarning: the matrix subclass is not the recommended way to represent matrices or deal with linear algebra (see https://docs.scipy.org/doc/numpy/user/numpy-for-matlab-users.html). Please adjust your code to use regular ndarray.
    assert_equal(x.min(0), matrix([[1, 2, 3]]))

matrixlib/tests/test_defmatrix.py::TestProperties::test_min
  $PREFIX/lib/python3.8/site-packages/numpy/matrixlib/tests/test_defmatrix.py:106: PendingDeprecationWarning: the matrix subclass is not the recommended way to represent matrices or deal with linear algebra (see https://docs.scipy.org/doc/numpy/user/numpy-for-matlab-users.html). Please adjust your code to use regular ndarray.
    assert_equal(x.min(1), matrix([[1], [4]]))

matrixlib/tests/test_defmatrix.py::TestProperties::test_min
  $PREFIX/lib/python3.8/site-packages/numpy/matrixlib/tests/test_defmatrix.py:109: PendingDeprecationWarning: the matrix subclass is not the recommended way to represent matrices or deal with linear algebra (see https://docs.scipy.org/doc/numpy/user/numpy-for-matlab-users.html). Please adjust your code to use regular ndarray.
    assert_equal(np.min(x, axis=0), matrix([[1, 2, 3]]))

matrixlib/tests/test_defmatrix.py::TestProperties::test_min
  $PREFIX/lib/python3.8/site-packages/numpy/matrixlib/tests/test_defmatrix.py:110: PendingDeprecationWarning: the matrix subclass is not the recommended way to represent matrices or deal with linear algebra (see https://docs.scipy.org/doc/numpy/user/numpy-for-matlab-users.html). Please adjust your code to use regular ndarray.
    assert_equal(np.min(x, axis=1), matrix([[1], [4]]))

matrixlib/tests/test_defmatrix.py::TestProperties::test_basic
  $PREFIX/lib/python3.8/site-packages/numpy/matrixlib/tests/test_defmatrix.py:129: PendingDeprecationWarning: the matrix subclass is not the recommended way to represent matrices or deal with linear algebra (see https://docs.scipy.org/doc/numpy/user/numpy-for-matlab-users.html). Please adjust your code to use regular ndarray.
    mA = matrix(A)

matrixlib/tests/test_defmatrix.py: 14 warnings
matrixlib/tests/test_interaction.py: 3 warnings
matrixlib/tests/test_regression.py: 3 warnings
tests/test_matlib.py: 4 warnings
  $PREFIX/lib/python3.8/site-packages/numpy/matrixlib/defmatrix.py:69: PendingDeprecationWarning: the matrix subclass is not the recommended way to represent matrices or deal with linear algebra (see https://docs.scipy.org/doc/numpy/user/numpy-for-matlab-users.html). Please adjust your code to use regular ndarray.
    return matrix(data, dtype=dtype, copy=False)

matrixlib/tests/test_defmatrix.py::TestProperties::test_basic
  $PREFIX/lib/python3.8/site-packages/numpy/matrixlib/tests/test_defmatrix.py:136: PendingDeprecationWarning: the matrix subclass is not the recommended way to represent matrices or deal with linear algebra (see https://docs.scipy.org/doc/numpy/user/numpy-for-matlab-users.html). Please adjust your code to use regular ndarray.
    mB = matrix(B)

matrixlib/tests/test_defmatrix.py::TestProperties::test_pinv
  $PREFIX/lib/python3.8/site-packages/numpy/matrixlib/tests/test_defmatrix.py:142: PendingDeprecationWarning: the matrix subclass is not the recommended way to represent matrices or deal with linear algebra (see https://docs.scipy.org/doc/numpy/user/numpy-for-matlab-users.html). Please adjust your code to use regular ndarray.
    x = matrix(np.arange(6).reshape(2, 3))

matrixlib/tests/test_defmatrix.py::TestProperties::test_pinv
  $PREFIX/lib/python3.8/site-packages/numpy/matrixlib/tests/test_defmatrix.
8000
py:143: PendingDeprecationWarning: the matrix subclass is not the recommended way to represent matrices or deal with linear algebra (see https://docs.scipy.org/doc/numpy/user/numpy-for-matlab-users.html). Please adjust your code to use regular ndarray.
    xpinv = matrix([[-0.77777778,  0.27777778],

matrixlib/tests/test_defmatrix.py::TestProperties::test_comparisons
  $PREFIX/lib/python3.8/site-packages/numpy/matrixlib/tests/test_defmatrix.py:150: PendingDeprecationWarning: the matrix subclass is not the recommended way to represent matrices or deal with linear algebra (see https://docs.scipy.org/doc/numpy/user/numpy-for-matlab-users.html). Please adjust your code to use regular ndarray.
    mA = matrix(A)

matrixlib/tests/test_defmatrix.py::TestProperties::test_comparisons
  $PREFIX/lib/python3.8/site-packages/numpy/matrixlib/tests/test_defmatrix.py:151: PendingDeprecationWarning: the matrix subclass is not the recommended way to represent matrices or deal with linear algebra (see https://docs.scipy.org/doc/numpy/user/numpy-for-matlab-users.html). Please adjust your code to use regular ndarray.
    mB = matrix(A) + 0.1

matrixlib/tests/test_defmatrix.py::TestProperties::test_comparisons
  $PREFIX/lib/python3.8/site-packages/numpy/matrixlib/tests/test_defmatrix.py:153: PendingDeprecationWarning: the matrix subclass is not the recommended way to represent matrices or deal with linear algebra (see https://docs.scipy.org/doc/numpy/user/numpy-for-matlab-users.html). Please adjust your code to use regular ndarray.
    assert_(np.all(mB == matrix(A+0.1)))

matrixlib/tests/test_defmatrix.py::TestProperties::test_comparisons
  $PREFIX/lib/python3.8/site-packages/numpy/matrixlib/tests/test_defmatrix.py:154: PendingDeprecationWarning: the matrix subclass is not the recommended way to represent matrices or deal with linear algebra (see https://docs.scipy.org/doc/numpy/user/numpy-for-matlab-users.html). Please adjust your code to use regular ndarray.
    assert_(not np.any(mB == matrix(A-0.1)))

matrixlib/tests/test_defmatrix.py::TestProperties::test_noaxis
  $PREFIX/lib/python3.8/site-packages/numpy/matrixlib/tests/test_defmatrix.py:179: PendingDeprecationWarning: the matrix subclass is not the recommended way to represent matrices or deal with linear algebra (see https://docs.scipy.org/doc/numpy/user/numpy-for-matlab-users.html). Please adjust your code to use regular ndarray.
    A = matrix([[1, 0], [0, 1]])

matrixlib/tests/test_defmatrix.py::TestProperties::test_noaxis
  $PREFIX/lib/python3.8/site-packages/numpy/matrixlib/tests/test_defmatrix.py:180: PendingDeprecationWarning: the matrix subclass is not the recommended way to represent matrices or deal with linear algebra (see https://docs.scipy.org/doc/numpy/user/numpy-for-matlab-users.html). Please adjust your code to use regular ndarray.
    assert_(A.sum() == matrix(2))

matrixlib/tests/test_defmatrix.py::TestProperties::test_noaxis
  $PREFIX/lib/python3.8/site-packages/numpy/matrixlib/tests/test_defmatrix.py:181: PendingDeprecationWarning: the matrix subclass is not the recommended way to represent matrices or deal with linear algebra (see https://docs.scipy.org/doc/numpy/user/numpy-for-matlab-users.html). Please adjust your code to use regular ndarray.
    assert_(A.mean() == matrix(0.5))

matrixlib/tests/test_defmatrix.py::TestProperties::test_repr
  $PREFIX/lib/python3.8/site-packages/numpy/matrixlib/tests/test_defmatrix.py:184: PendingDeprecationWarning: the matrix subclass is not the recommended way to represent matrices or deal with linear algebra (see https://docs.scipy.org/doc/numpy/user/numpy-for-matlab-users.html). Please adjust your code to use regular ndarray.
    A = matrix([[1, 0], [0, 1]])

matrixlib/tests/test_defmatrix.py::TestProperties::test_make_bool_matrix_from_str
  $PREFIX/lib/python3.8/site-packages/numpy/matrixlib/tests/test_defmatrix.py:188: PendingDeprecationWarning: the matrix subclass is not the recommended way to represent matrices or deal with linear algebra (see https://docs.scipy.org/doc/numpy/user/numpy-for-matlab-users.html). Please adjust your code to use regular ndarray.
    A = matrix('True; True; False')

matrixlib/tests/test_defmatrix.py::TestProperties::test_make_bool_matrix_from_str
  $PREFIX/lib/python3.8/site-packages/numpy/matrixlib/tests/test_defmatrix.py:189: PendingDeprecationWarning: the matrix subclass is not the recommended way to represent matrices or deal with linear algebra (see https://docs.scipy.org/doc/numpy/user/numpy-for-matlab-users.html). Please adjust your code to use regular ndarray.
    B = matrix([[True], [True], [False]])

matrixlib/tests/test_defmatrix.py::TestCasting::test_basic
  $PREFIX/lib/python3.8/site-packages/numpy/matrixlib/tests/test_defmatrix.py:195: PendingDeprecationWarning: the matrix subclass is not the recommended way to represent matrices or deal with linear algebra (see https://docs.scipy.org/doc/numpy/user/numpy-for-matlab-users.html). Please adjust your code to use regular ndarray.
    mA = matrix(A)

matrixlib/tests/test_defmatrix.py::TestAlgebra::test_basic
  $PREFIX/lib/python3.8/site-packages/numpy/matrixlib/tests/test_defmatrix.py:216: PendingDeprecationWarning: the matrix subclass is not the recommended way to represent matrices or deal with linear algebra (see https://docs.scipy.org/doc/numpy/user/numpy-for-matlab-users.html). Please adjust your code to use regular ndarray.
    mA = matrix(A)

matrixlib/tests/test_defmatrix.py::TestAlgebra::test_basic
  $PREFIX/lib/python3.8/site-packages/numpy/matrixlib/tests/test_defmatrix.py:233: PendingDeprecationWarning: the matrix subclass is not the recommended way to represent matrices or deal with linear algebra (see https://docs.scipy.org/doc/numpy/user/numpy-for-matlab-users.html). Please adjust your code to use regular ndarray.
    mA2 = matrix(A)

matrixlib/tests/test_defmatrix.py::TestAlgebra::test_pow
  $PREFIX/lib/python3.8/site-packages/numpy/matrixlib/tests/test_defmatrix.py:239: PendingDeprecationWarning: the matrix subclass is not the recommended way to represent matrices or deal with linear algebra (see https://docs.scipy.org/doc/numpy/user/numpy-for-matlab-users.html). Please adjust your code to use regular ndarray.
    m = matrix("1. 2.; 3. 4.")

matrixlib/tests/test_defmatrix.py::TestAlgebra::test_scalar_type_pow
  $PREFIX/lib/python3.8/site-packages/numpy/matrixlib/tests/test_defmatrix.py:251: PendingDeprecationWarning: the matrix subclass is not the recommended way to represent matrices or deal with linear algebra (see https://docs.scipy.org/doc/numpy/user/numpy-for-matlab-users.html). Please adjust your code to use regular ndarray.
    m = matrix([[1, 2], [3, 4]])

matrixlib/tests/test_defmatrix.py::TestAlgebra::test_notimplemented
  $PREFIX/lib/python3.8/site-packages/numpy/matrixlib/tests/test_defmatrix.py:258: PendingDeprecationWarning: the matrix subclass is not the recommended way to represent matrices or deal with linear algebra (see https://docs.scipy.org/doc/numpy/user/numpy-for-matlab-users.html). Please adjust your code to use regular ndarray.
    A = matrix([[1., 2.],

matrixlib/tests/test_defmatrix.py::TestMatrixReturn::test_instance_methods
  $PREFIX/lib/python3.8/site-packages/numpy/matrixlib/tests/test_defmatrix.py:272: PendingDeprecationWarning: the matrix subclass is not the recommended way to represent matrices or deal with linear algebra (see https://docs.scipy.org/doc/numpy/user/numpy-for-matlab-users.html). Please adjust your code to use regular ndarray.
    a = matrix([1.0], dtype='f8')

matrixlib/tests/test_defmatrix.py::TestMatrixReturn::test_instance_methods
  $PREFIX/lib/python3.8/site-packages/numpy/matrixlib/tests/test_defmatrix.py:307: PendingDeprecationWarning: the matrix subclass is not the recommended way to represent matrices or deal with linear algebra (see https://docs.scipy.org/doc/numpy/user/numpy-for-matlab-users.html). Please adjust your code to use regular ndarray.
    c, d = matrix([0.0]).nonzero()

matrixlib/tests/test_defmatrix.py::TestNewScalarIndexing::test_fancy_indexing
  $PREFIX/lib/python3.8/site-packages/numpy/matrixlib/tests/test_defmatrix.py:342: PendingDeprecationWarning: the matrix subclass is not the recommended way to represent matrices or deal with linear algebra (see https://docs.scipy.org/doc/numpy/user/numpy-for-matlab-users.html). Please adjust your code to use regular ndarray.
    assert_equal(x, matrix([[3,  4,  3]]))

matrixlib/tests/test_defmatrix.py::TestNewScalarIndexing::test_fancy_indexing
  $PREFIX/lib/python3.8/site-packages/numpy/matrixlib/tests/test_defmatrix.py:345: PendingDeprecationWarning: the matrix subclass is not the recommended way to represent matrices or deal with linear algebra (see https://docs.scipy.org/doc/numpy/user/numpy-for-matlab-users.html). Please adjust your code to use regular ndarray.
    assert_equal(x, matrix([[3,  4], [1, 2]]))

matrixlib/tests/test_defmatrix.py::TestNewScalarIndexing::test_fancy_indexing
  $PREFIX/lib/python3.8/site-packages/numpy/matrixlib/tests/test_defmatrix.py:348: PendingDeprecationWarning: the matrix subclass is not the recommended way to represent matrices or deal with linear algebra (see https://docs.scipy.org/doc/numpy/user/numpy-for-matlab-users.html). Please adjust your code to use regular ndarray.
    assert_equal(x, matrix([[4,  3], [1,  2]]))

matrixlib/tests/test_defmatrix.py::TestNewScalarIndexing::test_matrix_element
  $PREFIX/lib/python3.8/site-packages/numpy/matrixlib/tests/test_defmatrix.py:351: PendingDeprecationWarning: the matrix subclass is not the recommended way to represent matrices or deal with linear algebra (see https://docs.scipy.org/doc/numpy/user/numpy-for-matlab-users.html). Please adjust your code to use regular ndarray.
    x = matrix([[1, 2, 3], [4, 5, 6]])

matrixlib/tests/test_defmatrix.py::TestNewScalarIndexing::test_matrix_element
  $PREFIX/lib/python3.8/site-packages/numpy/matrixlib/tests/test_defmatrix.py:352: PendingDeprecationWarning: the matrix subclass is not the recommended way to represent matrices or deal with linear algebra (see https://docs.scipy.org/doc/numpy/user/numpy-for-matlab-users.html). Please adjust your code to use regular ndarray.
    assert_equal(x[0][0], matrix([[1, 2, 3]]))

matrixlib/tests/test_defmatrix.py::TestNewScalarIndexing::test_matrix_element
  $PREFIX/lib/python3.8/site-packages/numpy/matrixlib/tests/test_defmatrix.py:357: PendingDeprecationWarning: the matrix subclass is not the recommended way to represent matrices or deal with linear algebra (see https://docs.scipy.org/doc/numpy/user/numpy-for-matlab-users.html). Please adjust your code to use regular ndarray.
    x = matrix(0)

matrixlib/tests/test_defmatrix.py::TestShape::test_numpy_ravel_order
  $PREFIX/lib/python3.8/site-packages/numpy/matrixlib/tests/test_defmatrix.py:426: PendingDeprecationWarning: the matrix subclass is not the recommended way to represent matrices or deal with linear algebra (see https://docs.scipy.org/doc/numpy/user/numpy-for-matlab-users.html). Please adjust your code to use regular ndarray.
    x = matrix([[1, 2, 3], [4, 5, 6]])

matrixlib/tests/test_defmatrix.py::TestShape::test_matrix_ravel_order
  $PREFIX/lib/python3.8/site-packages/numpy/matrixlib/tests/test_defmatrix.py:433: PendingDeprecationWarning: the matrix subclass is not the recommended way to represent matrices or deal with linear algebra (see https://docs.scipy.org/doc/numpy/user/numpy-for-matlab-users.html). Please adjust your code to use regular ndarray.
    x = matrix([[1, 2, 3], [4, 5, 6]])

matrixlib/tests/test_interaction.py::test_fancy_indexing
  $PREFIX/lib/python3.8/site-packages/numpy/matrixlib/tests/test_interaction.py:21: PendingDeprecationWarning: the matrix subclass is not the recommended way to represent matrices or deal with linear algebra (see https://docs.scipy.org/doc/numpy/user/numpy-for-matlab-users.html). Please adjust your code to use regular ndarray.
    m = np.matrix([[1, 2], [3, 4]])

matrixlib/tests/test_interaction.py::test_polynomial_mapdomain
  $PREFIX/lib/python3.8/site-packages/numpy/matrixlib/tests/test_interaction.py:36: PendingDeprecationWarning: the matrix subclass is not the recommended way to represent matrices or deal with linear algebra (see https://docs.scipy.org/doc/numpy/user/numpy-for-matlab-users.html). Please adjust your code to use regular ndarray.
    x = np.matrix([dom1, dom1])

matrixlib/tests/test_interaction.py::test_sort_matrix_none
  $PREFIX/lib/python3.8/site-packages/numpy/matrixlib/tests/test_interaction.py:43: PendingDeprecationWarning: the matrix subclass is not the recommended way to represent matrices or deal with linear algebra (see https://docs.scipy.org/doc/numpy/user/numpy-for-matlab-users.html). Please adjust your code to use regular ndarray.
    a = np.matrix([[2, 1, 0]])

matrixlib/tests/test_interaction.py::test_sort_matrix_none
  $PREFIX/lib/python3.8/site-packages/numpy/matrixlib/tests/test_interaction.py:45: PendingDeprecationWarning: the matrix subclass is not the recommended way to represent matrices or deal with linear algebra (see https://docs.scipy.org/doc/numpy/user/numpy-for-matlab-users.html). Please adjust your code to use regular ndarray.
    expected = np.matrix([[0, 1, 2]])

matrixlib/tests/test_interaction.py::test_partition_matrix_none
  $PREFIX/lib/python3.8/site-packages/numpy/matrixlib/tests/test_interaction.py:53: PendingDeprecationWarning: the matrix subclass is not the recommended way to represent matrices or deal with linear algebra (see https://docs.scipy.org/doc/numpy/user/numpy-for-matlab-users.html). Please adjust your code to use regular ndarray.
    a = np.matrix([[2, 1, 0]])

matrixlib/tests/test_interaction.py::test_partition_matrix_none
  $PREFIX/lib/python3.8/site-packages/numpy/matrixlib/tests/test_interaction.py:55: PendingDeprecationWarning: the matrix subclass is not the recommended way to represent matrices or deal with linear algebra (see https://docs.scipy.org/doc/numpy/user/numpy-for-matlab-users.html). Please adjust your code to use regular ndarray.
    expected = np.matrix([[0, 1, 2]])

matrixlib/tests/test_interaction.py::test_dot_scalar_and_matrix_of_objects
  $PREFIX/lib/python3.8/site-packages/numpy/matrixlib/tests/test_interaction.py:63: PendingDeprecationWarning: the matrix subclass is not the recommended way to represent matrices or deal with linear algebra (see https://docs.scipy.org/doc/numpy/user/numpy-for-matlab-users.html). Please adjust your code to use regular ndarray.
    arr = np.matrix([1, 2], dtype=object)

matrixlib/tests/test_interaction.py::test_dot_scalar_and_matrix_of_objects
  $PREFIX/lib/python3.8/site-packages/numpy/matrixlib/tests/test_interaction.py:64: PendingDeprecationWarning: the matrix subclass is not the recommended way to represent matrices or deal with linear algebra (see https://docs.scipy.org/doc/numpy/user/numpy-for-matlab-users.html). Please adjust your code to use regular ndarray.
    desired = np.matrix([[3, 6]], dtype=object)

matrixlib/tests/test_interaction.py: 20 warnings
  $PREFIX/lib/python3.8/site-packages/numpy/matrixlib/tests/test_interaction.py:73: PendingDeprecationWarning: the matrix subclass is not the recommended way to represent matrices or deal with linear algebra (see https://docs.scipy.org/doc/numpy/user/numpy-for-matlab-users.html). Please adjust your code to use regular ndarray.
    arr = np.matrix([[1, 2], [3, 4]], dtype=dt)

matrixlib/tests/test_interaction.py: 20 warnings
  $PREFIX/lib/python3.8/site-packages/numpy/matrixlib/tests/test_interaction.py:74: PendingDeprecationWarning: the matrix subclass is not the recommended way to represent matrices or deal with linear algebra (see https://docs.scipy.org/doc/numpy/user/numpy-for-matlab-users.html). Please adjust your code to use regular ndarray.
    desired = np.matrix([[3, 6], [9, 12]], dtype=dt)

matrixlib/tests/test_interaction.py::test_inner_scalar_and_matrix_of_objects
  $PREFIX/lib/python3.8/site-packages/numpy/matrixlib/tests/test_interaction.py:82: PendingDeprecationWarning: the matrix subclass is not the recommended way to represent matrices or deal with linear algebra (see https://docs.scipy.org/doc/numpy/user/numpy-for-matlab-users.html). Please adjust your code to use regular ndarray.
    arr = np.matrix([1, 2], dtype=object)

matrixlib/tests/test_interaction.py::test_inner_scalar_and_matrix_of_objects
  $PREFIX/lib/python3.8/site-packages/numpy/matrixlib/tests/test_interaction.py:83: PendingDeprecationWarning: the matrix subclass is not the recommended way to represent matrices or deal with linear algebra (see https://docs.scipy.org/doc/numpy/user/numpy-for-matlab-users.html). Please adjust your code to use regular ndarray.
    desired = np.matrix([[3, 6]], dtype=object)

matrixlib/tests/test_interaction.py::test_iter_allocate_output_subtype
  $PREFIX/lib/python3.8/site-packages/numpy/matrixlib/tests/test_interaction.py:94: PendingDeprecationWarning: the matrix subclass is not the recommended way to represent matrices or deal with linear algebra (see https://docs.scipy.org/doc/numpy/user/numpy-for-matlab-users.html). Please adjust your code to use regular ndarray.
    a = np.matrix([[1, 2], [3, 4]])

matrixlib/tests/test_interaction.py::test_array_astype
  $PREFIX/lib/python3.8/site-packages/numpy/matrixlib/tests/test_interaction.py:129: PendingDeprecationWarning: the matrix subclass is not the recommended way to represent matrices or deal with linear algebra (see https://docs.scipy.org/doc/numpy/user/numpy-for-matlab-users.html). Please adjust your code to use regular ndarray.
    a = np.matrix([[0, 1, 2], [3, 4, 5]], dtype='f4')

matrixlib/tests/test_interaction.py::test_stack
  $PREFIX/lib/python3.8/site-packages/numpy/matrixlib/tests/test_interaction.py:148: PendingDeprecationWarning: the matrix subclass is not the recommended way to represent matrices or deal with linear algebra (see https://docs.scipy.org/doc/numpy/user/numpy-for-matlab-users.html). Please adjust your code to use regular ndarray.
    m = np.matrix([[1, 2], [3, 4]])

matrixlib/tests/test_interaction.py::test_object_scalar_multiply
  $PREFIX/lib/python3.8/site-packages/numpy/matrixlib/tests/test_interaction.py:156: PendingDeprecationWarning: the matrix subclass is not the recommended way to represent matrices or deal with linear algebra (see https://docs.scipy.org/doc/numpy/user/numpy-for-matlab-users.html). Please adjust your code to use regular ndarray.
    arr = np.matrix([1, 2], dtype=object)

matrixlib/tests/test_interaction.py::test_object_scalar_multiply
  $PREFIX/lib/python3.8/site-packages/numpy/matrixlib/tests/test_interaction.py:157: PendingDeprecationWarning: the matrix subclass is not the recommended way to represent matrices or deal with linear algebra (see https://docs.scipy.org/doc/numpy/user/numpy-for-matlab-users.html). Please adjust your code to use regular ndarray.
    desired = np.matrix([[3, 6]], dtype=object)

matrixlib/tests/test_interaction.py::test_nanfunctions_matrices
  $PREFIX/lib/python3.8/site-packages/numpy/matrixlib/tests/test_interaction.py:166: PendingDeprecationWarning: the matrix subclass is not the recommended way to represent matrices or deal with linear algebra (see https://docs.scipy.org/doc/numpy/user/numpy-for-matlab-users.html). Please adjust your code to use regular ndarray.
    mat = np.matrix(np.eye(3))

matrixlib/tests/test_interaction.py::test_nanfunctions_matrices_general
  $PREFIX/lib/python3.8/site-packages/numpy/matrixlib/tests/test_interaction.py:207: PendingDeprecationWarning: the matrix subclass is not the recommended way to represent matrices or deal with linear algebra (see https://docs.scipy.org/doc/numpy/user/numpy-for-matlab-users.html). Please adjust your code to use regular ndarray.
    mat = np.matrix(np.eye(3))

matrixlib/tests/test_interaction.py::test_average_matrix
  $PREFIX/lib/python3.8/site-packages/numpy/matrixlib/tests/test_interaction.py:233: PendingDeprecationWarning: the matrix subclass is not the recommended way to represent matrices or deal with linear algebra (see https://docs.scipy.org/doc/numpy/user/numpy-for-matlab-users.html). Please adjust your code to use regular ndarray.
    y = np.matrix(np.random.rand(5, 5))

matrixlib/tests/test_interaction.py::test_average_matrix
  $PREFIX/lib/python3.8/site-packages/numpy/matrixlib/tests/test_interaction.py:236: PendingDeprecationWarning: the matrix subclass is not the recommended way to represent matrices or deal with linear algebra (see https://docs.scipy.org/doc/numpy/user/numpy-for-matlab-users.html). Please adjust your code to use regular ndarray.
    a = np.matrix([[1, 2], [3, 4]])

matrixlib/tests/test_interaction.py::test_average_matrix
  $PREFIX/lib/python3.8/site-packages/numpy/matrixlib/tests/test_interaction.py:237: PendingDeprecationWarning: the matrix subclass is not the recommended way to represent matrices or deal with linear algebra (see https://docs.scipy.org/doc/numpy/user/numpy-for-matlab-users.html). Please adjust your code to use regular ndarray.
    w = np.matrix([[1, 2], [3, 4]])

matrixlib/tests/test_interaction.py::test_trapz_matrix
  $PREFIX/lib/python3.8/site-packages/numpy/matrixlib/tests/test_interaction.py:250: PendingDeprecationWarning: the matrix subclass is not the recommended way to represent matrices or deal with linear algebra (see https://docs.scipy.org/doc/numpy/user/numpy-for-matlab-users.html). Please adjust your code to use regular ndarray.
    mx = np.matrix(x)

matrixlib/tests/test_interaction.py::test_trapz_matrix
  $PREFIX/lib/python3.8/site-packages/numpy/matrixlib/tests/test_interaction.py:251: PendingDeprecationWarning: the matrix subclass is not the recommended way to represent matrices or deal with linear algebra (see https://docs.scipy.org/doc/numpy/user/numpy-for-matlab-users.html). Please adjust your code to use regular ndarray.
    my = np.matrix(y)

matrixlib/tests/test_interaction.py::test_ediff1d_matrix
  $PREFIX/lib/python3.8/site-packages/numpy/matrixlib/tests/test_interaction.py:258: PendingDeprecationWarning: the matrix subclass is not the recommended way to represent matrices or deal with linear algebra (see https://docs.scipy.org/doc/numpy/user/numpy-for-matlab-users.html). Please adjust your code to use regular ndarray.
    assert(isinstance(np.ediff1d(np.matrix(1)), np.matrix))

matrixlib/tests/test_interaction.py::test_ediff1d_matrix
  $PREFIX/lib/python3.8/site-packages/numpy/matrixlib/tests/test_interaction.py:259: PendingDeprecationWarning: the matrix subclass is not the recommended way to represent matrices or deal with linear algebra (see https://docs.scipy.org/doc/numpy/user/numpy-for-matlab-users.html). Please adjust your code to use regular ndarray.
    assert(isinstance(np.ediff1d(np.matrix(1), to_begin=1), np.matrix))

matrixlib/tests/test_interaction.py::test_apply_along_axis_matrix
  $PREFIX/lib/python3.8/site-packages/numpy/matrixlib/tests/test_interaction.py:269: PendingDeprecationWarning: the matrix subclass is not the recommended way to represent matrices or deal with linear algebra (see https://docs.scipy.org/doc/numpy/user/numpy-for-matlab-users.html). Please adjust your code to use regular ndarray.
    m = np.matrix([[0, 1], [2, 3]])

matrixlib/tests/test_interaction.py::test_apply_along_axis_matrix
  $PREFIX/lib/python3.8/site-packages/numpy/matrixlib/tests/test_interaction.py:270: PendingDeprecationWarning: the matrix subclass is not the recommended way to represent matrices or deal with linear algebra (see https://docs.scipy.org/doc/numpy/user/numpy-for-matlab-users.html). Please adjust your code to use regular ndarray.
    expected = np.matrix([[0, 2], [4, 6]])

matrixlib/tests/test_interaction.py::TestConcatenatorMatrix::test_matrix
matrixlib/tests/test_interaction.py::TestConcatenatorMatrix::test_matrix
matrixlib/tests/test_interaction.py::TestConcatenatorMatrix::test_matrix_scalar
matrixlib/tests/test_masked_matrix.py::TestConcatenator::test_matrix
  $PREFIX/lib/python3.8/site-packages/numpy/lib/index_tricks.py:410: PendingDeprecationWarning: the matrix subclass is not the recommended way to represent matrices or deal with linear algebra (see https://docs.scipy.org/doc/numpy/user/numpy-for-matlab-users.html). Please adjust your code to use regular ndarray.
    res = self.makemat(res)

matrixlib/tests/test_interaction.py::test_array_equal_error_message_matrix
  $PREFIX/lib/python3.8/site-packages/numpy/matrixlib/tests/test_interaction.py:328: PendingDeprecationWarning: the matrix subclass is not the recommended way to represent matrices or deal with linear algebra (see https://docs.scipy.org/doc/numpy/user/numpy-for-matlab-users.html). Please adjust your code to use regular ndarray.
    assert_equal(np.array([1, 2]), np.matrix([1, 2]))

matrixlib/tests/test_interaction.py::test_array_almost_equal_matrix
  $PREFIX/lib/python3.8/site-packages/numpy/matrixlib/tests/test_interaction.py:344: PendingDeprecationWarning: the matrix subclass is not the recommended way to represent matrices or deal with linear algebra (see https://docs.scipy.org/doc/numpy/user/numpy-for-matlab-users.html). Please adjust your code to use regular ndarray.
    m1 = np.matrix([[1., 2.]])

matrixlib/tests/test_interaction.py::test_array_almost_equal_matrix
  $PREFIX/lib/python3.8/site-packages/numpy/matrixlib/tests/test_interaction.py:345: PendingDeprecationWarning: the matrix subclass is not the recommended way to represent matrices or deal with linear algebra (see https://docs.scipy.org/doc/numpy/user/numpy-for-matlab-users.html). Please adjust your code to use regular ndarray.
    m2 = np.matrix([[1., np.nan]])

matrixlib/tests/test_interaction.py::test_array_almost_equal_matrix
  $PREFIX/lib/python3.8/site-packages/numpy/matrixlib/tests/test_interaction.py:346: PendingDeprecationWarning: the matrix subclass is not the recommended way to represent matrices or deal with linear algebra (see https://docs.scipy.org/doc/numpy/user/numpy-for-matlab-users.html). Please adjust your code to use regular ndarray.
    m3 = np.matrix([[1., -np.inf]])

matrixlib/tests/test_interaction.py::test_array_almost_equal_matrix
  $PREFIX/lib/python3.8/site-packages/numpy/matrixlib/tests/test_interaction.py:347: PendingDeprecationWarning: the matrix subclass is not the recommended way to represent matrices or deal with linear algebra (see https://docs.scipy.org/doc/numpy/user/numpy-for-matlab-users.html). Please adjust your code to use regular ndarray.
    m4 = np.matrix([[np.nan, np.inf]])

matrixlib/tests/test_interaction.py::test_array_almost_equal_matrix
  $PREFIX/lib/python3.8/site-packages/numpy/matrixlib/tests/test_interaction.py:348: PendingDeprecationWarning: the matrix subclass is not the recommended way to represent matrices or deal with linear algebra (see https://docs.scipy.org/doc/numpy/user/numpy-for-matlab-users.html). Please adjust your code to use regular ndarray.
    m5 = np.matrix([[1., 2.], [np.nan, np.inf]])

matrixlib/tests/test_masked_matrix.py::TestMaskedMatrix::test_matrix_indexing
  $PREFIX/lib/python3.8/site-packages/numpy/matrixlib/tests/test_masked_matrix.py:33: PendingDeprecationWarning: the matrix subclass is not the recommended way to represent matrices or deal with linear algebra (see https://docs.scipy.org/doc/numpy/user/numpy-for-matlab-users.html). Please adjust your code to use regular ndarray.
    x1 = np.matrix([[1, 2, 3], [4, 3, 2]])

matrixlib/tests/test_masked_matrix.py::TestMaskedMatrix::test_matrix_indexing
  $PREFIX/lib/python3.8/site-packages/numpy/matrixlib/tests/test_masked_matrix.py:68: PendingDeprecationWarning: the matrix subclass is not the recommended way to represent matrices or deal with linear algebra (see https://docs.scipy.org/doc/numpy/user/numpy-for-matlab-users.html). Please adjust your code to use regular ndarray.
    x1 = np.matrix(np.arange(5) * 1.0)

matrixlib/tests/test_masked_matrix.py::TestMaskedMatrix::test_pickling_subbaseclass
  $PREFIX/lib/python3.8/site-packages/numpy/matrixlib/tests/test_masked_matrix.py:77: PendingDeprecationWarning: the matrix subclass is not the recommended way to represent matrices or deal with linear algebra (see https://docs.scipy.org/doc/numpy/user/numpy-for-matlab-users.html). Please adjust your code to use regular ndarray.
    a = masked_array(np.matrix(list(range(10))), mask=[1, 0, 1, 0, 0] * 2)

matrixlib/tests/test_masked_matrix.py::TestMaskedMatrix::test_count_mean_with_matrix
  $PREFIX/lib/python3.8/site-packages/numpy/matrixlib/tests/test_masked_matrix.py:85: PendingDeprecationWarning: the matrix subclass is not the recommended way to represent matrices or deal with linear algebra (see https://docs.scipy.org/doc/numpy/user/numpy-for-matlab-users.html). Please adjust your code to use regular ndarray.
    m = masked_array(np.matrix([[1, 2], [3, 4]]), mask=np.zeros((2, 2)))

matrixlib/tests/test_masked_matrix.py::TestMaskedMatrix::test_flat
  $PREFIX/lib/python3.8/site-packages/numpy/matrixlib/tests/test_masked_matrix.py:97: PendingDeprecationWarning: the matrix subclass is not the recommended way to represent matrices or deal with linear algebra (see https://docs.scipy.org/doc/numpy/user/numpy-for-matlab-users.html). Please adjust your code to use regular ndarray.
    test = masked_array(np.matrix([[1, 2, 3]]), mask=[0, 0, 1])

matrixlib/tests/test_masked_matrix.py::TestMaskedMatrix::test_flat
  $PREFIX/lib/python3.8/site-packages/numpy/matrixlib/tests/test_masked_matrix.py:102: PendingDeprecationWarning: the matrix subclass is not the recommended way to represent matrices or deal with linear algebra (see https://docs.scipy.org/doc/numpy/user/numpy-for-matlab-users.html). Please adjust your code to use regular ndarray.
    test = masked_array(np.matrix([[1, 2, 3]]), mask=[0, 0, 1])

matrixlib/tests/test_masked_matrix.py::TestMaskedMatrix::test_flat
  $PREFIX/lib/python3.8/site-packages/numpy/matrixlib/tests/test_masked_matrix.py:104: PendingDeprecationWarning: the matrix subclass is not the recommended way to represent matrices or deal with linear algebra (see https://docs.scipy.org/doc/numpy/user/numpy-for-matlab-users.html). Please adjust your code to use regular ndarray.
    control = masked_array(np.matrix([[3, 2, 1]]), mask=[1, 0, 0])

matrixlib/tests/test_masked_matrix.py::TestMaskedMatrix::test_flat
  $PREFIX/lib/python3.8/site-packages/numpy/matrixlib/tests/test_masked_matrix.py:107: PendingDeprecationWarning: the matrix subclass is not the recommended way to represent matrices or deal with linear algebra (see https://docs.scipy.org/doc/numpy/user/numpy-for-matlab-users.html). Please adjust your code to use regular ndarray.
    test = masked_array(np.matrix([[1, 2, 3]]), mask=[0, 0, 1])

matrixlib/tests/test_masked_matrix.py::TestMaskedMatrix::test_flat
  $PREFIX/lib/python3.8/site-packages/numpy/matrixlib/tests/test_masked_matrix.py:113: PendingDeprecationWarning: the matrix subclass is not the recommended way to represent matrices or deal with linear algebra (see https://docs.scipy.org/doc/numpy/user/numpy-for-matlab-users.html). Please adjust your code to use regular ndarray.
    a = masked_array(np.matrix(np.eye(2)), mask=0)

matrixlib/tests/test_masked_matrix.py::TestMaskedMatrix::test_allany_onmatrices
  $PREFIX/lib/python3.8/site-packages/numpy/matrixlib/tests/test_masked_matrix.py:123: PendingDeprecationWarning: the matrix subclass is not the recommended way to represent matrices or deal with linear algebra (see https://docs.scipy.org/doc/numpy/user/numpy-for-matlab-users.html). Please adjust your code to use regular ndarray.
    X = np.matrix(x)

matrixlib/tests/test_masked_matrix.py::TestMaskedMatrix::test_allany_onmatrices
  $PREFIX/lib/python3.8/site-packages/numpy/matrixlib/tests/test_masked_matrix.py:133: PendingDeprecationWarning: the matrix subclass is not the recommended way to represent matrices or deal with linear algebra (see https://docs.scipy.org/doc/numpy/user/numpy-for-matlab-users.html). Please adjust your code to use regular ndarray.
    assert_equal(mXbig.all(0), np.matrix([False, False, True]))

matrixlib/tests/test_masked_matrix.py::TestMaskedMatrix::test_allany_onmatrices
  $PREFIX/lib/python3.8/site-packages/numpy/matrixlib/tests/test_masked_matrix.py:134: PendingDeprecationWarning: the matrix subclass is not the recommended way to represent matrices or deal with linear algebra (see https://docs.scipy.org/doc/numpy/user/numpy-for-matlab-users.html). Please adjust your code to use regular ndarray.
    assert_equal(mXbig.all(1), np.matrix([False, False, True]).T)

matrixlib/tests/test_masked_matrix.py::TestMaskedMatrix::test_allany_onmatrices
  $PREFIX/lib/python3.8/site-packages/numpy/matrixlib/tests/test_masked_matrix.py:135: PendingDeprecationWarning: the matrix subclass is not the reco
8000
mmended way to represent matrices or deal with linear algebra (see https://docs.scipy.org/doc/numpy/user/numpy-for-matlab-users.html). Please adjust your code to use regular ndarray.
    assert_equal(mXbig.any(0), np.matrix([False, False, True]))

matrixlib/tests/test_masked_matrix.py::TestMaskedMatrix::test_allany_onmatrices
  $PREFIX/lib/python3.8/site-packages/numpy/matrixlib/tests/test_masked_matrix.py:136: PendingDeprecationWarning: the matrix subclass is not the recommended way to represent matrices or deal with linear algebra (see https://docs.scipy.org/doc/numpy/user/numpy-for-matlab-users.html). Please adjust your code to use regular ndarray.
    assert_equal(mXbig.any(1), np.matrix([True, True, True]).T)

matrixlib/tests/test_masked_matrix.py::TestMaskedMatrix::test_allany_onmatrices
  $PREFIX/lib/python3.8/site-packages/numpy/matrixlib/tests/test_masked_matrix.py:140: PendingDeprecationWarning: the matrix subclass is not the recommended way to represent matrices or deal with linear algebra (see https://docs.scipy.org/doc/numpy/user/numpy-for-matlab-users.html). Please adjust your code to use regular ndarray.
    assert_equal(mXsmall.all(0), np.matrix([True, True, False]))

matrixlib/tests/test_masked_matrix.py::TestMaskedMatrix::test_allany_onmatrices
  $PREFIX/lib/python3.8/site-packages/numpy/matrixlib/tests/test_masked_matrix.py:141: PendingDeprecationWarning: the matrix subclass is not the recommended way to represent matrices or deal with linear algebra (see https://docs.scipy.org/doc/numpy/user/numpy-for-matlab-users.html). Please adjust your code to use regular ndarray.
    assert_equal(mXsmall.all(1), np.matrix([False, False, False]).T)

matrixlib/tests/test_masked_matrix.py::TestMaskedMatrix::test_allany_onmatrices
  $PREFIX/lib/python3.8/site-packages/numpy/matrixlib/tests/test_masked_matrix.py:142: PendingDeprecationWarning: the matrix subclass is not the recommended way to represent matrices or deal with linear algebra (see https://docs.scipy.org/doc/numpy/user/numpy-for-matlab-users.html). Please adjust your code to use regular ndarray.
    assert_equal(mXsmall.any(0), np.matrix([True, True, False]))

matrixlib/tests/test_masked_matrix.py::TestMaskedMatrix::test_allany_onmatrices
  $PREFIX/lib/python3.8/site-packages/numpy/matrixlib/tests/test_masked_matrix.py:143: PendingDeprecationWarning: the matrix subclass is not the recommended way to represent matrices or deal with linear algebra (see https://docs.scipy.org/doc/numpy/user/numpy-for-matlab-users.html). Please adjust your code to use regular ndarray.
    assert_equal(mXsmall.any(1), np.matrix([True, True, False]).T)

matrixlib/tests/test_masked_matrix.py::TestMaskedMatrix::test_compressed
  $PREFIX/lib/python3.8/site-packages/numpy/matrixlib/tests/test_masked_matrix.py:146: PendingDeprecationWarning: the matrix subclass is not the recommended way to represent matrices or deal with linear algebra (see https://docs.scipy.org/doc/numpy/user/numpy-for-matlab-users.html). Please adjust your code to use regular ndarray.
    a = masked_array(np.matrix([1, 2, 3, 4]), mask=[0, 0, 0, 0])

matrixlib/tests/test_masked_matrix.py::TestMaskedMatrix::test_ravel
  $PREFIX/lib/python3.8/site-packages/numpy/matrixlib/tests/test_masked_matrix.py:155: PendingDeprecationWarning: the matrix subclass is not the recommended way to represent matrices or deal with linear algebra (see https://docs.scipy.org/doc/numpy/user/numpy-for-matlab-users.html). Please adjust your code to use regular ndarray.
    a = masked_array(np.matrix([1, 2, 3, 4, 5]), mask=[[0, 1, 0, 0, 0]])

matrixlib/tests/test_masked_matrix.py::TestSubclassing::test_maskedarray_subclassing
matrixlib/tests/test_masked_matrix.py::TestSubclassing::test_masked_unary_operations
matrixlib/tests/test_masked_matrix.py::TestSubclassing::test_masked_binary_operations
matrixlib/tests/test_masked_matrix.py::TestSubclassing::test_masked_binary_operations2
  $PREFIX/lib/python3.8/site-packages/numpy/matrixlib/tests/test_masked_matrix.py:14: PendingDeprecationWarning: the matrix subclass is not the recommended way to represent matrices or deal with linear algebra (see https://docs.scipy.org/doc/numpy/user/numpy-for-matlab-users.html). Please adjust your code to use regular ndarray.
    mat = np.matrix(data)

matrixlib/tests/test_masked_matrix.py::TestConcatenator::test_matrix
  $PREFIX/lib/python3.8/site-packages/numpy/ma/extras.py:1491: PendingDeprecationWarning: the matrix subclass is not the recommended way to represent matrices or deal with linear algebra (see https://docs.scipy.org/doc/numpy/user/numpy-for-matlab-users.html). Please adjust your code to use regular ndarray.
    data = super(MAxisConcatenator, cls).makemat(arr.data, copy=False)

matrixlib/tests/test_matrix_linalg.py::TestNormDoubleMatrix::test_matrix_empty
matrixlib/tests/test_matrix_linalg.py::TestNormSingleMatrix::test_matrix_empty
matrixlib/tests/test_matrix_linalg.py::TestNormInt64Matrix::test_matrix_empty
  $PREFIX/lib/python3.8/site-packages/numpy/linalg/tests/test_linalg.py:1389: PendingDeprecationWarning: the matrix subclass is not the recommended way to represent matrices or deal with linear algebra (see https://docs.scipy.org/doc/numpy/user/numpy-for-matlab-users.html). Please adjust your code to use regular ndarray.
    assert_equal(norm(self.array([[]], dtype=self.dt)), 0.0)

matrixlib/tests/test_matrix_linalg.py::TestNormDoubleMatrix::test_matrix_return_type
matrixlib/tests/test_matrix_linalg.py::TestNormSingleMatrix::test_matrix_return_type
matrixlib/tests/test_matrix_linalg.py::TestNormInt64Matrix::test_matrix_return_type
  $PREFIX/lib/python3.8/site-packages/numpy/linalg/tests/test_linalg.py:1392: PendingDeprecationWarning: the matrix subclass is not the recommended way to represent matrices or deal with linear algebra (see https://docs.scipy.org/doc/numpy/user/numpy-for-matlab-users.html). Please adjust your code to use regular ndarray.
    a = self.array([[1, 0, 1], [0, 1, 1]])

matrixlib/tests/test_matrix_linalg.py::TestNormDoubleMatrix::test_matrix_2x2
matrixlib/tests/test_matrix_linalg.py::TestNormSingleMatrix::test_matrix_2x2
matrixlib/tests/test_matrix_linalg.py::TestNormInt64Matrix::test_matrix_2x2
  $PREFIX/lib/python3.8/site-packages/numpy/linalg/tests/test_linalg.py:1443: PendingDeprecationWarning: the matrix subclass is not the recommended way to represent matrices or deal with linear algebra (see https://docs.scipy.org/doc/numpy/user/numpy-for-matlab-users.html). Please adjust your code to use regular ndarray.
    A = self.array([[1, 3], [5, 7]], dtype=self.dt)

matrixlib/tests/test_matrix_linalg.py::TestNormDoubleMatrix::test_matrix_3x3
matrixlib/tests/test_matrix_linalg.py::TestNormSingleMatrix::test_matrix_3x3
matrixlib/tests/test_matrix_linalg.py::TestNormInt64Matrix::test_matrix_3x3
  $PREFIX/lib/python3.8/site-packages/numpy/linalg/tests/test_linalg.py:1464: PendingDeprecationWarning: the matrix subclass is not the recommended way to represent matrices or deal with linear algebra (see https://docs.scipy.org/doc/numpy/user/numpy-for-matlab-users.html). Please adjust your code to use regular ndarray.
    self.array([[1, 2, 3], [6, 0, 5], [3, 2, 1]], dtype=self.dt)

matrixlib/tests/test_matrix_linalg.py::TestNormDoubleMatrix::test_bad_args
matrixlib/tests/test_matrix_linalg.py::TestNormSingleMatrix::test_bad_args
matrixlib/tests/test_matrix_linalg.py::TestNormInt64Matrix::test_bad_args
  $PREFIX/lib/python3.8/site-packages/numpy/linalg/tests/test_linalg.py:1478: PendingDeprecationWarning: the matrix subclass is not the recommended way to represent matrices or deal with linear algebra (see https://docs.scipy.org/doc/numpy/user/numpy-for-matlab-users.html). Please adjust your code to use regular ndarray.
    A = self.array([[1, 2, 3], [4, 5, 6]], dtype=self.dt)

matrixlib/tests/test_matrix_linalg.py::TestQRMatrix::test_mode_raw
  $PREFIX/lib/python3.8/site-packages/numpy/linalg/tests/test_linalg.py:1678: PendingDeprecationWarning: the matrix subclass is not the recommended way to represent matrices or deal with linear algebra (see https://docs.scipy.org/doc/numpy/user/numpy-for-matlab-users.html). Please adjust your code to use regular ndarray.
    a = self.array([[1, 2], [3, 4], [5, 6]], dtype=np.double)

matrixlib/tests/test_matrix_linalg.py::TestQRMatrix::test_mode_all_but_economic
  $PREFIX/lib/python3.8/site-packages/numpy/linalg/tests/test_linalg.py:1694: PendingDeprecationWarning: the matrix subclass is not the recommended way to represent matrices or deal with linear algebra (see https://docs.scipy.org/doc/numpy/user/numpy-for-matlab-users.html). Please adjust your code to use regular ndarray.
    a = self.array([[1, 2], [3, 4]])

matrixlib/tests/test_matrix_linalg.py::TestQRMatrix::test_mode_all_but_economic
  $PREFIX/lib/python3.8/site-packages/numpy/linalg/tests/test_linalg.py:1695: PendingDeprecationWarning: the matrix subclass is not the recommended way to represent matrices or deal with linear algebra (see https://docs.scipy.org/doc/numpy/user/numpy-for-matlab-users.html). Please adjust your code to use regular ndarray.
    b = self.array([[1, 2], [3, 4], [5, 6]])

matrixlib/tests/test_numeric.py::TestDot::test_matscalar
  $PREFIX/lib/python3.8/site-packages/numpy/matrixlib/tests/test_numeric.py:6: PendingDeprecationWarning: the matrix subclass is not the recommended way to represent matrices or deal with linear algebra (see https://docs.scipy.org/doc/numpy/user/numpy-for-matlab-users.html). Please adjust your code to use regular ndarray.
    b1 = np.matrix(np.ones((3, 3), dtype=complex))

matrixlib/tests/test_numeric.py::test_diagonal
  $PREFIX/lib/python3.8/site-packages/numpy/matrixlib/tests/test_numeric.py:11: PendingDeprecationWarning: the matrix subclass is not the recommended way to represent matrices or deal with linear algebra (see https://docs.scipy.org/doc/numpy/user/numpy-for-matlab-users.html). Please adjust your code to use regular ndarray.
    b1 = np.matrix([[1,2],[3,4]])

matrixlib/tests/test_numeric.py::test_diagonal
  $PREFIX/lib/python3.8/site-packages/numpy/matrixlib/tests/test_numeric.py:12: PendingDeprecationWarning: the matrix subclass is not the recommended way to represent matrices or deal with linear algebra (see https://docs.scipy.org/doc/numpy/user/numpy-for-matlab-users.html). Please adjust your code to use regular ndarray.
    diag_b1 = np.matrix([[1, 4]])

matrixlib/tests/test_regression.py::TestRegression::test_kron_matrix
  $PREFIX/lib/python3.8/site-packages/numpy/matrixlib/tests/test_regression.py:8: PendingDeprecationWarning: the matrix subclass is not the recommended way to represent matrices or deal with linear algebra (see https://docs.scipy.org/doc/numpy/user/numpy-for-matlab-users.html). Please adjust your code to use regular ndarray.
    x = np.matrix('[1 0; 1 0]')

matrixlib/tests/test_regression.py::TestRegression::test_matrix_properties
  $PREFIX/lib/python3.8/site-packages/numpy/matrixlib/tests/test_regression.py:13: PendingDeprecationWarning: the matrix subclass is not the recommended way to represent matrices or deal with linear algebra (see https://docs.scipy.org/doc/numpy/user/numpy-for-matlab-users.html). Please adjust your code to use regular ndarray.
    a = np.matrix([1.0], dtype=float)

matrixlib/tests/test_regression.py::TestRegression::test_matrix_properties
  $PREFIX/lib/python3.8/site-packages/numpy/matrixlib/tests/test_regression.py:16: PendingDeprecationWarning: the matrix subclass is not the recommended way to represent matrices or deal with linear algebra (see https://docs.scipy.org/doc/numpy/user/numpy-for-matlab-users.html). Please adjust your code to use regular ndarray.
    c, d = np.matrix([0.0]).nonzero()

tests/test_matlib.py::test_ones
  $PREFIX/lib/python3.8/site-packages/numpy/tests/test_matlib.py:12: PendingDeprecationWarning: the matrix subclass is not the recommended way to represent matrices or deal with linear algebra (see https://docs.scipy.org/doc/numpy/user/numpy-for-matlab-users.html). Please adjust your code to use regular ndarray.
    np.matrix([[ 1.,  1.,  1.],

tests/test_matlib.py::test_ones
  $PREFIX/lib/python3.8/site-packages/numpy/tests/test_matlib.py:15: PendingDeprecationWarning: the matrix subclass is not the recommended way to represent matrices or deal with linear algebra (see https://docs.scipy.org/doc/numpy/user/numpy-for-matlab-users.html). Please adjust your code to use regular ndarray.
    assert_array_equal(numpy.matlib.ones(2), np.matrix([[ 1.,  1.]]))

tests/test_matlib.py::test_zeros
  $PREFIX/lib/python3.8/site-packages/numpy/tests/test_matlib.py:19: PendingDeprecationWarning: the matrix subclass is not the recommended way to represent matrices or deal with linear algebra (see https://docs.scipy.org/doc/numpy/user/numpy-for-matlab-users.html). Please adjust your code to use regular ndarray.
    np.matrix([[ 0.,  0.,  0.],

tests/test_matlib.py::test_zeros
  $PREFIX/lib/python3.8/site-packages/numpy/tests/test_matlib.py:22: PendingDeprecationWarning: the matrix subclass is not the recommended way to represent matrices or deal with linear algebra (see https://docs.scipy.org/doc/numpy/user/numpy-for-matlab-users.html). Please adjust your code to use regular ndarray.
    assert_array_equal(numpy.matlib.zeros(2), np.matrix([[ 0.,  0.]]))

tests/test_matlib.py::test_identity
  $PREFIX/lib/python3.8/site-packages/numpy/tests/test_matlib.py:26: PendingDeprecationWarning: the matrix subclass is not the recommended way to represent matrices or deal with linear algebra (see https://docs.scipy.org/doc/numpy/user/numpy-for-matlab-users.html). Please adjust your code to use regular ndarray.
    assert_array_equal(x, np.matrix([[1, 0], [0, 1]]))

tests/test_matlib.py::test_eye
  $PREFIX/lib/python3.8/site-packages/numpy/tests/test_matlib.py:30: PendingDeprecationWarning: the matrix subclass is not the recommended way to represent matrices or deal with linear algebra (see https://docs.scipy.org/doc/numpy/user/numpy-for-matlab-users.html). Please adjust your code to use regular ndarray.
    assert_array_equal(xc, np.matrix([[ 0,  1,  0],

tests/test_matlib.py::test_eye
  $PREFIX/lib/python3.8/site-packages/numpy/tests/test_matlib.py:37: PendingDeprecationWarning: the matrix subclass is not the recommended way to represent matrices or deal with linear algebra (see https://docs.scipy.org/doc/numpy/user/numpy-for-matlab-users.html). Please adjust your code to use regular ndarray.
    assert_array_equal(xf, np.matrix([[ 1,  0,  0,  0],

-- Docs: https://docs.pytest.org/en/stable/warnings.html

@charris
Copy link
Member
charris commented Oct 25, 2020

@isuruf Those warnings should be suppressed. How are you testing?

@isuruf
Copy link
Contributor Author
isuruf commented Oct 25, 2020

pytest --verbose --pyargs numpy

@charris
Copy link
Member
charris commented Oct 25, 2020

Is numpy installed? The usual way to test installed numpy is python -c"import numpy; numpy.test('slow'). If you are building from source, use python runtests.py. You should also have a pytest.ini` file in the root directory.

@isuruf
Copy link
Contributor Author
isuruf commented Oct 25, 2020

Yes, numpy is installed on the macOS arm64 machine. It was built on CI on a macOS x86_64 machine.
For some platforms we need to skip some slow running tests so that we use pytest --verbose --pyargs numpy -k "not some-test-name". That's why we use pytest --verbose --pyargs numpy in conda-forge.

@erykoff, can you try python -c "import numpy; numpy.test('slow') on the DTK with a new numpy environment?

@erykoff
Copy link
erykoff commented Oct 25, 2020
>>> import numpy
>>> numpy.test('slow')
NumPy version 1.19.2
NumPy relaxed strides checking option: True
............sssssssssssssssssssssssssssssssssss......s...........................x.... [ 79%]
..............s.......                                                                 [100%]
====================================== warnings summary ======================================
../../miniforge3/envs/numpy_env4/lib/python3.9/site-packages/_pytest/config/__init__.py:1114
  /Users/erykoff/miniforge3/envs/numpy_env4/lib/python3.9/site-packages/_pytest/config/__init__.py:1114: PytestAssertRewriteWarning: Module already imported so cannot be rewritten: hypothesis
    self._mark_plugins_for_rewrite(hook)

-- Docs: https://docs.pytest.org/en/stable/warnings.html
70 passed, 37 skipped, 10956 deselected, 1 xfailed, 1 warning in [redacted]
True
>>> 

@charris
Copy link
Member
charris 8000 commented Oct 25, 2020

Ah, that did only the "slow" tests, so you need to use "full" instead. The hypothesis warning is something we need to fix, it will raise an error for newer pytest versions.

@erykoff
Copy link
erykoff commented Oct 26, 2020

These are the 3 failures:

========================================== FAILURES ==========================================
_________ TestMaskedArrayInPlaceArithmetics.test_inplace_floor_division_scalar_type __________

self = <numpy.ma.tests.test_core.TestMaskedArrayInPlaceArithmetics object at 0x11b3b1eb0>

    def test_inplace_floor_division_scalar_type(self):
        # Test of inplace division
        for t in self.othertypes:
            with warnings.catch_warnings(record=True) as w:
                warnings.filterwarnings("always")
                (x, y, xm) = (_.astype(t) for _ in self.uint8data)
                x = arange(10, dtype=t) * t(2)
                xm = arange(10, dtype=t) * t(2)
                xm[2] = masked
                x //= t(2)
                xm //= t(2)
                assert_equal(x, y)
                assert_equal(xm, y)
    
>               assert_equal(len(w), 0, "Failed on type=%s." % t)

self       = <numpy.ma.tests.test_core.TestMaskedArrayInPlaceArithmetics object at 0x11b3b1eb0>
t          = <class 'numpy.complex64'>
w          = [<warnings.WarningMessage object at 0x11b3cd220>, <warnings.WarningMessage object at 0x11b3cd250>, <warnings.WarningMessage object at 0x11b3cd280>, <warnings.WarningMessage object at 0x11b3cd2b0>]
x          = masked_array(data=[0.+0.j, 1.+0.j, 2.+0.j, 3.+0.j, 4.+0.j, 5.+0.j, 6.+0.j,
                   7.+0.j, 8.+0.j, 9.+0.j],
             mask=False,
       fill_value=(1e+20+0j),
            dtype=complex64)
xm         = masked_array(data=[0j, (1+0j), --, (3+0j), (4+0j), (5+0j), (6+0j), (7+0j),
                   (8+0j), (9+0j)],
       ...alse, False, False, False,
                   False, False],
       fill_value=(1e+20+0j),
            dtype=complex64)
y          = masked_array(data=[0.+0.j, 1.+0.j, 2.+0.j, 3.+0.j, 4.+0.j, 5.+0.j, 6.+0.j,
                   7.+0.j, 8.+0.j, 9.+0.j],
             mask=False,
       fill_value=(1e+20+0j),
            dtype=complex64)

../../miniforge3/envs/numpy_env4/lib/python3.9/site-packages/numpy/ma/tests/test_core.py:2833: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

actual = 4, desired = 0, err_msg = "Failed on type=<class 'numpy.complex64'>."

    def assert_equal(actual, desired, err_msg=''):
        """
        Asserts that two items are equal.
    
        """
        # Case #1: dictionary .....
        if isinstance(desired, dict):
            if not isinstance(actual, dict):
                raise AssertionError(repr(type(actual)))
            assert_equal(len(actual), len(desired), err_msg)
            for k, i in desired.items():
                if k not in actual:
                    raise AssertionError("%s not in %s" % (k, actual))
                assert_equal(actual[k], desired[k], 'key=%r\n%s' % (k, err_msg))
            return
        # Case #2: lists .....
        if isinstance(desired, (list, tuple)) and isinstance(actual, (list, tuple)):
            return _assert_equal_on_sequences(actual, desired, err_msg='')
        if not (isinstance(actual, ndarray) or isinstance(desired, ndarray)):
            msg = build_err_msg([actual, desired], err_msg,)
            if not desired == actual:
>               raise AssertionError(msg)
E               AssertionError: 
E               Items are not equal: Failed on type=<class 'numpy.complex64'>.
E                ACTUAL: 4
E                DESIRED: 0

actual     = 4
desired    = 0
err_msg    = "Failed on type=<class 'numpy.complex64'>."
msg        = "\nItems are not equal: Failed on type=<class 'numpy.complex64'>.\n ACTUAL: 4\n DESIRED: 0"

../../miniforge3/envs/numpy_env4/lib/python3.9/site-packages/numpy/ma/testutils.py:129: AssertionError
__________ TestMaskedArrayInPlaceArithmetics.test_inplace_floor_division_array_type __________

self = <numpy.ma.tests.test_core.TestMaskedArrayInPlaceArithmetics object at 0x11ba73160>

    def test_inplace_floor_division_array_type(self):
        # Test of inplace division
        for t in self.othertypes:
            with warnings.catch_warnings(record=True) as w:
                warnings.filterwarnings("always")
                (x, y, xm) = (_.astype(t) for _ in self.uint8data)
                m = xm.mask
                a = arange(10, dtype=t)
                a[-1] = masked
                x //= a
                xm //= a
                assert_equal(x, y // a)
                assert_equal(xm, y // a)
                assert_equal(
                    xm.mask,
                    mask_or(mask_or(m, a.mask), (a == t(0)))
                )
    
>               assert_equal(len(w), 0, "Failed on type=%s." % t)

a          = masked_array(data=[0j, (1+0j), (2+0j), (3+0j), (4+0j), (5+0j), (6+0j),
                   (7+0j), (8+0j), --],
       ...alse, False, False, False,
                   False,  True],
       fill_value=(1e+20+0j),
            dtype=complex64)
m          = array([ True, False,  True, False, False, False, False, False, False,
        True])
self       = <numpy.ma.tests.test_core.TestMaskedArrayInPlaceArithmetics object at 0x11ba73160>
t          = <class 'numpy.complex64'>
w          = [<warnings.WarningMessage object at 0x11ba73cd0>, <warnings.WarningMessage object at 0x11ba73b50>, <warnings.WarningMessage object at 0x11ba73bb0>, <warnings.WarningMessage object at 0x11ba73b80>]
x          = masked_array(data=[--, (1+0j), (1+0j), (1+0j), (1+0j), (1+0j), (1+0j),
                   (1+0j), (1+0j), --],
       ...alse, False, False, False,
                   False,  True],
       fill_value=(1e+20+0j),
            dtype=complex64)
xm         = masked_array(data=[--, (1+0j), --, (1+0j), (1+0j), (1+0j), (1+0j), (1+0j),
                   (1+0j), --],
           ...alse, False, False, False,
                   False,  True],
       fill_value=(1e+20+0j),
            dtype=complex64)
y          = masked_array(data=[0.+0.j, 1.+0.j, 2.+0.j, 3.+0.j, 4.+0.j, 5.+0.j, 6.+0.j,
                   7.+0.j, 8.+0.j, 9.+0.j],
             mask=False,
       fill_value=(1e+20+0j),
            dtype=complex64)

../../miniforge3/envs/numpy_env4/lib/python3.9/site-packages/numpy/ma/tests/test_core.py:2853: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

actual = 4, desired = 0, err_msg = "Failed on type=<class 'numpy.complex64'>."

    def assert_equal(actual, desired, err_msg=''):
        """
        Asserts that two items are equal.
    
        """
        # Case #1: dictionary .....
        if isinstance(desired, dict):
            if not isinstance(actual, dict):
                raise AssertionError(repr(type(actual)))
            assert_equal(len(actual), len(desired), err_msg)
            for k, i in desired.items():
                if k not in actual:
                    raise AssertionError("%s not in %s" % (k, actual))
                assert_equal(actual[k], desired[k], 'key=%r\n%s' % (k, err_msg))
            return
        # Case #2: lists .....
        if isinstance(desired, (list, tuple)) and isinstance(actual, (list, tuple)):
            return _assert_equal_on_sequences(actual, desired, err_msg='')
        if not (isinstance(actual, ndarray) or isinstance(desired, ndarray)):
            msg = build_err_msg([actual, desired], err_msg,)
            if not desired == actual:
>               raise AssertionError(msg)
E               AssertionError: 
E               Items are not equal: Failed on type=<class 'numpy.complex64'>.
E                ACTUAL: 4
E                DESIRED: 0

actual     = 4
desired    = 0
err_msg    = "Failed on type=<class 'numpy.complex64'>."
msg        = "\nItems are not equal: Failed on type=<class 'numpy.complex64'>.\n ACTUAL: 4\n DESIRED: 0"

../../miniforge3/envs/numpy_env4/lib/python3.9/site-packages/numpy/ma/testutils.py:129: AssertionError
____________________________________ test_api_importable _____________________________________

    def test_api_importable():
        """
        Check that all submodules listed higher up in this file can be imported
    
        Note that if a PRIVATE_BUT_PRESENT_MODULES entry goes missing, it may
        simply need to be removed from the list (deprecation may or may not be
        needed - apply common sense).
        """
        def check_importable(module_name):
            try:
                importlib.import_module(module_name)
            except (ImportError, AttributeError):
                return False
    
            return True
    
        module_names = []
        for module_name in PUBLIC_MODULES:
            if not check_importable(module_name):
                module_names.append(module_name)
    
        if module_names:
            raise AssertionError("Modules in the public API that cannot be "
                                 "imported: {}".format(module_names))
    
        for module_name in PUBLIC_ALIASED_MODULES:
            try:
                eval(module_name)
            except AttributeError:
                module_names.append(module_name)
    
        if module_names:
            raise AssertionError("Modules in the public API that were not "
                                 "found: {}".format(module_names))
    
        with warnings.catch_warnings(record=True) as w:
            warnings.filterwarnings('always', category=DeprecationWarning)
            warnings.filterwarnings('always', category=ImportWarning)
            for module_name in PRIVATE_BUT_PRESENT_MODULES:
                if not check_importable(module_name):
                    module_names.append(module_name)
    
        if module_names:
>           raise AssertionError("Modules that are not really public but looked "
                                 "public and can not be imported: "
                                 "{}".format(module_names))
E           AssertionError: Modules that are not really public but looked public and can not be imported: ['numpy.distutils.command.develop', 'numpy.distutils.command.egg_info']

check_importable = <function test_api_importable.<locals>.check_importable at 0x119d3de50>
module_name = 'numpy.testing.utils'
module_names = ['numpy.distutils.command.develop', 'numpy.distutils.command.egg_info']
w          = [<warnings.WarningMessage object at 0x11a39be50>, <warnings.WarningMessage object at 0x11a3fde80>]

../../miniforge3/envs/numpy_env4/lib/python3.9/site-packages/numpy/tests/t
628C
est_public_api.py:488: AssertionError
------------------------------------ Captured stdout call ------------------------------------
Could not locate executable icc
Could not locate executable ecc
====================================== warnings summary ======================================
../../miniforge3/envs/numpy_env4/lib/python3.9/site-packages/_pytest/config/__init__.py:1114
  /Users/erykoff/miniforge3/envs/numpy_env4/lib/python3.9/site-packages/_pytest/config/__init__.py:1114: PytestAssertRewriteWarning: Module already imported so cannot be rewritten: hypothesis
    self._mark_plugins_for_rewrite(hook)

core/tests/test_umath.py::TestDivision::test_floor_division_complex
  /Users/erykoff/miniforge3/envs/numpy_env4/lib/python3.9/site-packages/numpy/core/tests/test_umath.py:285: RuntimeWarning: divide by zero encountered in floor_divide
    y = np.floor_divide(x**2, x)

linalg/tests/test_linalg.py::TestDet::test_types[complex64]
linalg/tests/test_linalg.py::TestDet::test_types[complex128]
  /Users/erykoff/miniforge3/envs/numpy_env4/lib/python3.9/site-packages/numpy/linalg/linalg.py:2159: RuntimeWarning: divide by zero encountered in det
    r = _umath_linalg.det(a, signature=signature)

linalg/tests/test_linalg.py::TestDet::test_types[complex64]
linalg/tests/test_linalg.py::TestDet::test_types[complex128]
  /Users/erykoff/miniforge3/envs/numpy_env4/lib/python3.9/site-packages/numpy/linalg/linalg.py:2159: RuntimeWarning: invalid value encountered in det
    r = _umath_linalg.det(a, signature=signature)

linalg/tests/test_linalg.py::TestDet::test_types[complex64]
linalg/tests/test_linalg.py::TestDet::test_types[complex128]
  /Users/erykoff/miniforge3/envs/numpy_env4/lib/python3.9/site-packages/numpy/linalg/linalg.py:2099: RuntimeWarning: divide by zero encountered in slogdet
    sign, logdet = _umath_linalg.slogdet(a, signature=signature)

linalg/tests/test_linalg.py::TestDet::test_types[complex64]
linalg/tests/test_linalg.py::TestDet::test_types[complex128]
  /Users/erykoff/miniforge3/envs/numpy_env4/lib/python3.9/site-packages/numpy/linalg/linalg.py:2099: RuntimeWarning: invalid value encountered in slogdet
    sign, logdet = _umath_linalg.slogdet(a, signature=signature)

-- Docs: https://docs.pytest.org/en/stable/warnings.html
================================== short test summary info ===================================
FAILED ma/tests/test_core.py::TestMaskedArrayInPlaceArithmetics::test_inplace_floor_division_scalar_type
FAILED ma/tests/test_core.py::TestMaskedArrayInPlaceArithmetics::test_inplace_floor_division_array_type
FAILED tests/test_public_api.py::test_api_importable - AssertionError: Modules that are not...

All of these are complex64 failures. I know that the macos arm64 compilers do not support >64 bit floats, but I'm not sure why complex64 is failing?

@kraj
Copy link
Contributor
kraj commented Nov 18, 2020

I see the same complex64 failures on rpi4-64bit running Linux as well.

@isuruf
Copy link
Contributor Author
isuruf commented May 11, 2021

The test is skipped now

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

5 participants
0