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

Method test_streamreaderwriter

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

Source from the content-addressed store, hash-verified

2572 self.assertTrue(f.closed)
2573
2574 def test_streamreaderwriter(self):
2575 f = io.BytesIO(b"\xc3\xbc")
2576 info = codecs.lookup("utf-8")
2577 with codecs.StreamReaderWriter(f, info.streamreader,
2578 info.streamwriter, 'strict') as srw:
2579 self.assertEqual(srw.read(), "\xfc")
2580
2581
2582class TypesTest(unittest.TestCase):

Callers

nothing calls this directly

Calls 3

lookupMethod · 0.45
assertEqualMethod · 0.45
readMethod · 0.45

Tested by

no test coverage detected