Commit c747e556 authored by Victor Stinner's avatar Victor Stinner

Fix test_doctest in verbose mode

parent 048e1078
...@@ -2582,7 +2582,7 @@ Windows line endings first: ...@@ -2582,7 +2582,7 @@ Windows line endings first:
>>> fn = tempfile.mktemp() >>> fn = tempfile.mktemp()
>>> with open(fn, 'wb') as f: >>> with open(fn, 'wb') as f:
... f.write('Test:\r\n\r\n >>> x = 1 + 1\r\n\r\nDone.\r\n') ... 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) TestResults(failed=0, attempted=1)
>>> os.remove(fn) >>> os.remove(fn)
...@@ -2591,7 +2591,7 @@ And now *nix line endings: ...@@ -2591,7 +2591,7 @@ And now *nix line endings:
>>> fn = tempfile.mktemp() >>> fn = tempfile.mktemp()
>>> with open(fn, 'wb') as f: >>> with open(fn, 'wb') as f:
... f.write('Test:\n\n >>> x = 1 + 1\n\nDone.\n') ... 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) TestResults(failed=0, attempted=1)
>>> os.remove(fn) >>> os.remove(fn)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment