Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

FAQ-D: running doctest on docstring of a function #4962

Open
josef-pkt opened this issue Aug 22, 2018 · 0 comments
Open

FAQ-D: running doctest on docstring of a function #4962

josef-pkt opened this issue Aug 22, 2018 · 0 comments

Comments

@josef-pkt
Copy link
Member

the following is copied from #1810 (comment) but not updated
It still works this way, but currently I'm getting errors from my setup because I have missing names (or import problems because I haven't recompiled statsmodels)

run doctest just for a specific function or method:

import doctest

from statsmodels.regression.linear_model import OLS, OLSResults

doctest.run_docstring_examples(OLSResults.t_test, globals())
doctest.run_docstring_examples(OLSResults.f_test, globals())

doctests fail because of formatting, missing np.squeeze, numeric noise in float numbers
but relatively easy to check correctness by visual inspection.
`

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant