diff options
author | Finn Bock <bckfnn@worldonline.dk> | 2001-12-09 20:06:32 (GMT) |
---|---|---|
committer | Finn Bock <bckfnn@worldonline.dk> | 2001-12-09 20:06:32 (GMT) |
commit | 793ead5696dbb7e0897e459aed2cd64cd1e14788 (patch) | |
tree | 36affe9acd8e7e8efa94f347cd8a521a94e3e84a | |
parent | 82b230732fab6dc3b8d945feb38bd99712a501fc (diff) | |
download | cpython-793ead5696dbb7e0897e459aed2cd64cd1e14788.zip cpython-793ead5696dbb7e0897e459aed2cd64cd1e14788.tar.gz cpython-793ead5696dbb7e0897e459aed2cd64cd1e14788.tar.bz2 |
A workaround for the missing buffer() builtin in jython.
This closes patch "[ #490850 ] Jython and test_StringIO".
-rw-r--r-- | Lib/test/test_StringIO.py | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/Lib/test/test_StringIO.py b/Lib/test/test_StringIO.py index 33db4ba..8b934ff 100644 --- a/Lib/test/test_StringIO.py +++ b/Lib/test/test_StringIO.py @@ -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 |