]> granicus.if.org Git - python/commitdiff
Removed test_overflow from test_memoryio.CBytesIOTest.
authorAlexandre Vassalotti <alexandre@peadrop.com>
Thu, 8 May 2008 01:45:31 +0000 (01:45 +0000)
committerAlexandre Vassalotti <alexandre@peadrop.com>
Thu, 8 May 2008 01:45:31 +0000 (01:45 +0000)
This test depends too much on the platform it is running-on to be
useful.

Lib/test/test_memoryio.py

index 4604caf0d10238951441aad268a60f0e0be78e8c..7857587850b7ce21381f77cf7307052c36b54317 100644 (file)
@@ -404,19 +404,6 @@ if has_c_implementation:
     class CBytesIOTest(PyBytesIOTest):
         ioclass = io.BytesIO
 
-        def test_overflow(self):
-            buf = self.buftype("a")
-            memio = self.ioclass()
-
-            memio.seek(sys.maxsize)
-            self.assertRaises(OverflowError, memio.seek, 1, 1)
-            # Ensure that the position has not been changed
-            self.assertEqual(memio.tell(), sys.maxsize)
-            self.assertEqual(memio.write(self.EOF), 0)
-            self.assertRaises(OverflowError, memio.write, buf)
-            self.assertEqual(memio.tell(), sys.maxsize)
-
-
 def test_main():
     tests = [PyBytesIOTest, PyStringIOTest]
     if has_c_implementation: