m2m模型翻译
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

13 lines
358 B

7 months ago
  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)