Skip to content

Commit c83ff2b

Browse files
committed
tests: check the message a doctest traceback shows
IGNORE_EXCEPTION_DETAIL had doctest ignore everything past the colon, so the two tracebacks of the tutorial asserted the exception type and nothing else: a block claiming an entirely different message passed. Both already match to the character. ELLIPSIS stays, for a message too long or too unstable to spell out.
1 parent 9da940d commit c83ff2b

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎pyproject.toml‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -110,7 +110,7 @@ docstring-code-format = true
110110

111111
[tool.pytest.ini_options]
112112
addopts = "--doctest-modules --doctest-glob='*.rst'"
113-
doctest_optionflags= "ALLOW_UNICODE IGNORE_EXCEPTION_DETAIL ELLIPSIS"
113+
doctest_optionflags= "ALLOW_UNICODE ELLIPSIS"
114114

115115
[tool.mypy]
116116
plugins = [

0 commit comments

Comments
 (0)