Skip to content

Commit 9b73fda

Browse files
committed
fix doctests
1 parent 97b096f commit 9b73fda

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

src/flint/test/__main__.py

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -80,11 +80,14 @@ def run_doctests(verbose=None):
8080
flint.types.acb_series,
8181
flint.types.dirichlet,
8282
flint.functions.showgood]
83-
if hasattr(flint.types, 'acb_theta'):
84-
modules.append(flint.types.acb_theta)
83+
try:
84+
from flint.types import acb_theta
85+
modules.append(acb_theta)
86+
except ImportError:
87+
pass
8588
results = [doctest.testmod(x) for x in modules]
8689
# ffmpz, tfmpz = doctest.testmod(flint._fmpz, verbose=verbose)
87-
# failed, total = doctest.testmod(flint.pyflint, verbose=verbose)
90+
# failed, total = doctest.testmod(flint.pyflint, verbose=verbose)
8891
return tuple(sum(res) for res in zip(*results))
8992

9093

0 commit comments

Comments
 (0)