FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

gh-107862: Reference the existing issues for two of the codec expecte… · pganssle/cpython@3ca2eb2 · GitHub

Repository navigation

Commit 3ca2eb2

Browse files
committed
pythongh-107862: Reference the existing issues for two of the codec expected failures
The StreamReader truncation is pythongh-56717, open since 2011 with the same diagnosis, and the euc_kr filler asymmetry was closed as not a bug in pythongh-101863; the punycode chunking is mentioned in pythongh-64331.
1 parent d8af5ab commit 3ca2eb2

1 file changed

Lines changed: 6 additions & 4 deletions

File tree

‎Lib/test/test_codecs_property.py‎

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -762,7 +762,8 @@ def test_iso2022_escape(self, encoding, text):
762762
self._check_round_trip(encoding, text)
763763

764764
# euc_kr encodes the Hangul filler U+3164 as the two bytes that start
765-
# an eight-byte composed syllable, and will not decode them alone.
765+
# an eight-byte composed syllable, and will not decode them alone
766+
# (gh-101863, closed as not a bug; recorded here as the asymmetry it is).
766767
@unittest.expectedFailure
767768
@hypothesis.given(text=text)
768769
@hypothesis.example(text="\u3164")
@@ -783,7 +784,7 @@ def test_iso2022_jp_3_mapping(self, text):
783784
class StreamReaderTruncationBug(unittest.TestCase):
784785
"""StreamReader.read() never tells the decoder that the stream has
785786
ended, so an incomplete trailing sequence is silently dropped instead
786-
of raising (or being replaced), as it is everywhere else."""
787+
of raising (or being replaced), as it is everywhere else (gh-56717)."""
787788

788789
@unittest.expectedFailure
789790
@hypothesis.given(
@@ -804,8 +805,9 @@ def test_read_reports_truncated_input(self, encoding, text, errors):
804805

805806
class PunycodeIncrementalBug(unittest.TestCase):
806807
"""The punycode incremental codecs encode and decode each chunk on its
807-
own, so anything fed in more than one piece comes out wrong. Punycode
808-
is left out of the chunked tests above as a whole-string codec."""
808+
own, so anything fed in more than one piece comes out wrong (noted in
809+
passing in gh-64331). Punycode is left out of the chunked tests above
810+
as a whole-string codec."""
809811

810812
@unittest.expectedFailure
811813
@hypothesis.given(text=text, sizes=sizes)

0 commit comments

Comments
 (0)

Back | FazBrowse Home | New Git URL