Skip to content

Commit

Permalink
Added doctest_depends_on decorator
Browse files Browse the repository at this point in the history
  • Loading branch information
NikhilPappu committed Aug 30, 2018
1 parent 16e82b2 commit 6405521
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions sympy/parsing/autolev/__init__.py
@@ -1,6 +1,7 @@
from sympy.external import import_module
from sympy.utilities.decorator import doctest_depends_on


@doctest_depends_on(modules=('antlr',))
def parse_autolev(autolev_code, include_numeric=False):
"""Parses Autolev code (version 4.1) to SymPy code.
Expand Down Expand Up @@ -44,8 +45,8 @@ def parse_autolev(autolev_code, include_numeric=False):
... "INPUT TFINAL=10, INTEGSTP=.01",
... "CODE DYNAMICS() some_filename.c")
>>> my_al_text = '\\n'.join(my_al_text)
>>> from sympy.parsing.autolev import parse_autolev # doctest: +SKIP
>>> print(parse_autolev(my_al_text, include_numeric=True)) # doctest: +SKIP
>>> from sympy.parsing.autolev import parse_autolev
>>> print(parse_autolev(my_al_text, include_numeric=True))
import sympy.physics.mechanics as me
import sympy as sm
import math as m
Expand Down

0 comments on commit 6405521

Please sign in to comment.