Skip to content

Commit 7e47b9f

Browse files
committed
fix test_doctest
1 parent dd6f73b commit 7e47b9f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Lib/test/test_doctest.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -1287,14 +1287,14 @@ def optionflags(): r"""
12871287
treated as equal:
12881288
12891289
>>> def f(x):
1290-
... '>>> print(1, 2, 3)\n 1 2\n 3'
1290+
... '\n>>> print(1, 2, 3)\n 1 2\n 3'
12911291
12921292
>>> # Without the flag:
12931293
>>> test = doctest.DocTestFinder().find(f)[0]
12941294
>>> doctest.DocTestRunner(verbose=False).run(test)
12951295
... # doctest: +ELLIPSIS
12961296
**********************************************************************
1297-
File ..., line 2, in f
1297+
File ..., line 3, in f
12981298
Failed example:
12991299
print(1, 2, 3)
13001300
Expected:

0 commit comments

Comments
 (0)