Skip to content

Commit 99a79ea

Browse files
author
Justin Baum
committed
add a test
1 parent 528fdd6 commit 99a79ea

1 file changed

Lines changed: 6 additions & 0 deletions

File tree

Lib/test/test_doctest.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1314,6 +1314,12 @@ def optionflags(): r"""
13141314
... # doctest: +NORMALIZE_WHITESPACE
13151315
[0, 1, ..., 18, 19]
13161316
1317+
The IGNORE_CASE flag causes the test runner to ignore case when
1318+
matching the expected output to the actual output
1319+
>>> print("Hello World") # doctest: +IGNORE_CASE
1320+
hello world
1321+
1322+
13171323
The SKIP flag causes an example to be skipped entirely. I.e., the
13181324
example is not run. It can be useful in contexts where doctest
13191325
examples serve as both documentation and test cases, and an example

0 commit comments

Comments
 (0)