Intelegentny_Pszczelarz/.venv/Lib/site-packages/scipy/_lib/tests/test_deprecation.py
2023-06-19 00:49:18 +02:00

11 lines
364 B
Python

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