Skip to content

Commit

Permalink
fix doctests
Browse files Browse the repository at this point in the history
  • Loading branch information
edgarcosta committed Jun 15, 2024
1 parent 97b096f commit 9b73fda
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions src/flint/test/__main__.py
Original file line number Diff line number Diff line change
Expand Up @@ -80,11 +80,14 @@ def run_doctests(verbose=None):
flint.types.acb_series,
flint.types.dirichlet,
flint.functions.showgood]
if hasattr(flint.types, 'acb_theta'):
modules.append(flint.types.acb_theta)
try:
from flint.types import acb_theta
modules.append(acb_theta)
except ImportError:
pass
results = [doctest.testmod(x) for x in modules]
# ffmpz, tfmpz = doctest.testmod(flint._fmpz, verbose=verbose)
# failed, total = doctest.testmod(flint.pyflint, verbose=verbose)
# failed, total = doctest.testmod(flint.pyflint, verbose=verbose)
return tuple(sum(res) for res in zip(*results))


Expand Down

0 comments on commit 9b73fda

Please sign in to comment.