test_deprecation.py 364 B

12345678910
  1. import pytest
  2. def test_cython_api_deprecation():
  3. match = ("`scipy._lib._test_deprecation_def.foo_deprecated` "
  4. "is deprecated, use `foo` instead!\n"
  5. "Deprecated in Scipy 42.0.0")
  6. with pytest.warns(DeprecationWarning, match=match):
  7. from .. import _test_deprecation_call
  8. assert _test_deprecation_call.call() == (1, 1)