Skip to content

Numpy matrix warning in tests #342

@juliangilbey

Description

@juliangilbey

Running the tests on Python 3.10 gives the following warnings, among others:

spyder_kernels/console/kernel.py:14
  .../spyder_kernels/console/kernel.py:14: DeprecationWarning: The distutils package is deprecated and slated for removal in Python 3.12. Use setuptools or check PEP 632 for potential alternatives
    from distutils.version import LooseVersion

spyder_kernels/utils/tests/test_nsview.py::test_get_numpy_type
  .../spyder_kernels/utils/tests/test_nsview.py:430: 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.
    matrix = np.matrix([[1, 2], [3, 4]])

The other warnings relate to packages imported by spyder-kernels.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions