[Python-3000-checkins] r62846 - python/branches/py3k/Lib/test/test_memoryio.py
alexandre.vassalotti
python-3000-checkins at python.org
Thu May 8 03:45:32 CEST 2008
Author: alexandre.vassalotti
Date: Thu May 8 03:45:31 2008
New Revision: 62846
Log:
Removed test_overflow from test_memoryio.CBytesIOTest.
This test depends too much on the platform it is running-on to be
useful.
Modified:
python/branches/py3k/Lib/test/test_memoryio.py
Modified: python/branches/py3k/Lib/test/test_memoryio.py
==============================================================================
--- python/branches/py3k/Lib/test/test_memoryio.py (original)
+++ python/branches/py3k/Lib/test/test_memoryio.py Thu May 8 03:45:31 2008
@@ -404,19 +404,6 @@
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:
More information about the Python-3000-checkins
mailing list