More doctest refinements. (#83317)

Follow up to #82797

Now that the doctests themselves are in a better state, we should be able to enable xdoctest on the CI so they stay that way.

@ezyang @vadimkantorov
Pull Request resolved: https://github.com/pytorch/pytorch/pull/83317
Approved by: https://github.com/ezyang
This commit is contained in:
joncrall
2022-08-22 20:07:23 +00:00
committed by PyTorch MergeBot
parent 9c9f424817
commit b136f3f310
41 changed files with 310 additions and 162 deletions

View File

@ -7,11 +7,6 @@ addopts =
# capture only Python print and C++ py::print, but not C output (low-level Python errors)
--capture=sys
--disable-warnings
# TODO: enable xdoctest later
#--xdoctest
#--xdoctest-style=google
#--xdoctest-global-exec="from torch import nn\nimport torch.nn.functional as F\nimport torch"
#--xdoctest-options=+IGNORE_WHITESPACE
testpaths =
test
junit_logging_reruns = all