Erotemic / xdoctest

A rewrite of Python's builtin doctest module (with pytest plugin integration) with AST instead of REGEX.
Apache License 2.0
209 stars 12 forks source link

Zero args runner "allzero" behavior #65

Open Erotemic opened 4 years ago

Erotemic commented 4 years ago

Zero args runner should ignore zero-args funcs that have doctests.

In ubelt python -m ubelt zero runs _win32_can_symlink, which has a doctest probably shouldn't be run by the xdoctest "zero" command. At least there should be a way to disable it from running.

Running this should still work

python -m xdoctest /home/joncrall/code/ubelt/ubelt/_win32_links.py _win32_can_symlink

But running

python -m ubelt zero

should skip any zero-args function that has a doctest by default.