Skip to content

Commit 5ff6f91

Browse files
committed
gh-107862: Note why the folding strategy avoids encoded word look-alikes
The round trip property cannot cover text that is itself a well-formed encoded word, because such text is written out unencoded and decodes to something else on reparse. That is now tracked separately as gh-160148, so point at it from the strategy rather than carrying an expected failure here.
1 parent beb0862 commit 5ff6f91

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

‎Lib/test/test_email/test_policy.py‎

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -308,7 +308,8 @@ def test_wide_char_too_long_for_line_does_not_cause_inf_loop(self):
308308
# Pieces chosen to exercise folding: words, runs of whitespace, RFC 5322
309309
# specials, characters needing 2, 3 and 4 byte UTF-8 encodings, and the
310310
# delimiters of RFC 2047 encoded words. The pieces cannot combine into a
311-
# well-formed encoded word (there is no lone '?').
311+
# well-formed encoded word (there is no lone '?'), since such text is
312+
# not encoded and so does not round trip; that is gh-160148.
312313
_fold_pieces = hypothesis.strategies.sampled_from([
313314
'a', 'word', 'longwordlongwordlongword', ' ', ' ', '\t', ',', ';',
314315
':', '(', ')', '<', '>', '"', '@', '\\', '.', '-', '_', '\xa0',

0 commit comments

Comments
 (0)