summaryrefslogtreecommitdiffstats
path: root/Lib
diff options
context:
space:
mode:
authorAlexandre Vassalotti <alexandre@peadrop.com>2008-05-08 01:45:31 (GMT)
committerAlexandre Vassalotti <alexandre@peadrop.com>2008-05-08 01:45:31 (GMT)
commit96de30ae1eba0fb126c8bef8b2fcfba1d5b34290 (patch)
treea04991fc329becc56593febb9b254bdf8bedbe5d /Lib
parent8130f7c3c4a5fa8458bd1dd7ee40229ee687952e (diff)
downloadcpython-96de30ae1eba0fb126c8bef8b2fcfba1d5b34290.zip
cpython-96de30ae1eba0fb126c8bef8b2fcfba1d5b34290.tar.gz
cpython-96de30ae1eba0fb126c8bef8b2fcfba1d5b34290.tar.bz2
Removed test_overflow from test_memoryio.CBytesIOTest.
This test depends too much on the platform it is running-on to be useful.
Diffstat (limited to 'Lib')
-rw-r--r--Lib/test/test_memoryio.py13
1 files changed, 0 insertions, 13 deletions
diff --git a/Lib/test/test_memoryio.py b/Lib/test/test_memoryio.py
index 4604caf..7857587 100644
--- a/Lib/test/test_memoryio.py
+++ b/Lib/test/test_memoryio.py
@@ -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: