Skip to content

Commit 860c9b6

Browse files
committed
Enable doctests of cdef functions
1 parent 9619312 commit 860c9b6

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

cypari2/handle_error.pyx

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -145,7 +145,6 @@ cdef void _pari_init_error_handling():
145145
Warnings still work just like in GP::
146146
147147
>>> pari('warning("test")')
148-
*** user warning: test
149148
"""
150149
global cb_pari_err_handle
151150
global cb_pari_err_recover

setup.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,10 @@ def finalize_options(self):
4949
# Generate auto-generated sources from pari.desc
5050
rebuild()
5151

52-
self.directives = dict(binding=True)
52+
self.directives = {
53+
"autotestdict.cdef": True,
54+
"binding": True,
55+
}
5356

5457
self.distribution.ext_modules[:] = cythonize(
5558
self.distribution.ext_modules,

0 commit comments

Comments
 (0)