Skip to content

Commit aca4119

Browse files
committed
docs(config[is_pinned_for_op]) Add IGNORE_EXCEPTION_DETAIL to AssertionError doctest
why: Python 3.14+ enhanced assert introspection appends extra diagnostic text after AssertionError messages, which would break the exact-match ellipsis pattern in this doctest. what: - Add # doctest: +IGNORE_EXCEPTION_DETAIL directive to the bogus-op AssertionError doctest - Reformat the call across multiple lines to stay within line-length limit
1 parent 290efa7 commit aca4119

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/vcspull/config.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -848,7 +848,9 @@ def is_pinned_for_op(entry: t.Any, op: str) -> bool:
848848
849849
Invalid op raises AssertionError:
850850
851-
>>> is_pinned_for_op({"repo": "git+x"}, "bogus")
851+
>>> is_pinned_for_op( # doctest: +IGNORE_EXCEPTION_DETAIL
852+
... {"repo": "git+x"}, "bogus"
853+
... )
852854
Traceback (most recent call last):
853855
...
854856
AssertionError: Unknown op: 'bogus'

0 commit comments

Comments
 (0)