Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit d8ccc43

Browse files
committed
Report diffs for multiline doctest output.
1 parent f265e7c commit d8ccc43

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

doctests.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,5 +17,5 @@
1717
modules = [__import__(name.replace('.py',''))
1818
for arg in args if arg != "-v" for name in glob.glob(arg)]
1919
for module in modules:
20-
doctest.testmod(module, report=1)
20+
doctest.testmod(module, report=1, optionflags=doctest.REPORT_UDIFF)
2121
print '%d failed out of %d' % doctest.master.summarize()

0 commit comments

Comments
 (0)