Inzynierka/Lib/site-packages/numpy/lib/tests/test_financial_expired.py

12 lines
247 B
Python
Raw Permalink Normal View History

2023-06-02 12:51:02 +02:00
import sys
import pytest
import numpy as np
def test_financial_expired():
match = 'NEP 32'
with pytest.warns(DeprecationWarning, match=match):
func = np.fv
with pytest.raises(RuntimeError, match=match):
func(1, 2, 3)