blob: 70b0cd7909b2fd6bb38880b03d939c61920efa8f (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
|
import sys
import pytest
import numpy as np
@pytest.mark.skipif(sys.version_info[:2] < (3, 7),
reason="requires python 3.7 or higher")
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)
|