mirror of
https://github.com/python/cpython.git
synced 2025-07-23 11:15:24 +00:00
gh-81283: compiler: remove indent from docstring (#106411)
Co-authored-by: Éric <merwok@netwok.org>
This commit is contained in:
parent
bbf6297985
commit
2566b74b26
9 changed files with 246 additions and 30 deletions
|
@ -1287,14 +1287,14 @@ The NORMALIZE_WHITESPACE flag causes all sequences of whitespace to be
|
|||
treated as equal:
|
||||
|
||||
>>> def f(x):
|
||||
... '>>> print(1, 2, 3)\n 1 2\n 3'
|
||||
... '\n>>> print(1, 2, 3)\n 1 2\n 3'
|
||||
|
||||
>>> # Without the flag:
|
||||
>>> test = doctest.DocTestFinder().find(f)[0]
|
||||
>>> doctest.DocTestRunner(verbose=False).run(test)
|
||||
... # doctest: +ELLIPSIS
|
||||
**********************************************************************
|
||||
File ..., line 2, in f
|
||||
File ..., line 3, in f
|
||||
Failed example:
|
||||
print(1, 2, 3)
|
||||
Expected:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue