Skip to content

Commit c7e0e5e

Browse files
Disable failing doctest due to simultaneous output and exception not currently being supported
1 parent 4629605 commit c7e0e5e

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

Doc/library/functions.rst

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1919,7 +1919,12 @@ are always available. They are listed here in alphabetical order.
19191919
Unlike the default behavior, it raises a :exc:`ValueError` if one iterable
19201920
is exhausted before the others:
19211921

1922-
>>> for item in zip(range(3), ['fee', 'fi', 'fo', 'fum'], strict=True):
1922+
..
1923+
This doctest is disabled because doctest does not support capturing
1924+
output and exceptions in the same code unit.
1925+
https://github.com/python/cpython/issues/65382
1926+
1927+
>>> for item in zip(range(3), ['fee', 'fi', 'fo', 'fum'], strict=True): # doctest: +SKIP
19231928
... print(item)
19241929
...
19251930
(0, 'fee')

0 commit comments

Comments
 (0)