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

WIP: Doctest ng #11

Closed
wants to merge 38 commits into from
Closed

WIP: Doctest ng #11

wants to merge 38 commits into from

Conversation

ev-br
Copy link
Owner

@ev-br ev-br commented Feb 17, 2024

Reference issue

What does this implement/fix?

Additional information

ev-br added 30 commits February 16, 2024 18:16
Patch up refguide-check to record the history; switch off checking rst files
Check that all objects are included. Patch up both refguide-check and
doctest_public_modules to emit the history, and compare them, e.g.

$ meld tools/doctest.log refguide-check.log

The logs are *identical* modulo `stats.kstwobign` and `stats.levy_stable`
which were excluded in refguide-check but this seems to be no longer needed.
$ python dev.py doctest -t absolute/path/to/file.py
This matches the refguide-check behavior, but is a tad strange:
makes sure that the seed the old-fashioned np.random* methods is *NOT*
reproducible but the new-style `default_rng()` *IS* repoducible.
Should these two be either both repro or both not repro?
Add missing imports, now that we explicitly require them.
They use an implicit numpy imports, which SciPy does not anymore.
So skip them, it's not SciPy job to worry about, really.
The docstring manipulates warnings, and that interferes with the doctester.
Maybe this is something to fix in the doctester itself, not the docstring.
@ev-br ev-br force-pushed the doctest_ng branch 2 times, most recently from 43ecf92 to 10996cc Compare February 18, 2024 16:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant