Skip to content

TST: Make tests Pytest clean #9352

Closed
Closed
@charris

Description

The files below with a checkmark currently work with Pytest. The remainder have problems, among which are missing decorators, exception types, and use of generators. Doctests are also not run, but that is probably due to missing options.

NumPy tests that work with Pytest

numpy/tests

  • numpy/tests/test_ctypeslib.py
  • numpy/tests/test_matlib.py
  • numpy/tests/test_numpy_version.py
  • numpy/tests/test_reloading.py
  • numpy/tests/test_scripts.py
  • numpy/tests/test_warnings.py

numpy/lib/tests

  • numpy/lib/tests/test_format.py
  • numpy/lib/tests/test_index_tricks.py
  • numpy/lib/tests/test_twodim_base.py
  • numpy/lib/tests/test__datasource.py
  • numpy/lib/tests/test__iotools.py
  • numpy/lib/tests/test__version.py
  • numpy/lib/tests/test_arraypad.py
  • numpy/lib/tests/test_arraysetops.py
  • numpy/lib/tests/test_arrayterator.py
  • numpy/lib/tests/test_financial.py
  • numpy/lib/tests/test_function_base.py
  • numpy/lib/tests/test_io.py
  • numpy/lib/tests/test_mixins.py
  • numpy/lib/tests/test_nanfunctions.py
  • numpy/lib/tests/test_packbits.py
  • numpy/lib/tests/test_polynomial.py
  • numpy/lib/tests/test_recfunctions.py
  • numpy/lib/tests/test_regression.py
  • numpy/lib/tests/test_shape_base.py
  • numpy/lib/tests/test_stride_tricks.py
  • numpy/lib/tests/test_type_check.py
  • numpy/lib/tests/test_ufunclike.py
  • numpy/lib/tests/test_utils.py

numpy/f2py/tests

  • numpy/f2py/tests/test_array_from_pyobj.py
  • numpy/f2py/tests/test_assumed_shape.py
  • numpy/f2py/tests/test_callback.py
  • numpy/f2py/tests/test_common.py
  • numpy/f2py/tests/test_kind.py
  • numpy/f2py/tests/test_mixed.py
  • numpy/f2py/tests/test_parameter.py
  • numpy/f2py/tests/test_regression.py
  • numpy/f2py/tests/test_return_character.py
  • numpy/f2py/tests/test_return_complex.py
  • numpy/f2py/tests/test_return_integer.py
  • numpy/f2py/tests/test_return_logical.py
  • numpy/f2py/tests/test_return_real.py
  • numpy/f2py/tests/test_size.py
  • numpy/f2py/tests/test_string.py

numpy/random/tests

  • numpy/random/tests/test_random.py
  • numpy/random/tests/test_regression.py

numpy/polynomial/tests

  • numpy/polynomial/tests/test_classes.py
  • numpy/polynomial/tests/test_chebyshev.py
  • numpy/polynomial/tests/test_hermite.py
  • numpy/polynomial/tests/test_hermite_e.py
  • numpy/polynomial/tests/test_laguerre.py
  • numpy/polynomial/tests/test_legendre.py
  • numpy/polynomial/tests/test_polynomial.py
  • numpy/polynomial/tests/test_polyutils.py
  • numpy/polynomial/tests/test_printing.py

numpy/distutils/tests

  • numpy/distutils/tests/test_system_info.py
  • numpy/distutils/tests/test_exec_command.py
  • numpy/distutils/tests/test_fcompiler_gnu.py
  • numpy/distutils/tests/test_fcompiler_intel.py
  • numpy/distutils/tests/test_misc_util.py
  • numpy/distutils/tests/test_npy_pkg_config.py

numpy/testing/tests

  • numpy/testing/tests/test_doctesting.py
  • numpy/testing/tests/test_decorators.py
  • numpy/testing/tests/test_utils.py

numpy/core/tests

  • numpy/core/tests/test_arrayprint.py
  • numpy/core/tests/test_datetime.py
  • numpy/core/tests/test_deprecations.py
  • numpy/core/tests/test_longdouble.py
  • numpy/core/tests/test_mem_overlap.py
  • numpy/core/tests/test_multiarray.py
  • numpy/core/tests/test_nditer.py
  • numpy/core/tests/test_numeric.py
  • numpy/core/tests/test_print.py
  • numpy/core/tests/test_records.py
  • numpy/core/tests/test_regression.py
  • numpy/core/tests/test_scalarmath.py
  • numpy/core/tests/test_umath.py
  • numpy/core/tests/test_umath_complex.py
  • numpy/core/tests/test_abc.py
  • numpy/core/tests/test_api.py
  • numpy/core/tests/test_defchararray.py
  • numpy/core/tests/test_dtype.py
  • numpy/core/tests/test_einsum.py
  • numpy/core/tests/test_errstate.py
  • numpy/core/tests/test_extint128.py
  • numpy/core/tests/test_function_base.py
  • numpy/core/tests/test_getlimits.py
  • numpy/core/tests/test_half.py
  • numpy/core/tests/test_indexerrors.py
  • numpy/core/tests/test_indexing.py
  • numpy/core/tests/test_item_selection.py
  • numpy/core/tests/test_machar.py
  • numpy/core/tests/test_memmap.py
  • numpy/core/tests/test_numerictypes.py
  • numpy/core/tests/test_scalarinherit.py
  • numpy/core/tests/test_scalarprint.py
  • numpy/core/tests/test_shape_base.py
  • numpy/core/tests/test_ufunc.py
  • numpy/core/tests/test_unicode.py

numpy/linalg/tests

  • numpy/linalg/tests/test_linalg.py
  • numpy/linalg/tests/test_build.py
  • numpy/linalg/tests/test_deprecations.py
  • numpy/linalg/tests/test_regression.py

numpy/ma/tests

  • numpy/ma/tests/test_core.py
  • numpy/ma/tests/test_deprecations.py
  • numpy/ma/tests/test_extras.py
  • numpy/ma/tests/test_mrecords.py
  • numpy/ma/tests/test_old_ma.py
  • numpy/ma/tests/test_regression.py
  • numpy/ma/tests/test_subclassing.py

numpy/fft/tests

  • numpy/fft/tests/test_fftpack.py
  • numpy/fft/tests/test_helper.py

numpy/compat/tests

  • numpy/compat/tests/test_compat.py

numpy/matrixlib/tests

  • numpy/matrixlib/tests/test_defmatrix.py
  • numpy/matrixlib/tests/test_multiarray.py
  • numpy/matrixlib/tests/test_numeric.py
  • numpy/matrixlib/tests/test_regression.py

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions