diff options
author | Antoine Pitrou <solipsis@pitrou.net> | 2010-02-07 17:00:43 (GMT) |
---|---|---|
committer | Antoine Pitrou <solipsis@pitrou.net> | 2010-02-07 17:00:43 (GMT) |
commit | a5336b60007476389cb3102b9c020bc78c3fca76 (patch) | |
tree | 50dc89c11e64012327b696d7d9dbd1c905c292fb /Lib/test/test_memoryio.py | |
parent | 5354a1fce0d43054ba43cb7fd15769b265e42fde (diff) | |
download | cpython-a5336b60007476389cb3102b9c020bc78c3fca76.zip cpython-a5336b60007476389cb3102b9c020bc78c3fca76.tar.gz cpython-a5336b60007476389cb3102b9c020bc78c3fca76.tar.bz2 |
Merged revisions 78088 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/trunk
........
r78088 | antoine.pitrou | 2010-02-07 17:56:23 +0100 (dim., 07 févr. 2010) | 4 lines
Issue #7870: Remove duplicate test methods. Reported by Georg Brandl.
........
Diffstat (limited to 'Lib/test/test_memoryio.py')
-rw-r--r-- | Lib/test/test_memoryio.py | 19 |
1 files changed, 0 insertions, 19 deletions
diff --git a/Lib/test/test_memoryio.py b/Lib/test/test_memoryio.py index 99dfe6c..ecb6ab8 100644 --- a/Lib/test/test_memoryio.py +++ b/Lib/test/test_memoryio.py @@ -470,25 +470,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 |