Skip to content

Commit

Permalink
BUG: refguide-check: respect the verbosity switch
Browse files Browse the repository at this point in the history
This syncs numpy/numpy#21574

$ python runtests.py -s numpy.lib.recfunctions --refguide-check -v

Previously, the `-v` switch was silently ignored.
  • Loading branch information
ev-br committed May 23, 2022
1 parent a5b2606 commit 5c2b199
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
2 changes: 2 additions & 0 deletions dev.py
Original file line number Diff line number Diff line change
Expand Up @@ -278,6 +278,8 @@ def main(argv):
if args.refguide_check:
cmd = [os.path.join(ROOT_DIR, 'tools', 'refguide_check.py'),
'--doctests']
if args.verbose:
cmd += ['-' + 'v'*args.verbose]
if args.submodule:
cmd += [args.submodule]
os.execv(sys.executable, [sys.executable] + cmd)
Expand Down
2 changes: 2 additions & 0 deletions runtests.py
Original file line number Diff line number Diff line change
Expand Up @@ -223,6 +223,8 @@ def main(argv):
if args.refguide_check:
cmd = [os.path.join(ROOT_DIR, 'tools', 'refguide_check.py'),
'--doctests']
if args.verbose:
cmd += ['-' + 'v'*args.verbose]
if args.submodule:
cmd += [args.submodule]
os.execv(sys.executable, [sys.executable] + cmd)
Expand Down

0 comments on commit 5c2b199

Please sign in to comment.