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

Method test_issue1395_1

Lib/test/test_io/test_textio.py:800–810  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

798 self.assertRaises(TypeError, txt.writelines, b'abc')
799
800 def test_issue1395_1(self):
801 txt = self.TextIOWrapper(self.BytesIO(self.testdata), encoding="ascii")
802
803 # read one char at a time
804 reads = ""
805 while True:
806 c = txt.read(1)
807 if not c:
808 break
809 reads += c
810 self.assertEqual(reads, self.normalized)
811
812 def test_issue1395_2(self):
813 txt = self.TextIOWrapper(self.BytesIO(self.testdata), encoding="ascii")

Callers

nothing calls this directly

Calls 2

readMethod · 0.95
assertEqualMethod · 0.45

Tested by

no test coverage detected