[Python-checkins] cpython (2.7): Fix test_doctest in verbose mode

victor.stinner python-checkins at python.org
Wed Dec 2 08:39:58 EST 2015


https://hg.python.org/cpython/rev/ff351607a90d
changeset:   99413:ff351607a90d
branch:      2.7
parent:      99399:6a35865eded4
user:        Victor Stinner <victor.stinner at gmail.com>
date:        Wed Dec 02 14:39:37 2015 +0100
summary:
  Fix test_doctest in verbose mode

files:
  Lib/test/test_doctest.py |  4 ++--
  1 files changed, 2 insertions(+), 2 deletions(-)


diff --git a/Lib/test/test_doctest.py b/Lib/test/test_doctest.py
--- a/Lib/test/test_doctest.py
+++ b/Lib/test/test_doctest.py
@@ -2582,7 +2582,7 @@
     >>> fn = tempfile.mktemp()
     >>> with open(fn, 'wb') as f:
     ...     f.write('Test:\r\n\r\n  >>> x = 1 + 1\r\n\r\nDone.\r\n')
-    >>> doctest.testfile(fn, False)
+    >>> doctest.testfile(fn, module_relative=False, verbose=False)
     TestResults(failed=0, attempted=1)
     >>> os.remove(fn)
 
@@ -2591,7 +2591,7 @@
     >>> fn = tempfile.mktemp()
     >>> with open(fn, 'wb') as f:
     ...     f.write('Test:\n\n  >>> x = 1 + 1\n\nDone.\n')
-    >>> doctest.testfile(fn, False)
+    >>> doctest.testfile(fn, module_relative=False, verbose=False)
     TestResults(failed=0, attempted=1)
     >>> os.remove(fn)
 

-- 
Repository URL: https://hg.python.org/cpython


More information about the Python-checkins mailing list