10000 DRAFT: enabling doctestplus by bsipocz · Pull Request #23812 · numpy/numpy · GitHub
[go: up one dir, main page]

Skip to content

DRAFT: enabling doctestplus #23812

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

Closed
wants to merge 16 commits into from
Closed
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
DOC: Fix doctest for deprecated including show warnings directive
  • Loading branch information
seberg authored and bsipocz committed Dec 20, 2023
commit 95a0f172da3622ca6bb5d9ddc41f03ea3e6d2117
6 changes: 3 additions & 3 deletions numpy/lib/_utils_impl.py
Original file line number Diff line number Diff line change
Expand Up @@ -219,9 +219,9 @@ def deprecate(*args, **kwargs):
Note that ``olduint`` returns a value after printing Deprecation
Warning:

>>> olduint = np.lib.utils.deprecate(np.uint)
DeprecationWarning: `uint64` is deprecated! # may vary
>>> olduint(6)
>>> olduint = np.lib.utils.deprecate(np.uint64)
>>> olduint(6) # doctest: +SHOW_WARNINGS
DeprecationWarning: `uint64` is deprecated!
6

"""
Expand Down
0