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.

19 lines
686 B

6 months ago
  1. from sympy.testing.pytest import warns_deprecated_sympy, XFAIL
  2. # See https://github.com/sympy/sympy/pull/18095
  3. def test_deprecated_utilities():
  4. with warns_deprecated_sympy():
  5. import sympy.utilities.pytest # noqa:F401
  6. with warns_deprecated_sympy():
  7. import sympy.utilities.runtests # noqa:F401
  8. with warns_deprecated_sympy():
  9. import sympy.utilities.randtest # noqa:F401
  10. with warns_deprecated_sympy():
  11. import sympy.utilities.tmpfiles # noqa:F401
  12. # This fails because benchmarking isn't importable...
  13. @XFAIL
  14. def test_deprecated_benchmarking():
  15. with warns_deprecated_sympy():
  16. import sympy.utilities.benchmarking # noqa:F401