[Python-checkins] r78088 - python/trunk/Lib/test/test_memoryio.py

antoine.pitrou python-checkins at python.org
Sun Feb 7 17:56:24 CET 2010


Author: antoine.pitrou
Date: Sun Feb 7 17:56:23 2010
New Revision: 78088
Log:
Issue #7870: Remove duplicate test methods. Reported by Georg Brandl.
Modified:
 python/trunk/Lib/test/test_memoryio.py
Modified: python/trunk/Lib/test/test_memoryio.py
==============================================================================
--- python/trunk/Lib/test/test_memoryio.py	(original)
+++ python/trunk/Lib/test/test_memoryio.py	Sun Feb 7 17:56:23 2010
@@ -484,25 +484,6 @@
 
 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


More information about the Python-checkins mailing list

AltStyle によって変換されたページ (->オリジナル) /