Skip to content

Commit 7112950

Browse files
committed
fix doctests
1 parent 97b096f commit 7112950

File tree

2 files changed

+7
-3
lines changed

2 files changed

+7
-3
lines changed

doc/Makefile

+1
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ SPHINXOPTS =
66
SPHINXBUILD = sphinx-build
77
PAPER =
88
BUILDDIR = build
9+
# add mkdir
910

1011
# Internal variables.
1112
PAPEROPT_a4 = -D latex_paper_size=a4

src/flint/test/__main__.py

+6-3
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)