[Jython-checkins] jython: test_memoryio, further test skips cite Issue 1996.
jeff.allen
jython-checkins at python.org
Mon Feb 18 09:01:02 CET 2013
http://hg.python.org/jython/rev/89d306fc4d19
changeset: 7057:89d306fc4d19
user: Jeff Allen <ja...py at farowl.co.uk>
date: Wed Feb 13 00:37:49 2013 +0000
summary:
test_memoryio, further test skips cite Issue 1996.
files:
Lib/test/test_memoryio.py | 11 +++++++++++
1 files changed, 11 insertions(+), 0 deletions(-)
diff --git a/Lib/test/test_memoryio.py b/Lib/test/test_memoryio.py
--- a/Lib/test/test_memoryio.py
+++ b/Lib/test/test_memoryio.py
@@ -605,6 +605,13 @@
UnsupportedOperation = pyio.UnsupportedOperation
EOF = ""
+ # When Jython tries to use UnsupportedOperation as _pyio defines it, it runs
+ # into a problem with multiple inheritance and the slots array: issue 1996.
+ # Override the affected test version just so we can skip it visibly.
+ @unittest.skipIf(support.is_jython, "FIXME: Jython issue 1996")
+ def test_detach(self):
+ pass
+
class PyStringIOPickleTest(TextIOTestMixin, unittest.TestCase):
"""Test if pickle restores properly the internal state of StringIO.
@@ -676,6 +683,10 @@
# XXX: For the Python version of io.StringIO, this is highly
# dependent on the encoding used for the underlying buffer.
+ # Re-instate test_detach skipped by Jython in PyBytesIOTest
+ if support.is_jython: # FIXME: Jython issue 1996
+ test_detach = MemoryTestMixin.test_detach
+
# This test isn't working on Ubuntu on an Apple Intel powerbook,
# Jython 2.7b1+ (default:6b4a1088566e, Feb 10 2013, 14:36:47)
# [OpenJDK 64-Bit Server VM (Oracle Corporation)] on java1.7.0_09
--
Repository URL: http://hg.python.org/jython
More information about the Jython-checkins
mailing list