Skip to content

Commit 93aa8f4

Browse files
authored
explain that ̀ file=None` will print the message in stdout
1 parent 7a1c8e9 commit 93aa8f4

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/sage/doctest/forker.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -261,7 +261,8 @@ def showwarning_with_traceback(message, category, filename, lineno, file=None, l
261261
r"""
262262
Displays a warning message with a traceback.
263263
264-
INPUT: see :func:`warnings.showwarning`.
264+
INPUT: see :func:`warnings.showwarning` with the difference that with ``file=None``
265+
the message will be written to stdout.
265266
266267
OUTPUT: none
267268

0 commit comments

Comments
 (0)