Skip to content

Commit 49e528a

Browse files
committed
Test docstrings
1 parent f0fecef commit 49e528a

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

cypari2/pari_instance.pyx

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
# -*- coding: utf-8 -*-
2-
"""
2+
r"""
33
Interface to the PARI library
44
*****************************
55
@@ -209,6 +209,12 @@ inputs and the ``precision`` argument is ignored:
209209
210210
Tests:
211211
212+
Check that the documentation is generated correctly:
213+
214+
>>> from inspect import getdoc
215+
>>> getdoc(pari.Pi)
216+
'The constant :math:`\\pi` ...'
217+
212218
Check that output from PARI's print command is actually seen by
213219
Python (:trac:`9636`):
214220

0 commit comments

Comments
 (0)