Commit 96de30ae authored by Alexandre Vassalotti's avatar Alexandre Vassalotti

Removed test_overflow from test_memoryio.CBytesIOTest.

This test depends too much on the platform it is running-on to be
useful.
parent 8130f7c3
...@@ -404,19 +404,6 @@ if has_c_implementation: ...@@ -404,19 +404,6 @@ if has_c_implementation:
class CBytesIOTest(PyBytesIOTest): class CBytesIOTest(PyBytesIOTest):
ioclass = io.BytesIO 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(): def test_main():
tests = [PyBytesIOTest, PyStringIOTest] tests = [PyBytesIOTest, PyStringIOTest]
if has_c_implementation: if has_c_implementation:
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment