MCPcopy Index your code
hub / github.com/python/cpython / test_stream

Method test_stream

Lib/test/test_codecs.py:1643–1646  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

1641 (b"xn--016c"+b"a"*70).decode("idna")
1642
1643 def test_stream(self):
1644 r = codecs.getreader("idna")(io.BytesIO(b"abc"))
1645 r.read(3)
1646 self.assertEqual(r.read(), "")
1647
1648 def test_incremental_decode(self):
1649 self.assertEqual(

Callers

nothing calls this directly

Calls 3

getreaderMethod · 0.80
readMethod · 0.45
assertEqualMethod · 0.45

Tested by

no test coverage detected