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.

16 lines
426 B

6 months ago
  1. from sympy.external import import_module
  2. from sympy.testing.pytest import ignore_warnings, raises
  3. antlr4 = import_module("antlr4", warn_not_installed=False)
  4. # disable tests if antlr4-python*-runtime is not present
  5. if antlr4:
  6. disabled = True
  7. def test_no_import():
  8. from sympy.parsing.latex import parse_latex
  9. with ignore_warnings(UserWarning):
  10. with raises(ImportError):
  11. parse_latex('1 + 1')