[migration] improve doctest report format stable
authorJulien Jehannet <julien.jehannet@logilab.fr>
Mon, 29 Nov 2010 18:34:39 +0100
branchstable
changeset 6732 f63cef610b97
parent 6731 3ea1f7a6311c
child 6739 08cfa7019b27
[migration] improve doctest report format
migration.py
--- a/migration.py	Fri Dec 03 13:09:14 2010 +0100
+++ b/migration.py	Mon Nov 29 18:34:39 2010 +0100
@@ -361,6 +361,9 @@
             import doctest
             return doctest.testfile(migrscript, module_relative=False,
                                     optionflags=doctest.ELLIPSIS,
+                                    # verbose mode when user input is expected
+                                    verbose=self.verbosity==2,
+                                    report=True,
                                     encoding='utf-8',
                                     globs=scriptlocals)
         self._context_stack.pop()