From: Antoine Pitrou Date: Sun, 7 Feb 2010 16:56:23 +0000 (+0000) Subject: Issue #7870: Remove duplicate test methods. Reported by Georg Brandl. X-Git-Tag: v2.7a4~228 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=4ad752d70f211dc24ef96474d266005d08c35923;p=python Issue #7870: Remove duplicate test methods. Reported by Georg Brandl. --- diff --git a/Lib/test/test_memoryio.py b/Lib/test/test_memoryio.py index d06f1c9847..aa316257ad 100644 --- a/Lib/test/test_memoryio.py +++ b/Lib/test/test_memoryio.py @@ -484,25 +484,6 @@ class PyBytesIOTest(MemoryTestMixin, MemorySeekTestMixin, unittest.TestCase): class TextIOTestMixin: - def test_relative_seek(self): - memio = self.ioclass() - - self.assertRaises(IOError, memio.seek, -1, 1) - self.assertRaises(IOError, memio.seek, 3, 1) - self.assertRaises(IOError, memio.seek, -3, 1) - self.assertRaises(IOError, memio.seek, -1, 2) - self.assertRaises(IOError, memio.seek, 1, 1) - self.assertRaises(IOError, memio.seek, 1, 2) - - def test_textio_properties(self): - memio = self.ioclass() - - # 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) - def test_newlines_property(self): memio = self.ioclass(newline=None) # The C StringIO decodes newlines in write() calls, but the Python