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

ENH: add a three-state verbosity level : 0, 1, 2 in testmod #31

Merged
merged 2 commits into from
Jun 3, 2022
Merged

Conversation

ev-br
Copy link
Member

@ev-br ev-br commented Jun 3, 2022

cross-ref gh-14

Emitting dots or F does not seem to play very nice with the doctest structure --- it requires to have two separate streams, one to capture the doctest reports, and the other for for '...F....'. It feels like it's going to evolve into an inferior homemade pytest clone, so pass on it for now and only use three levels: 0 is failures only; 1 is emit object names just before doctesting; 2 is full, emit all examples.

Let's see how this fares on larger workloads (scipy then numpy).

Note that it's a job for a testmod-like wrapper, because DTRunner's report_* hooks work per-example, not per-docstring.

@ev-br ev-br mentioned this pull request Jun 3, 2022
4 tasks
0 is failures only; 1 is emit object names just before doctesting;
2 is full, emit all examples.
@ev-br ev-br merged commit 1140d6d into main Jun 3, 2022
@ev-br ev-br deleted the verbosity branch June 3, 2022 09:45
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