give the C implementation of TextIOWrapper the errors property #6217

This commit is contained in:
Benjamin Peterson 2009-06-06 18:02:12 +00:00
parent 3bbbf18a38
commit 0926ad1f05
7 changed files with 50 additions and 26 deletions

View file

@ -459,9 +459,9 @@ class PyStringIOTest(MemoryTestMixin, MemorySeekTestMixin, unittest.TestCase):
# These are just dummy values but we nevertheless check them for fear
# of unexpected breakage.
self.assertTrue(memio.encoding is None)
self.assertEqual(memio.errors, "strict")
self.assertEqual(memio.line_buffering, False)
self.assertIsNone(memio.encoding)
self.assertIsNone(memio.errors)
self.assertFalse(memio.line_buffering)
def test_newline_none(self):
# newline=None