Skip to content

Commit 9636826

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

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
@@ -1918,7 +1918,12 @@ are always available. They are listed here in alphabetical order.
19181918
Unlike the default behavior, it raises a :exc:`ValueError` if one iterable
19191919
is exhausted before the others:
19201920

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

0 commit comments

Comments
 (0)