图片解析应用
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

28 lines
1.2 KiB

  1. """
  2. Back compatibility utils module. It will import the appropriate
  3. set of tools
  4. """
  5. import warnings
  6. # 2018-04-04, numpy 1.15.0 ImportWarning
  7. # 2019-09-18, numpy 1.18.0 DeprecatonWarning (changed)
  8. warnings.warn("Importing from numpy.testing.utils is deprecated "
  9. "since 1.15.0, import from numpy.testing instead.",
  10. DeprecationWarning, stacklevel=2)
  11. from ._private.utils import *
  12. __all__ = [
  13. 'assert_equal', 'assert_almost_equal', 'assert_approx_equal',
  14. 'assert_array_equal', 'assert_array_less', 'assert_string_equal',
  15. 'assert_array_almost_equal', 'assert_raises', 'build_err_msg',
  16. 'decorate_methods', 'jiffies', 'memusage', 'print_assert_equal',
  17. 'raises', 'rundocs', 'runstring', 'verbose', 'measure',
  18. 'assert_', 'assert_array_almost_equal_nulp', 'assert_raises_regex',
  19. 'assert_array_max_ulp', 'assert_warns', 'assert_no_warnings',
  20. 'assert_allclose', 'IgnoreException', 'clear_and_catch_warnings',
  21. 'SkipTest', 'KnownFailureException', 'temppath', 'tempdir', 'IS_PYPY',
  22. 'HAS_REFCOUNT', 'suppress_warnings', 'assert_array_compare',
  23. '_assert_valid_refcount', '_gen_alignment_data', 'assert_no_gc_cycles'
  24. ]