test_financial_expired.py 358 B

12345678910111213
  1. import sys
  2. import pytest
  3. import numpy as np
  4. @pytest.mark.skipif(sys.version_info[:2] < (3, 7),
  5. reason="requires python 3.7 or higher")
  6. def test_financial_expired():
  7. match = 'NEP 32'
  8. with pytest.warns(DeprecationWarning, match=match):
  9. func = np.fv
  10. with pytest.raises(RuntimeError, match=match):
  11. func(1, 2, 3)