A workaround for the missing buffer() builtin in jython.

This closes patch "[ #490850 ] Jython and test_StringIO".
This commit is contained in:
Finn Bock 2001-12-09 20:06:32 +00:00
parent 82b230732f
commit 793ead5696

View file

@ -74,6 +74,12 @@ class TestStringIO(TestGenericStringIO):
class TestcStringIO(TestGenericStringIO):
MODULE = cStringIO
import sys
if sys.platform.startswith('java'):
# Jython doesn't have a buffer object, so we just do a useless
# fake of the buffer tests.
buffer = str
class TestBufferStringIO(TestStringIO):
constructor = buffer