aboutsummaryrefslogtreecommitdiffstats
path: root/test_llamachat.py
diff options
context:
space:
mode:
authorDanilo M. <danix@danix.xyz>2026-08-09 14:56:59 +0200
committerDanilo M. <danix@danix.xyz>2026-08-09 14:56:59 +0200
commit37e2b3d9da2297e18431b4dd9e21170aff673b3e (patch)
treecd2e73067d9fcbe628f436bfc96b2b706c21bffd /test_llamachat.py
parent22e177e4d2723df8612fbad2851c03d66724b2c4 (diff)
downloadllamachat-37e2b3d9da2297e18431b4dd9e21170aff673b3e.tar.gz
llamachat-37e2b3d9da2297e18431b4dd9e21170aff673b3e.zip
docs: stop crediting from None with secret hygiene
A TimeoutExpired chained without from None already prints no secret, since its __str__ shows only the command and the duration. The suppressed display buys a tidier traceback, not a narrower leak, and the comments claimed otherwise. The from None calls stay. Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
Diffstat (limited to 'test_llamachat.py')
-rwxr-xr-xtest_llamachat.py5
1 files changed, 3 insertions, 2 deletions
diff --git a/test_llamachat.py b/test_llamachat.py
index 5ee2310..b943976 100755
--- a/test_llamachat.py
+++ b/test_llamachat.py
@@ -1154,8 +1154,9 @@ def test_key_resolution():
assert "gpg-agent" in str(exc)
# The partial stdout a timeout captures must never reach the message.
assert "partial-secret" not in str(exc)
- # `from None` suppresses the chained traceback. It does not clear
- # __context__, so this pins the display behavior, not unreachability.
+ # `from None` suppresses the chained-traceback display. It does not
+ # clear __context__, and the chained traceback would not have shown
+ # the secret anyway, so this pins tidiness, not secret hygiene.
assert exc.__suppress_context__ and exc.__cause__ is None
# A non-zero exit quotes gpg's stderr, which is the only useful part, and