Skip to content

Commit

Permalink
Add ellipsis option to doctests.
Browse files Browse the repository at this point in the history
This means we can include `...` as in output for doctests. Particularly
useful if we want to just make sure a particular command runs (the
output may change over time).
  • Loading branch information
drvinceknight committed Jul 21, 2016
1 parent e91ca26 commit 411720c
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion doctests.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,8 @@ def load_tests(loader, tests, ignore):
for root, dirs, files in os.walk("./docs"):
for f in files:
if f.endswith(".rst"):
tests.addTests(doctest.DocFileSuite(os.path.join(root, f)))
tests.addTests(doctest.DocFileSuite(os.path.join(root, f),
optionflags=doctest.ELLIPSIS))

return tests

Expand Down

0 comments on commit 411720c

Please sign in to comment.